camera

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AxisCameraDriver

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

func (*AxisCameraDriver) Commit

func (cam *AxisCameraDriver) Commit(transactionId string) error

func (*AxisCameraDriver) ExtractImage

func (cam *AxisCameraDriver) ExtractImage(address, username, password string) (*Image, error)

func (*AxisCameraDriver) ExtractMetadata

func (cam *AxisCameraDriver) ExtractMetadata(address, username, password string) ([]byte, error)

func (*AxisCameraDriver) Ping

func (cam *AxisCameraDriver) Ping(address string) bool

type DahuaCameraDriver

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

func (*DahuaCameraDriver) Commit

func (cam *DahuaCameraDriver) Commit(transactionId string) error

func (*DahuaCameraDriver) ExtractImage

func (cam *DahuaCameraDriver) ExtractImage(address, username, password string) (*Image, error)

func (*DahuaCameraDriver) ExtractMetadata

func (cam *DahuaCameraDriver) ExtractMetadata(address, username, password string) ([]byte, error)

func (*DahuaCameraDriver) Ping

func (cam *DahuaCameraDriver) Ping(address string) bool

type Driver

type Driver interface {
	ExtractImage(address, username, password string) (*Image, error)
	ExtractMetadata(address, username, password string) ([]byte, error)
	Ping(address string) bool
	Commit(transactionId string) error
}

func NewAxisCameraDriver

func NewAxisCameraDriver() Driver

func NewDahuaCameraDriver

func NewDahuaCameraDriver() Driver

func NewFileSystemCameraDriver

func NewFileSystemCameraDriver() Driver

func NewFlirAx8CameraDriver

func NewFlirAx8CameraDriver() Driver

func NewHikvisionCameraDriver

func NewHikvisionCameraDriver() Driver

func NewReolinkCameraDriver

func NewReolinkCameraDriver() Driver

func NewUrlCameraDriver

func NewUrlCameraDriver() Driver

type DriverConstructor

type DriverConstructor func() Driver

type FileSystemCameraDriver

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

func (*FileSystemCameraDriver) Commit

func (cam *FileSystemCameraDriver) Commit(transactionId string) error

Commit removes the file from the file system. TransactionId in this case is the file path.

func (*FileSystemCameraDriver) ExtractImage

func (cam *FileSystemCameraDriver) ExtractImage(address, username, password string) (*Image, error)

ExtractImage reads the file from the file system and returns the image. If address is a directory, it will read the files in the directory using a cursor.

func (*FileSystemCameraDriver) ExtractMetadata

func (cam *FileSystemCameraDriver) ExtractMetadata(address, username, password string) ([]byte, error)

func (*FileSystemCameraDriver) Ping

func (cam *FileSystemCameraDriver) Ping(address string) bool

type FlirAx8CameraDriver

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

func (*FlirAx8CameraDriver) Commit

func (cam *FlirAx8CameraDriver) Commit(transactionId string) error

func (*FlirAx8CameraDriver) ExtractImage

func (cam *FlirAx8CameraDriver) ExtractImage(address, username, password string) (*Image, error)

func (*FlirAx8CameraDriver) ExtractMetadata

func (cam *FlirAx8CameraDriver) ExtractMetadata(address, username, password string) ([]byte, error)

func (*FlirAx8CameraDriver) Ping

func (cam *FlirAx8CameraDriver) Ping(address string) bool

type HikvisionCameraDriver

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

func (*HikvisionCameraDriver) Commit

func (cam *HikvisionCameraDriver) Commit(transactionId string) error

func (*HikvisionCameraDriver) ExtractImage

func (cam *HikvisionCameraDriver) ExtractImage(address, username, password string) (*Image, error)

func (*HikvisionCameraDriver) ExtractMetadata

func (cam *HikvisionCameraDriver) ExtractMetadata(address, username, password string) ([]byte, error)

func (*HikvisionCameraDriver) Ping

func (cam *HikvisionCameraDriver) Ping(address string) bool

type Image

type Image struct {
	Body          []byte
	Format        string
	TransactionId string
	ExternalId    string
}

type ReolinkCameraDriver

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

func (*ReolinkCameraDriver) Commit

func (cam *ReolinkCameraDriver) Commit(transactionId string) error

func (*ReolinkCameraDriver) ExtractImage

func (cam *ReolinkCameraDriver) ExtractImage(address, username, password string) (*Image, error)

func (*ReolinkCameraDriver) ExtractMetadata

func (cam *ReolinkCameraDriver) ExtractMetadata(address, username, password string) ([]byte, error)

func (*ReolinkCameraDriver) Ping

func (cam *ReolinkCameraDriver) Ping(address string) bool

type UrlCameraDriver

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

func (*UrlCameraDriver) Commit

func (cam *UrlCameraDriver) Commit(transactionId string) error

func (*UrlCameraDriver) ExtractImage

func (cam *UrlCameraDriver) ExtractImage(address, username, password string) (*Image, error)

func (*UrlCameraDriver) ExtractMetadata

func (cam *UrlCameraDriver) ExtractMetadata(address, username, password string) ([]byte, error)

func (*UrlCameraDriver) Ping

func (cam *UrlCameraDriver) Ping(address string) bool

Jump to

Keyboard shortcuts

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