Documentation ¶
Index ¶
- Variables
- func Startup(ctx context.Context, wg *sync.WaitGroup)
- func Sync(cfgs map[string]*proto.Config) (err error)
- type Plugin
- func (p *Plugin) GetState() (RxSpeed, TxSpeed, RxTPS, TxTPS float64)
- func (p *Plugin) GetWorkingDirectory() string
- func (p *Plugin) IsExited() bool
- func (p *Plugin) Name() string
- func (p *Plugin) Pid() int
- func (p *Plugin) ReceiveData() (rec *proto.EncodedRecord, err error)
- func (p *Plugin) SendTask(task proto.Task) (err error)
- func (p *Plugin) Shutdown()
- func (p *Plugin) Version() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthGrpc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGrpc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGrpc = fmt.Errorf("proto: unexpected end of group") )
View Source
var (
ErrDuplicatePlugin = errors.New("multiple load the same plugin")
)
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct { Config proto.Config *zap.SugaredLogger // contains filtered or unexported fields }
func (*Plugin) GetWorkingDirectory ¶
func (*Plugin) ReceiveData ¶
func (p *Plugin) ReceiveData() (rec *proto.EncodedRecord, err error)
Click to show internal directories.
Click to hide internal directories.