Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
Types ¶
type Cam ¶
Cam struct with the video, device address and a list of handlers
func (*Cam) Handle ¶
Handle appends to the list of handlers a func with a signature that matches the HandlerFunc
func (*Cam) ListenAndServe ¶
type Device ¶
type Device interface { NewFrame() Frame Read(data interface{}) Open(device interface{}) error Close() error }
Device interfaces with the device
type Frame ¶
type Frame interface { Storage Close() Data() interface{} }
Frame interfaces with the device frame
type Handler ¶
type Handler interface {
Handle(Frame)
}
Handler interface expects a Handle func that receivs a frame
type HandlerFunc ¶
type HandlerFunc func(Frame)
func (HandlerFunc) Handle ¶
func (h HandlerFunc) Handle(frame Frame)
Click to show internal directories.
Click to hide internal directories.