Versions in this module Expand all Collapse all v0 v0.21.1 Nov 6, 2024 v0.21.0 Oct 28, 2024 Changes in this version + const ActionContinuousMove + const ActionStopContinuousMove + const AttrAddress + const AttrConnected + const AttrMotion + const AttrMotionTime + const AttrOffline + const AttrOnvifPort + const AttrPassword + const AttrRequireAuthorization + const AttrRtspPort + const AttrUserName + const FuncEntityAction + const Name + var F embed.FS + func DownloadSnapshotBind(plugin *plugin) func(entityId string) string + func GetSnapshotUriBind(plugin *plugin) func(entityId string) string + func New() plugins.Pluggable + func NewActions() map[string]plugins.ActorAction + func NewAttr() m.Attributes + func NewSettings() map[string]*m.Attribute + func NewStates() (states map[string]plugins.ActorState) + type Actor struct + func NewActor(entity *m.Entity, service plugins.Service) (actor *Actor) + func (a *Actor) Destroy() + func (a *Actor) GetSnapshotUri() string + func (a *Actor) SetState(params plugins.EntityStateParams) error + func (a *Actor) Spawn() + type Client struct + func NewClient(handler func(interface{})) *Client + func (s *Client) ContinuousMove(X, Y float32) error + func (s *Client) GetCapabilities() error + func (s *Client) GetSnapshotURI() *string + func (s *Client) GetStreamList() ([]string, error) + func (s *Client) Shutdown() (err error) + func (s *Client) Start(username, password, address string, port int64, requireAuthorization bool) (err error) + func (s *Client) StopContinuousMove() error + type ClientBind struct + func NewClientBind(client *Client) *ClientBind + func (c *ClientBind) ContinuousMove(X, Y float32) + func (c *ClientBind) StopContinuousMove() + type ConnectionStatus struct + Connected bool + type MotionAlarm struct + State bool + Time time.Time + type StreamList struct + List []string + SnapshotUri *string