Documentation ¶
Index ¶
- Constants
- Variables
- func New(config config.Config) (server.Plugin, error)
- type Config
- type Device
- func (d *Device) HookWrapper() server.HookWrapper
- func (d *Device) Load(service server.Server) error
- func (d *Device) Name() string
- func (d *Device) OnBasicAuthWrapper(pre server.OnBasicAuth) server.OnBasicAuth
- func (d *Device) OnClosedWrapper(pre server.OnClosed) server.OnClosed
- func (d *Device) OnConnectedWrapper(pre server.OnConnected) server.OnConnected
- func (d *Device) OnMsgArrivedWrapper(pre server.OnMsgArrived) server.OnMsgArrived
- func (d *Device) OnSubscribeWrapper(pre server.OnSubscribe) server.OnSubscribe
- func (d *Device) OnSubscribedWrapper(pre server.OnSubscribed) server.OnSubscribed
- func (d *Device) OnUnsubscribedWrapper(pre server.OnUnsubscribed) server.OnUnsubscribed
- func (d *Device) Unload() error
Constants ¶
View Source
const Name = "device"
Variables ¶
View Source
var DefaultConfig = Config{}
DefaultConfig is the default configuration.
Functions ¶
Types ¶
type Config ¶
type Config struct { }
Config is the configuration for the device plugin.
func (*Config) UnmarshalYAML ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) HookWrapper ¶
func (d *Device) HookWrapper() server.HookWrapper
func (*Device) OnBasicAuthWrapper ¶
func (d *Device) OnBasicAuthWrapper(pre server.OnBasicAuth) server.OnBasicAuth
func (*Device) OnClosedWrapper ¶
func (*Device) OnConnectedWrapper ¶
func (d *Device) OnConnectedWrapper(pre server.OnConnected) server.OnConnected
func (*Device) OnMsgArrivedWrapper ¶
func (d *Device) OnMsgArrivedWrapper(pre server.OnMsgArrived) server.OnMsgArrived
func (*Device) OnSubscribeWrapper ¶
func (d *Device) OnSubscribeWrapper(pre server.OnSubscribe) server.OnSubscribe
func (*Device) OnSubscribedWrapper ¶
func (d *Device) OnSubscribedWrapper(pre server.OnSubscribed) server.OnSubscribed
func (*Device) OnUnsubscribedWrapper ¶
func (d *Device) OnUnsubscribedWrapper(pre server.OnUnsubscribed) server.OnUnsubscribed
Click to show internal directories.
Click to hide internal directories.