Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Controller
- func (c *Controller) Capture() (string, error)
- func (c *Controller) GetEntity(id string) (controller.Entity, error)
- func (c *Controller) InUse(_, _ string) ([]string, error)
- func (c *Controller) List() ([]ImageItem, error)
- func (c *Controller) LoadAPI(r *mux.Router)
- func (c *Controller) On(id string, b bool) error
- func (c *Controller) Process(name string) error
- func (c *Controller) Setup() error
- func (c *Controller) Start()
- func (c *Controller) Stop()
- type ImageItem
- type MotionConfig
Constants ¶
View Source
const Bucket = storage.CameraBucket
View Source
const DefaulCaptureFlags = ""
View Source
const ItemBucket = storage.CameraItemBucket
Variables ¶
View Source
var Default = Config{ ImageDirectory: "/var/lib/reef-pi/images", TickInterval: 120, Motion: MotionConfig{ URL: "http://localhost:8081", Width: 800, Height: 600, }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enable bool `json:"enable"` ImageDirectory string `json:"image_directory"` CaptureFlags string `json:"capture_flags"` TickInterval time.Duration `json:"tick_interval"` Upload bool `json:"upload"` Motion MotionConfig `json:"motion"` }
swagger:model cameraConfig
type Controller ¶
type Controller struct { DevMode bool // contains filtered or unexported fields }
func New ¶
func New(devMode bool, c controller.Controller) (*Controller, error)
func (*Controller) Capture ¶
func (c *Controller) Capture() (string, error)
func (*Controller) GetEntity ¶
func (c *Controller) GetEntity(id string) (controller.Entity, error)
func (*Controller) List ¶
func (c *Controller) List() ([]ImageItem, error)
func (*Controller) LoadAPI ¶
func (c *Controller) LoadAPI(r *mux.Router)
func (*Controller) Process ¶
func (c *Controller) Process(name string) error
func (*Controller) Setup ¶
func (c *Controller) Setup() error
func (*Controller) Start ¶
func (c *Controller) Start()
func (*Controller) Stop ¶
func (c *Controller) Stop()
Click to show internal directories.
Click to hide internal directories.