Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModificationTag ¶
type ReservablePorts ¶
type ReservablePorts string
type RouteEntity ¶
type RouteEntity struct {
Route string `gorm:"not null; unique_index:idx_route" json:"route"`
Port uint16 `gorm:"not null; unique_index:idx_route" json:"port"`
IP string `gorm:"not null; unique_index:idx_route" json:"ip"`
TTL *int `json:"ttl"`
LogGuid string `json:"log_guid"`
RouteServiceUrl string `gorm:"not null; unique_index:idx_route" json:"route_service_url,omitempty"`
ModificationTag `json:"modification_tag"`
}
type RouterGroup ¶
type RouterGroup struct {
Model
Guid string `json:"guid"`
Name string `json:"name"`
Type RouterGroupType `json:"type"`
ReservablePorts ReservablePorts `json:"reservable_ports" yaml:"reservable_ports"`
}
type RouterGroupDB ¶
func (RouterGroupDB) TableName ¶
func (RouterGroupDB) TableName() string
type RouterGroupType ¶
type RouterGroupType string
type TcpMappingEntity ¶
type TcpMappingEntity struct {
RouterGroupGuid string `gorm:"not null; unique_index:idx_tcp_route" json:"router_group_guid"`
HostPort uint16 `gorm:"not null; unique_index:idx_tcp_route; type:int" json:"backend_port"`
HostIP string `gorm:"not null; unique_index:idx_tcp_route" json:"backend_ip"`
SniHostname *string `gorm:"default:null; unique_index:idx_tcp_route" json:"backend_sni_hostname,omitempty"`
ExternalPort uint16 `gorm:"not null; unique_index:idx_tcp_route; type: int" json:"port"`
ModificationTag `json:"modification_tag"`
TTL *int `json:"ttl,omitempty"`
IsolationSegment string `json:"isolation_segment"`
}
type TcpRouteMapping ¶
type TcpRouteMapping struct {
Model
ExpiresAt time.Time `json:"-"`
TcpMappingEntity
}
func (TcpRouteMapping) TableName ¶
func (TcpRouteMapping) TableName() string
Click to show internal directories.
Click to hide internal directories.