Documentation ¶
Overview ¶
自动生成模板Inbounds
自动生成模板ServerNode
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificates ¶
type Inbounds ¶
type Inbounds struct { global.Model ClientId string `json:"clientId" form:"clientId" gorm:"column:client_id;comment:vmess协议客户端id,也就是密码;"` Up *int64 `json:"up" form:"up" gorm:"column:up;comment:上行流量;size:64;"` Down *int64 `json:"down" form:"down" gorm:"column:down;comment:下行流量;size:64;"` Total *int64 `json:"total" form:"total" gorm:"column:total;comment:流量限制,0:无限制;size:64;"` Remark string `json:"remark" form:"remark" gorm:"column:remark;comment:入站规则名称;type:longtext;"` Enable *bool `json:"enable" form:"enable" gorm:"column:enable;comment:是否启用;"` ExpiryTime *int64 `json:"expiryTime" form:"expiryTime" gorm:"column:expiry_time;default:0;comment:是一个13位的时间戳;"` Port string `json:"port" form:"port" gorm:"column:port;comment:端口;size:12;"` Protocol string `json:"protocol" form:"protocol" gorm:"column:protocol;comment:协议;"` Settings string `json:"settings" form:"settings" gorm:"column:settings;comment:基本信息;size:500;"` StreamSettings string `json:"streamSettings" form:"streamSettings" gorm:"column:stream_settings;comment:其他信息;size:500;"` Sniffing string `json:"sniffing" form:"sniffing" gorm:"column:sniffing;comment:默认就行;size:500;"` Listen string `json:"listen" form:"listen" gorm:"column:listen;comment:监听IP默认留空;"` Uid *uint `` /* 136-byte string literal not displayed */ Sid *uint `json:"sid" form:"sid" gorm:"colum:sid;comment:关联服务器ID;"` Link string `json:"link" form:"link" gorm:"colum:link;comment:vmess链接;size:500"` Link64 string `json:"link64" form:"link64" gorm:"colum:link64;comment:vmess链接base64加密后的;size:500"` ClashSub string `json:"clashSub" form:"clashSub" gorm:"-"` CreatedBy uint `gorm:"column:created_by;comment:创建者"` UpdatedBy uint `gorm:"column:updated_by;comment:更新者"` DeletedBy uint `gorm:"column:deleted_by;comment:删除者"` }
Inbounds 结构体
type Obj ¶
type Obj struct { Id uint `json:"id" form:"id"` Up int64 `json:"up" form:"up"` Down int64 `json:"down" form:"down"` Total int64 `json:"total" form:"total"` Remark string `json:"remark" form:"remark"` Enable bool `json:"enable" form:"enable"` ExpiryTime int64 `json:"expiryTime" form:"expiryTime"` Listen string `json:"listen" form:"listen"` Port int64 `json:"port" form:"port"` Protocol string `json:"protocol" form:"protocol"` Settings string `json:"settings" form:"settings"` StreamSettings string `json:"streamSettings" form:"streamSettings"` Tag string `json:"tag" form:"tag"` Sniffing string `json:"sniffing" form:"sniffing"` }
type ServerNode ¶
type ServerNode struct { global.Model ServerName string `json:"serverName" form:"serverName" gorm:"column:server_name;comment:服务器节点名称;"` ServerHost string `json:"serverHost" form:"serverHost" gorm:"column:server_host;comment:服务器主机地址;"` ServerPort *int `json:"serverPort" form:"serverPort" gorm:"column:server_port;comment:服务器端口;"` ServerStatus *int `json:"serverStatus" form:"serverStatus" gorm:"column:server_status;comment:服务器状态;"` Describe string `json:"describe" form:"describe" gorm:"column:describe;comment:描述;type:longtext;"` Bandwidth string `json:"bandwidth" form:"bandwidth" gorm:"column:bandwidth;comment:服务器带宽;"` Username string `json:"username" form:"username" gorm:"colum:username;comment:用户名;"` Password string `json:"password" form:"password" gorm:"colum:password;comment:密码;"` PemFile string `json:"pemFile" form:"pemFile" gorm:"colum:pemFile;comment:pem文件;type:longtext;"` KeyFile string `json:"keyFile" form:"keyFile" gorm:"colum:keyFile;comment:key文件;type:longtext;"` Region string `json:"region" form:"region" gorm:"column:region;comment:服务器所在地;"` Domain string `json:"domain" form:"domain" gorm:"column:domain;comment:域名;"` Cookie string `json:"cookie" form:"cookie" gorm:"column:cookie;comment:cookie;size:500;"` IsOpenaiServer *uint `json:"isOpenaiServer" form:"isOpenaiServer" gorm:"column:is_openai_server;default:0;comment:是否提供openai server;"` CreatedBy uint `gorm:"column:created_by;comment:创建者"` UpdatedBy uint `gorm:"column:updated_by;comment:更新者"` DeletedBy uint `gorm:"column:deleted_by;comment:删除者"` }
ServerNode 结构体
type StreamSettings ¶
type StreamSettings struct { Network string `json:"network"` Security string `json:"security"` TlsSettings TlsSettings `json:"tlsSettings"` TcpSettings TcpSettings `json:"tcpSettings"` }
type TcpSettings ¶
type TcpSettings struct {
Header Header `json:"header"`
}
type TlsSettings ¶
type TlsSettings struct { ServerName string `json:"serverName"` Certificates []Certificates `json:"certificates"` }
type XuiResponse ¶
Click to show internal directories.
Click to hide internal directories.