1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
package api
type BypassStatus struct {
ID string `json:"id"`
Pid int `json:"pid"`
Spec BypassSpec `json:"spec"`
}
type BypassSpec struct {
ID string `json:"id"`
SocketPath string `json:"socketPath"`
PidFilePath string `json:"pidFilePath"`
LogFilePath string `json:"logFilePath"`
PortMapping []PortSpec `json:"portMapping"`
IgnoreSubnets []string `json:"ignoreSubnets"` // CIDR or "auto"
IgnoreBind bool `json:"ignoreBind"`
}
type PortSpec struct {
Protos []string `json:"protos"`
ParentIP string `json:"parentIP"`
ParentPort int `json:"parentPort"`
ChildIP string `json:"childIP"`
ChildPort int `json:"childPort"`
}
type ErrorJSON struct {
Message string `json:"message"`
}
|