2017-04-01 04:19:50 +00:00
|
|
|
package server
|
2017-03-20 00:04:47 +00:00
|
|
|
|
|
|
|
//StatusDeadTime -- structure for deadtime configuration
|
|
|
|
type StatusDeadTime struct {
|
|
|
|
dwell int
|
|
|
|
idle int
|
|
|
|
cancelcheck int
|
|
|
|
}
|
|
|
|
|
|
|
|
//NewStatusDeadTime -- constructor
|
2017-03-22 22:33:09 +00:00
|
|
|
func NewStatusDeadTime(dwell, idle, cancelcheck int) (p *StatusDeadTime) {
|
2017-03-20 00:04:47 +00:00
|
|
|
p = new(StatusDeadTime)
|
|
|
|
p.dwell = dwell
|
|
|
|
p.idle = idle
|
|
|
|
p.cancelcheck = cancelcheck
|
|
|
|
return
|
|
|
|
}
|