Documentation
¶
Index ¶
- Constants
- type Operations
- func (o *Operations) Alive(ctx context.Context) (bool, error)
- func (o *Operations) Close(ctx context.Context) error
- func (o *Operations) Configuration(ctx context.Context) (any, error)
- func (o *Operations) Connect(ctx context.Context) error
- func (o *Operations) Emit(ctx context.Context, mType string, message any) error
- func (o *Operations) GetBaseInfo(ctx context.Context) (*protocol.BaseInfo, error)
- func (o *Operations) GetConfiguration(ctx context.Context) (*model.Configuration, error)
- func (o *Operations) GetInfo(ctx context.Context) (*model.Info, error)
- func (o *Operations) GetJSON(path string, dst any) error
- func (o *Operations) GetUpdater(ctx context.Context) (*model.Updater, error)
- func (o *Operations) On(ctx context.Context, event string) (chan any, error)
- func (o *Operations) PostBaseCoordinates(ctx context.Context, base *model.Base) (*model.Base, error)
- func (o *Operations) PostDevice(ctx context.Context, device *model.ConfigurationDevice) (*model.ConfigurationDevice, error)
- func (o *Operations) PostJSON(path string, data any, dst any) error
- func (o *Operations) Reboot(ctx context.Context) error
- func (o *Operations) SetBase(ctx context.Context, funcs ...protocol.SetBaseOptionFunc) error
- func (o *Operations) Version(ctx context.Context) (string, bool, error)
- type Protocol
Constants ¶
View Source
const DeviceHeight = 0.134
View Source
const Identifier protocol.Identifier = "v2"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operations ¶
type Operations struct {
// contains filtered or unexported fields
}
func (*Operations) Alive ¶
func (o *Operations) Alive(ctx context.Context) (bool, error)
Alive implements protocol.Operations.
func (*Operations) Close ¶
func (o *Operations) Close(ctx context.Context) error
Close implements protocol.Operations.
func (*Operations) Configuration ¶
func (o *Operations) Configuration(ctx context.Context) (any, error)
Configuration implements protocol.Operations.
func (*Operations) Connect ¶
func (o *Operations) Connect(ctx context.Context) error
Connect implements protocol.Operations.
func (*Operations) GetBaseInfo ¶
GetBaseInfo implements protocol.Operations.
func (*Operations) GetConfiguration ¶
func (o *Operations) GetConfiguration(ctx context.Context) (*model.Configuration, error)
func (*Operations) GetUpdater ¶
func (*Operations) PostBaseCoordinates ¶
func (*Operations) PostDevice ¶
func (o *Operations) PostDevice(ctx context.Context, device *model.ConfigurationDevice) (*model.ConfigurationDevice, error)
func (*Operations) Reboot ¶
func (o *Operations) Reboot(ctx context.Context) error
Reboot implements protocol.Operations.
func (*Operations) SetBase ¶
func (o *Operations) SetBase(ctx context.Context, funcs ...protocol.SetBaseOptionFunc) error
SetBase implements protocol.Operations.
type Protocol ¶
type Protocol struct {
// contains filtered or unexported fields
}
func (*Protocol) Identifier ¶
func (p *Protocol) Identifier() protocol.Identifier
Identifier implements protocol.Protocol.
func (*Protocol) Operations ¶
func (p *Protocol) Operations(addr string) protocol.Operations
Operations implements protocol.Protocol.
Click to show internal directories.
Click to hide internal directories.