-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsprocess.go
More file actions
51 lines (41 loc) · 861 Bytes
/
Copy pathsprocess.go
File metadata and controls
51 lines (41 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// sprocess.go
//
// Created by Frederic DELBOS - fred@hyperboloide.com on Feb 10 2015.
// This file is subject to the terms and conditions defined in
// file 'LICENSE', which is part of this source code package.
//
package sprocess
import (
"io"
)
type DataMap map[string]interface{}
type Base interface {
GetName() string
Start() error
}
type Encoder interface {
Base
Encode(io.Reader, io.Writer, *Data) error
}
type Decoder interface {
Base
Decode(io.Reader, io.Writer, *Data) error
}
type EncodeDecoder interface {
Base
Encode(io.Reader, io.Writer, *Data) error
Decode(io.Reader, io.Writer, *Data) error
}
type Outputer interface {
Base
NewWriter(string, *Data) (io.WriteCloser, error)
}
type Inputer interface {
Base
NewReader(string, *Data) (io.ReadCloser, error)
}
type Deleter interface {
Base
Delete(string, *Data) error
}