Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { gorm.Model UserUUID string `json:"user_uuid" gorm:"user_uuid"` Name string `json:"name"` ServerID uint64 `json:"server_id"` UUID string `json:"uuid" gorm:"column:uuid"` Port int `json:"port"` Expire int `json:"expire"` // 过期时间:天 Relay Relays `json:"relay"` Server ServerAttr `json:"server"` Target ClientTarget `json:"target"` CaPem string `json:"ca_pem"` CertPem string `json:"cert_pem"` KeyPem string `json:"key_pem"` }
type ClientAttrs ¶
type ClientAttrs struct { Type string `json:"type"` Name string `json:"name"` UUID string `json:"uuid"` Port int `json:"port"` Relay []RelayAttrs `json:"relay"` Server ServerAttr `json:"server"` Target ClientTarget `json:"target"` }
type ClientTarget ¶
type ClientTarget struct { Host string `json:"host" binding:"required"` Port int `json:"port" binding:"required"` }
func (*ClientTarget) Scan ¶
func (c *ClientTarget) Scan(input interface{}) error
type Relay ¶
type Relay struct { gorm.Model UserUUID string `json:"user_uuid" gorm:"user_uuid"` Name string `json:"name"` UUID string `json:"uuid" gorm:"column:uuid"` Host string `json:"host"` Port int `json:"port"` OutPort int `json:"out_port"` CaPem string `json:"ca_pem"` CertPem string `json:"cert_pem"` KeyPem string `json:"key_pem"` }
type RelayAttrs ¶
type Relays ¶
type Relays []RelayAttrs
type Resource ¶
type Server ¶
type Server struct { gorm.Model ResourceID string `json:"resource_id"` UserUUID string `json:"user_uuid" gorm:"user_uuid"` Name string `json:"name"` UUID string `json:"uuid" gorm:"column:uuid"` Host string `json:"host"` Port int `json:"port"` OutPort int `json:"out_port"` CaPem string `json:"ca_pem"` CertPem string `json:"cert_pem"` KeyPem string `json:"key_pem"` }
Click to show internal directories.
Click to hide internal directories.