wip: mapping,setting import
This commit is contained in:
@ -1,8 +1,12 @@
|
||||
package interfaces
|
||||
|
||||
type DumpIO interface {
|
||||
Write(docs []*ESSource) (int, error)
|
||||
Read(int) ([]*ESSource, error)
|
||||
ReadData(int) ([]*ESSource, error)
|
||||
ReadMapping() (map[string]any, error)
|
||||
ReadSetting() (map[string]any, error)
|
||||
WriteData(docs []*ESSource) (int, error)
|
||||
WriteMapping(map[string]any) error
|
||||
WriteSetting(map[string]any) error
|
||||
Close() error
|
||||
|
||||
IsInput() bool
|
||||
|
@ -17,3 +17,11 @@ func (io IO) Code() string {
|
||||
return "unknown"
|
||||
}
|
||||
}
|
||||
|
||||
type DataType int64
|
||||
|
||||
const (
|
||||
DataTypeData DataType = iota
|
||||
DataTypeMapping
|
||||
DataTypeSetting
|
||||
)
|
||||
|
Reference in New Issue
Block a user