gonvif

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 23 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServiceNotSupported = errors.New("onvif service not supported")
)

Functions

func AuthorizedSOAPClient

func AuthorizedSOAPClient(serviceURL, username, password string, verbose bool) *soap.Client

func ComposeHeaders added in v0.0.24

func ComposeHeaders(ref *addressing.EndpointReferenceType) []any

Types

type Client

type Client interface {
	Analytics() (analytics.AnalyticsEnginePort, error)
	Device() (device.Device, error)
	Events() (events.EventPortType, error)
	Subscription(url string, headers ...any) (events.PullPointSubscription, error)
	Imaging() (imaging.ImagingPort, error)
	Media() (media.Media, error)
	Media2() (media2.Media2, error)
	PTZ() (ptz.PTZ, error)
}

func New

func New(baseURL, username, password string, verbose bool) (Client, error)

type ClientPool added in v0.0.11

type ClientPool interface {
	GetClient(baseURL, username, password string, verbose bool) (Client, error)
}

func NewPool added in v0.0.11

func NewPool(ttl time.Duration) ClientPool

type ReplyToAddressingHeader added in v0.0.24

type ReplyToAddressingHeader struct {
	XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing ReplyTo"`

	Address string `xml:"http://www.w3.org/2005/08/addressing Address"`
}

type ToAddressingHeader added in v0.0.24

type ToAddressingHeader struct {
	XMLName xml.Name `xml:"http://www.w3.org/2005/08/addressing To"`

	Value string `xml:",chardata"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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