18 lines
379 B
Go
18 lines
379 B
Go
package genericlistener
|
|
|
|
//StatusDeadTime -- structure for deadtime configuration
|
|
type StatusDeadTime struct {
|
|
dwell int
|
|
idle int
|
|
cancelcheck int
|
|
}
|
|
|
|
//NewStatusDeadTime -- constructor
|
|
func NewStatusDeadTime(dwell int, idle int, cancelcheck int) (p *StatusDeadTime) {
|
|
p = new(StatusDeadTime)
|
|
p.dwell = dwell
|
|
p.idle = idle
|
|
p.cancelcheck = cancelcheck
|
|
return
|
|
}
|