1
0
mirror of https://github.com/therootcompany/telebit.git synced 2025-03-19 15:10:57 +00:00
2020-05-01 01:06:14 -06:00

21 lines
367 B
Go

package api
//TrafficStats --
type TrafficAPI struct {
Requests int64
Responses int64
BytesIn int64
BytesOut int64
}
//NewTrafficStats -- Consttuctor
func NewTrafficAPI(requests, responses, bytesIn, bytesOut int64) (p *TrafficAPI) {
p = new(TrafficAPI)
p.Requests = requests
p.Responses = responses
p.BytesIn = bytesIn
p.BytesOut = bytesOut
return
}