mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-16 12:39:15 +08:00
89faf01391
Refs #1930 #1121 #1642
20 lines
542 B
Go
20 lines
542 B
Go
package client
|
|
|
|
type FireInfo struct {
|
|
Family string `json:"family"` // ipv4 ipv6
|
|
Address string `json:"address"` // Anywhere
|
|
Port string `json:"port"`
|
|
Protocol string `json:"protocol"` // tcp udp tcp/udp
|
|
Strategy string `json:"strategy"` // accept drop
|
|
|
|
APPName string `json:"appName"`
|
|
IsUsed bool `json:"isUsed"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type Forward struct {
|
|
Protocol string `json:"protocol"`
|
|
Address string `json:"address"`
|
|
Port string `json:"port"`
|
|
Target string `json:"target"`
|
|
}
|