Documentation
¶
Index ¶
- type Config
- type FrameCapture
- func (fc *FrameCapture) Error() <-chan error
- func (fc *FrameCapture) FrameSize() int
- func (fc *FrameCapture) Frames() <-chan *FrameData
- func (fc *FrameCapture) GetFrame(timeout time.Duration) (*FrameData, error)
- func (fc *FrameCapture) GetStats() Stats
- func (fc *FrameCapture) Log() []string
- func (fc *FrameCapture) Start() error
- func (fc *FrameCapture) Stop() error
- type FrameData
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrameCapture ¶
type FrameCapture struct {
Name string
FrameCh chan *FrameData
OnFrame func(frame *FrameData)
// contains filtered or unexported fields
}
func NewFrameCapture ¶
func NewFrameCapture(cfg Config) (*FrameCapture, error)
func (*FrameCapture) Error ¶
func (fc *FrameCapture) Error() <-chan error
func (*FrameCapture) FrameSize ¶
func (fc *FrameCapture) FrameSize() int
func (*FrameCapture) Frames ¶
func (fc *FrameCapture) Frames() <-chan *FrameData
func (*FrameCapture) GetFrame ¶
func (fc *FrameCapture) GetFrame(timeout time.Duration) (*FrameData, error)
func (*FrameCapture) GetStats ¶
func (fc *FrameCapture) GetStats() Stats
func (*FrameCapture) Log ¶
func (fc *FrameCapture) Log() []string
func (*FrameCapture) Start ¶
func (fc *FrameCapture) Start() error
func (*FrameCapture) Stop ¶
func (fc *FrameCapture) Stop() error
Click to show internal directories.
Click to hide internal directories.