dahuatasks

package
v0.0.0-...-72e33f6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SyncStreamTask = squeuel.NewTaskBuilder[StreamPayload]("dahua-stream:sync")
	PushStreamTask = squeuel.NewTaskBuilder[StreamPayload]("dahua-stream:push")
)

Functions

func HandlePushStreamTask

func HandlePushStreamTask(ctx context.Context, task *squeuel.Task) error

func HandleSyncStreamTask

func HandleSyncStreamTask(ctx context.Context, task *squeuel.Task) error

func Init

func Init(_app App)

func RegisterStreams

func RegisterStreams()

Types

type App

type App struct {
	DB  sqlite.DB
	Hub *bus.Hub
}

type StreamPayload

type StreamPayload struct {
	DeviceID int64
}

func (StreamPayload) TaskID

func (p StreamPayload) TaskID() squeuel.Option

Jump to

Keyboard shortcuts

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