Versions in this module Expand all Collapse all v1 v1.0.11 Jun 28, 2026 v1.0.10 Jun 26, 2026 v1.0.9 Jun 25, 2026 Changes in this version type CompatLegacyServerCommon + Port uint16 v1.0.8 Jun 24, 2026 v1.0.7 Jun 23, 2026 Changes in this version + type CompatLegacyGetServerConfigRequest struct + type CompatLegacyGetServerConfigResponse struct + Basic CompatLegacyServerBasic + Config interface{} + Protocol string + type CompatLegacyGetServerUserListRequest struct + type CompatLegacyGetServerUserListResponse struct + Users []CompatLegacyServerUser + type CompatLegacyNodeConfig struct + Block string + DNS string + IPStrategy string + NodePullInterval int64 + NodePushInterval int64 + NodeSecret string + Outbound string + TrafficReportThreshold int64 + type CompatLegacyNodeDNS struct + Address string + Domains []string + Proto string + type CompatLegacyNodeOutbound struct + Address string + Name string + Password string + Port int64 + Protocol string + Rules []string + type CompatLegacyOnlineUser struct + IP string + SID int64 + type CompatLegacyProvider interface + AppNodeConfig func() *conf.Node + DB func() *ent.Client + LoadNodeConfig func(ctx context.Context, module string) (*CompatLegacyNodeConfig, error) + Queue func() *asynq.Client + Redis func() redis.UniversalClient + type CompatLegacyPushOnlineUsersRequest struct + Users []CompatLegacyOnlineUser + type CompatLegacyPushServerStatusRequest struct + CPU float64 + Disk float64 + Mem float64 + UpdatedAt int64 + type CompatLegacyPushUserTrafficRequest struct + Traffic []CompatLegacyUserTraffic + type CompatLegacyQueryServerConfigRequest struct + Protocols []string + SecretKey string + ServerID int64 + type CompatLegacyQueryServerConfigResponse struct + Block []string + DNS []CompatLegacyNodeDNS + IPStrategy string + Outbound []CompatLegacyNodeOutbound + Protocols []*servermodel.Protocol + Total int64 + TrafficReportThreshold int64 + type CompatLegacyServerBasic struct + DeviceAdmissionEnabled bool + DeviceCountMode string + PullInterval int64 + PushInterval int64 + type CompatLegacyServerCommon struct + Protocol string + SecretKey string + ServerID int64 + type CompatLegacyServerUser struct + DeviceLimit int64 + ID int64 + SpeedLimit int64 + UUID string + type CompatLegacyUserTraffic struct + Download int64 + SID int64 + Upload int64 + type ServerService struct + func NewServerService(uc *serverBiz.ServerNodeUsecase, logger log.Logger) *ServerService + func (s *ServerService) CompatGetServerConfig(ctx context.Context, provider CompatLegacyProvider, ...) (*CompatLegacyGetServerConfigResponse, string, bool, error) + func (s *ServerService) CompatGetServerUserList(ctx context.Context, provider CompatLegacyProvider, ...) (*CompatLegacyGetServerUserListResponse, string, bool, error) + func (s *ServerService) CompatPushOnlineUsers(ctx context.Context, provider CompatLegacyProvider, ...) error + func (s *ServerService) CompatPushServerStatus(ctx context.Context, provider CompatLegacyProvider, ...) error + func (s *ServerService) CompatPushUserTraffic(ctx context.Context, provider CompatLegacyProvider, ...) error + func (s *ServerService) CompatQueryServerProtocolConfig(ctx context.Context, provider CompatLegacyProvider, ...) (*CompatLegacyQueryServerConfigResponse, error) + func (s *ServerService) CompatV1ServerSecretAllowed(ctx context.Context, provider CompatLegacyProvider, provided string) bool + func (s *ServerService) CompatV2ServerSecretAllowed(ctx context.Context, provider CompatLegacyProvider, provided string) bool + func (s *ServerService) GetServerConfig(ctx context.Context, req *v1.GetServerConfigRequest) (*v1.GetServerConfigReply, error) + func (s *ServerService) GetServerUserList(ctx context.Context, req *v1.GetServerUserListRequest) (*v1.GetServerUserListReply, error) + func (s *ServerService) PushOnlineUsers(ctx context.Context, req *v1.PushOnlineUsersRequest) (*v1.PushOnlineUsersReply, error) + func (s *ServerService) PushServerStatus(ctx context.Context, req *v1.PushServerStatusRequest) (*v1.PushServerStatusReply, error) + func (s *ServerService) PushUserTraffic(ctx context.Context, req *v1.PushUserTrafficRequest) (*v1.PushUserTrafficReply, error) + func (s *ServerService) QueryServerProtocolConfig(ctx context.Context, req *v1.QueryServerProtocolConfigRequest) (*v1.QueryServerProtocolConfigReply, error) + func (s *ServerService) SessionCheck(ctx context.Context, req *v1.SessionCheckRequest) (*v1.SessionCheckResponse, error) + func (s *ServerService) SessionRelease(ctx context.Context, req *v1.SessionReleaseRequest) (*v1.SessionReleaseResponse, error)