server

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

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

type GetServerConfigLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewGetServerConfigLogic

func NewGetServerConfigLogic(ctx *gin.Context, svcCtx *svc.ServiceContext) *GetServerConfigLogic

NewGetServerConfigLogic Get server config

func (*GetServerConfigLogic) GetServerConfig

type GetServerUserListLogic

type GetServerUserListLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewGetServerUserListLogic

func NewGetServerUserListLogic(ctx *gin.Context, svcCtx *svc.ServiceContext) *GetServerUserListLogic

NewGetServerUserListLogic Get user list

func (*GetServerUserListLogic) GetServerUserList

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

type PushOnlineUsersLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

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

type ServerPushStatusLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type ServerPushUserTrafficLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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 ShadowsocksNode struct {
	Port      uint16 `json:"port"`
	Cipher    string `json:"method"`
	ServerKey string `json:"server_key"`
}

type TransportConfig added in v1.1.0

type TransportConfig struct {
	Path                 string `json:"path"`
	Host                 string `json:"host"`
	ServiceName          string `json:"service_name"`
	DisableSNI           bool   `json:"disable_sni"`
	ReduceRtt            bool   `json:"reduce_rtt"`
	UDPRelayMode         string `json:"udp_relay_mode"`
	CongestionController string `json:"congestion_controller"`
}

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"`
}

Jump to

Keyboard shortcuts

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