Documentation ¶
Index ¶
- Constants
- Variables
- func DownloadSnapshotBind(plugin *plugin) func(entityId string) string
- func GetSnapshotUriBind(plugin *plugin) func(entityId string) string
- func New() supervisor.Pluggable
- func NewActions() map[string]supervisor.ActorAction
- func NewAttr() m.Attributes
- func NewSettings() map[string]*m.Attribute
- func NewStates() (states map[string]supervisor.ActorState)
- type Actor
- type 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
- type ConnectionStatus
- type MotionAlarm
- type StreamList
Constants ¶
View Source
const ( // Name ... Name = "onvif" // FuncEntityAction ... FuncEntityAction = "entityAction" Version = "0.0.1" AttrAddress = "address" AttrOnvifPort = "onvifPort" AttrRtspPort = "rtspPort" AttrUserName = "userName" AttrPassword = "password" AttrConnected = "connected" AttrOffline = "offline" AttrRequireAuthorization = "requireAuthorization" AttrMotion = "motion" AttrMotionTime = "motionTime" ActionContinuousMove = "continuousMove" ActionStopContinuousMove = "stopContinuousMove" )
Variables ¶
View Source
var F embed.FS
Functions ¶
func DownloadSnapshotBind ¶
experimental method ...
func GetSnapshotUriBind ¶
func NewActions ¶
func NewActions() map[string]supervisor.ActorAction
Types ¶
type Actor ¶
type Actor struct { *supervisor.BaseActor // contains filtered or unexported fields }
Actor ...
func NewActor ¶
func NewActor(entity *m.Entity, service supervisor.Service) (actor *Actor)
NewActor ...
func (*Actor) GetSnapshotUri ¶
func (*Actor) SetState ¶
func (a *Actor) SetState(params supervisor.EntityStateParams) error
SetState ...
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ContinuousMove ¶
func (*Client) GetCapabilities ¶
func (*Client) GetSnapshotURI ¶
func (*Client) GetStreamList ¶
func (*Client) StopContinuousMove ¶
type ClientBind ¶
type ClientBind struct {
// contains filtered or unexported fields
}
func NewClientBind ¶
func NewClientBind(client *Client) *ClientBind
func (*ClientBind) ContinuousMove ¶
func (c *ClientBind) ContinuousMove(X, Y float32)
func (*ClientBind) StopContinuousMove ¶
func (c *ClientBind) StopContinuousMove()
type ConnectionStatus ¶
type ConnectionStatus struct {
Connected bool
}
type MotionAlarm ¶
type StreamList ¶
Click to show internal directories.
Click to hide internal directories.