Documentation
¶
Index ¶
- Constants
- type AnyTLSNode
- type GetServerConfigLogic
- type GetServerUserListLogic
- type Hysteria2Node
- type PushOnlineUsersLogic
- type QueryServerProtocolConfigLogic
- type SecurityConfig
- type ServerPushStatusLogic
- type ServerPushUserTrafficLogic
- type ShadowsocksNode
- type TransportConfig
- type TrojanNode
- type TuicNode
- type VlessNode
- type VmessNode
Constants ¶
View Source
const ( Unchanged = "Unchanged" ShadowSocks = "shadowsocks" Vmess = "vmess" Vless = "vless" Trojan = "trojan" AnyTLS = "anytls" Tuic = "tuic" Hysteria = "hysteria" Hysteria2 = "hysteria2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyTLSNode ¶ added in v1.1.0
type AnyTLSNode struct {
Port uint16 `json:"port"`
SecurityConfig *SecurityConfig `json:"security_config"`
}
type GetServerConfigLogic ¶
func NewGetServerConfigLogic ¶
func NewGetServerConfigLogic(ctx *gin.Context, svcCtx *svc.ServiceContext) *GetServerConfigLogic
NewGetServerConfigLogic Get server config
func (*GetServerConfigLogic) GetServerConfig ¶
func (l *GetServerConfigLogic) GetServerConfig(req *types.GetServerConfigRequest) (resp *types.GetServerConfigResponse, err error)
type GetServerUserListLogic ¶
func NewGetServerUserListLogic ¶
func NewGetServerUserListLogic(ctx *gin.Context, svcCtx *svc.ServiceContext) *GetServerUserListLogic
NewGetServerUserListLogic Get user list
func (*GetServerUserListLogic) GetServerUserList ¶
func (l *GetServerUserListLogic) GetServerUserList(req *types.GetServerUserListRequest) (resp *types.GetServerUserListResponse, err error)
type Hysteria2Node ¶ added in v1.1.0
type Hysteria2Node struct {
Port uint16 `json:"port"`
HopPorts string `json:"hop_ports"`
HopInterval int `json:"hop_interval"`
ObfsPassword string `json:"obfs_password"`
SecurityConfig *SecurityConfig `json:"security_config"`
}
type PushOnlineUsersLogic ¶
func NewPushOnlineUsersLogic ¶
func NewPushOnlineUsersLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PushOnlineUsersLogic
NewPushOnlineUsersLogic Push online users
func (*PushOnlineUsersLogic) PushOnlineUsers ¶
func (l *PushOnlineUsersLogic) PushOnlineUsers(req *types.OnlineUsersRequest) error
type QueryServerProtocolConfigLogic ¶ added in v1.1.0
type QueryServerProtocolConfigLogic struct {
logger.Logger
// contains filtered or unexported fields
}
func NewQueryServerProtocolConfigLogic ¶ added in v1.1.0
func NewQueryServerProtocolConfigLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryServerProtocolConfigLogic
NewQueryServerProtocolConfigLogic Get Server Protocol Config
func (*QueryServerProtocolConfigLogic) QueryServerProtocolConfig ¶ added in v1.1.0
func (l *QueryServerProtocolConfigLogic) QueryServerProtocolConfig(req *types.QueryServerConfigRequest) (resp *types.QueryServerConfigResponse, err error)
type SecurityConfig ¶ added in v1.1.0
type SecurityConfig struct {
SNI string `json:"sni"`
AllowInsecure *bool `json:"allow_insecure"`
Fingerprint string `json:"fingerprint"`
RealityServerAddress string `json:"reality_server_addr"`
RealityServerPort int `json:"reality_server_port"`
RealityPrivateKey string `json:"reality_private_key"`
RealityPublicKey string `json:"reality_public_key"`
RealityShortId string `json:"reality_short_id"`
RealityMldsa65seed string `json:"reality_mldsa65seed"`
}
type ServerPushStatusLogic ¶
func NewServerPushStatusLogic ¶
func NewServerPushStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ServerPushStatusLogic
NewServerPushStatusLogic Push server status
func (*ServerPushStatusLogic) ServerPushStatus ¶
func (l *ServerPushStatusLogic) ServerPushStatus(req *types.ServerPushStatusRequest) error
type ServerPushUserTrafficLogic ¶
func NewServerPushUserTrafficLogic ¶
func NewServerPushUserTrafficLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ServerPushUserTrafficLogic
NewServerPushUserTrafficLogic Push user Traffic
func (*ServerPushUserTrafficLogic) ServerPushUserTraffic ¶
func (l *ServerPushUserTrafficLogic) ServerPushUserTraffic(req *types.ServerPushUserTrafficRequest) error
type ShadowsocksNode ¶ added in v1.1.0
type TransportConfig ¶ added in v1.1.0
type TrojanNode ¶ added in v1.1.0
type TrojanNode struct {
Port uint16 `json:"port"`
Network string `json:"transport"`
TransportConfig *TransportConfig `json:"transport_config"`
Security string `json:"security"`
SecurityConfig *SecurityConfig `json:"security_config"`
}
type TuicNode ¶ added in v1.1.0
type TuicNode struct {
Port uint16 `json:"port"`
SecurityConfig *SecurityConfig `json:"security_config"`
}
type VlessNode ¶ added in v1.1.0
type VlessNode struct {
Port uint16 `json:"port"`
Flow string `json:"flow"`
Network string `json:"transport"`
TransportConfig *TransportConfig `json:"transport_config"`
Security string `json:"security"`
SecurityConfig *SecurityConfig `json:"security_config"`
}
type VmessNode ¶ added in v1.1.0
type VmessNode struct {
Port uint16 `json:"port"`
Network string `json:"transport"`
TransportConfig *TransportConfig `json:"transport_config"`
Security string `json:"security"`
SecurityConfig *SecurityConfig `json:"security_config"`
}
Click to show internal directories.
Click to hide internal directories.