Documentation ¶
Index ¶
- type Plugin
- func (p *Plugin) Connector(deviceName, pointName string) (connector plugin.Connector, err error)
- func (p *Plugin) Destroy() error
- func (p *Plugin) Initialize(logger *zap.Logger, c config.Config, handler plugin.OnReceiveHandler, ...) (err error)
- func (p *Plugin) ProtocolAdapter() plugin.ProtocolAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Initialize ¶
func (p *Plugin) Initialize(logger *zap.Logger, c config.Config, handler plugin.OnReceiveHandler, ls *lua.LState) (err error)
Initialize 插件初始化
func (*Plugin) ProtocolAdapter ¶
func (p *Plugin) ProtocolAdapter() plugin.ProtocolAdapter
ProtocolAdapter 协议适配器
Click to show internal directories.
Click to hide internal directories.