device

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "device"

Variables

View Source
var DefaultConfig = Config{}

DefaultConfig is the default configuration.

Functions

func New

func New(config config.Config) (server.Plugin, error)

Types

type Config

type Config struct {
}

Config is the configuration for the device plugin.

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the configuration, and return an error if it is invalid.

type Device

type Device struct {
	// contains filtered or unexported fields
}

func (*Device) HookWrapper

func (d *Device) HookWrapper() server.HookWrapper

func (*Device) Load

func (d *Device) Load(service server.Server) error

func (*Device) Name

func (d *Device) Name() string

func (*Device) OnBasicAuthWrapper

func (d *Device) OnBasicAuthWrapper(pre server.OnBasicAuth) server.OnBasicAuth

func (*Device) OnClosedWrapper

func (d *Device) OnClosedWrapper(pre server.OnClosed) server.OnClosed

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

func (*Device) Unload

func (d *Device) Unload() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL