refactory: read,write use channel
This commit is contained in:
1 parent
c194bec3e3
commit
e4d5a1be76
9 files changed
+150
-168
No files matched your search
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
type DumpIO interface {
|
||||
ReadData(ctx context.Context, size int, query map[string]any, includeFields []string) (<-chan []*model.ESSource, <-chan error)
|
||||
WriteData(ctx context.Context, docs []*model.ESSource) (int, error)
|
||||
WriteData(ctx context.Context, docsCh <-chan []*model.ESSource) error
|
||||
|
||||
ReadMapping(context.Context) (map[string]any, error)
|
||||
WriteMapping(context.Context, map[string]any) error
|
||||
|
||||
Reference in new issue
Block a user