Files
openlan/pkg/models/output.go
Daniel Ding 80ea5c26b4
Some checks failed
Coverage CI / build (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
Ubuntu CI / build (push) Has been cancelled
fea: fallback for output.
2025-08-29 10:43:14 +08:00

22 lines
312 B
Go
Executable File

package models
import "time"
type Output struct {
Network string
Protocol string
Remote string
Segment int
Device string
Secret string
RxBytes uint64
TxBytes uint64
ErrPkt uint64
NewTime int64
Fallback string
}
func (o *Output) UpTime() int64 {
return time.Now().Unix() - o.NewTime
}