Files
openlan/pkg/schema/output.go
Daniel Ding 151afa6a9d fea: support add tcp output by openlan protocol.
$ openlan net --name america output add \
    --remote <remote> \
    --protocol <tcp> \
    --secret <user>:<user-pass> \
    --crypt :<shared-key>
2024-07-01 16:58:50 +08:00

17 lines
456 B
Go

package schema
type Output struct {
Network string `json:"network"`
Protocol string `json:"protocol"`
Remote string `json:"remote"`
DstPort int `json:"dstPort"`
Segment int `json:"segment"`
Secret string `json:"secret"`
Crypt string `json:"crypt"`
Device string `json:"device"`
RxBytes uint64 `json:"rxBytes"`
TxBytes uint64 `json:"txBytes"`
ErrPkt uint64 `json:"errors"`
AliveTime int64 `json:"aliveTime"`
}