Documentation ¶
Index ¶
- type Source
- type SourceInterval
- type SourceMotion
- type SourcePLC
- type TriggerConfig
- func (hc *TriggerConfig) GetCheckIntvl() time.Duration
- func (hc *TriggerConfig) GetIntervalConfig() SourceInterval
- func (hc *TriggerConfig) GetMotionConfig() SourceMotion
- func (hc *TriggerConfig) GetPLCConfig() SourcePLC
- func (hc *TriggerConfig) GetSource() Source
- func (hc *TriggerConfig) GetTimeOut() time.Duration
- func (hc *TriggerConfig) GetTriggerAfterEvent() bool
- func (hc *TriggerConfig) LoadDefaults()
- func (hc *TriggerConfig) Lock()
- func (hc *TriggerConfig) SetIntervalConfig(interval SourceInterval) error
- func (hc *TriggerConfig) SetMotionConfig(motion SourceMotion)
- func (hc *TriggerConfig) SetPLCConfig(plc SourcePLC) error
- func (hc *TriggerConfig) SetSource(source Source) error
- func (hc *TriggerConfig) SetTrigger(afterevent bool)
- func (hc *TriggerConfig) Unlock()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SourceInterval ¶
type SourceInterval struct {
Delay int // second
}
type SourceMotion ¶
type SourceMotion struct { TimeSpan int // millisecond Threshold uint32 // px TimeOut int // millisecond AutoTune bool TuneStep uint32 // px TuneTime int // millisecond }
func (*SourceMotion) GetTimeSpan ¶
func (hc *SourceMotion) GetTimeSpan() time.Duration
type TriggerConfig ¶
type TriggerConfig struct { TriggerAfterEvent bool CheckIntvl int // millisecond Source Source Motion SourceMotion PLC SourcePLC Interval SourceInterval }
func (*TriggerConfig) GetCheckIntvl ¶
func (hc *TriggerConfig) GetCheckIntvl() time.Duration
func (*TriggerConfig) GetIntervalConfig ¶
func (hc *TriggerConfig) GetIntervalConfig() SourceInterval
func (*TriggerConfig) GetMotionConfig ¶
func (hc *TriggerConfig) GetMotionConfig() SourceMotion
func (*TriggerConfig) GetPLCConfig ¶
func (hc *TriggerConfig) GetPLCConfig() SourcePLC
func (*TriggerConfig) GetSource ¶
func (hc *TriggerConfig) GetSource() Source
func (*TriggerConfig) GetTimeOut ¶
func (hc *TriggerConfig) GetTimeOut() time.Duration
func (*TriggerConfig) GetTriggerAfterEvent ¶
func (hc *TriggerConfig) GetTriggerAfterEvent() bool
func (*TriggerConfig) LoadDefaults ¶
func (hc *TriggerConfig) LoadDefaults()
func (*TriggerConfig) Lock ¶
func (hc *TriggerConfig) Lock()
func (*TriggerConfig) SetIntervalConfig ¶
func (hc *TriggerConfig) SetIntervalConfig(interval SourceInterval) error
func (*TriggerConfig) SetMotionConfig ¶
func (hc *TriggerConfig) SetMotionConfig(motion SourceMotion)
func (*TriggerConfig) SetPLCConfig ¶
func (hc *TriggerConfig) SetPLCConfig(plc SourcePLC) error
func (*TriggerConfig) SetSource ¶
func (hc *TriggerConfig) SetSource(source Source) error
func (*TriggerConfig) SetTrigger ¶
func (hc *TriggerConfig) SetTrigger(afterevent bool)
func (*TriggerConfig) Unlock ¶
func (hc *TriggerConfig) Unlock()
Click to show internal directories.
Click to hide internal directories.