telebit/relay/api/status-deadtime.go

18 lines
359 B
Go
Raw Normal View History

2020-05-01 05:47:46 +00:00
package api
//StatusDeadTime -- structure for deadtime configuration
type StatusDeadTime struct {
dwell int
idle int
2020-05-01 05:47:46 +00:00
Cancelcheck int
}
//NewStatusDeadTime -- constructor
func NewStatusDeadTime(dwell, idle, cancelcheck int) (p *StatusDeadTime) {
p = new(StatusDeadTime)
p.dwell = dwell
p.idle = idle
2020-05-01 05:47:46 +00:00
p.Cancelcheck = cancelcheck
return
}