2024-03-22 18:05:47 +08:00
|
|
|
package interfaces
|
|
|
|
|
|
|
|
type DumpIO interface {
|
2024-03-25 20:22:18 +08:00
|
|
|
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
|
2024-03-22 18:05:47 +08:00
|
|
|
Close() error
|
2024-03-23 21:25:19 +08:00
|
|
|
|
|
|
|
IsInput() bool
|
|
|
|
IsFile() bool
|
2024-03-22 18:05:47 +08:00
|
|
|
}
|