Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForwardConfig ¶
type ForwardConfig struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
Name string `gorm:"column:name;type:varchar(255);not null" json:"name"`
AssetID int64 `gorm:"column:asset_id;not null;index" json:"assetId"`
Createtime int64 `gorm:"column:createtime" json:"createtime"`
Updatetime int64 `gorm:"column:updatetime" json:"updatetime"`
}
ForwardConfig 转发配置(一组转发规则)
func (ForwardConfig) TableName ¶
func (ForwardConfig) TableName() string
func (*ForwardConfig) Validate ¶
func (c *ForwardConfig) Validate() error
type ForwardRule ¶
type ForwardRule struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
ConfigID int64 `gorm:"column:config_id;not null;index" json:"configId"`
Type string `gorm:"column:type;type:varchar(20);not null" json:"type"` // "local" | "remote"
LocalHost string `gorm:"column:local_host;type:varchar(255);not null" json:"localHost"`
LocalPort int `gorm:"column:local_port;not null" json:"localPort"`
RemoteHost string `gorm:"column:remote_host;type:varchar(255);not null" json:"remoteHost"`
RemotePort int `gorm:"column:remote_port;not null" json:"remotePort"`
Createtime int64 `gorm:"column:createtime" json:"createtime"`
Updatetime int64 `gorm:"column:updatetime" json:"updatetime"`
}
ForwardRule 转发规则
func (ForwardRule) TableName ¶
func (ForwardRule) TableName() string
Click to show internal directories.
Click to hide internal directories.