v0

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Guid      string    `gorm:"primary_key" json:"-"`
	CreatedAt time.Time `json:"-"`
	UpdatedAt time.Time `json:"-"`
}

type ModificationTag

type ModificationTag struct {
	Guid  string `gorm:"column:modification_guid" json:"guid"`
	Index uint32 `gorm:"column:modification_index" json:"index"`
}

type Route

type Route struct {
	Model
	ExpiresAt time.Time `json:"-"`
	RouteEntity
}

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; size:32" 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            string `json:"type"`
	ReservablePorts string `json:"reservable_ports" yaml:"reservable_ports"`
}

type RouterGroupDB

type RouterGroupDB struct {
	Model
	Name            string
	Type            string
	ReservablePorts string
}

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; size:32" 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; size:32" 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL