Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModificationTag ¶
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 RouterGroupDB ¶
func (RouterGroupDB) TableName ¶
func (RouterGroupDB) TableName() string
type TcpMappingEntity ¶
type TcpMappingEntity struct {
RouterGroupGuid string `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"`
ExternalPort uint16 `gorm:"not null; unique_index:idx_tcp_route; type: int" json:"port"`
ModificationTag `json:"modification_tag"`
TTL *int `json:"ttl,omitempty"`
}
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.