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