Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterServerHTTPServer(s *http.Server, srv ServerHTTPServer)
- func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)
- type GetServerConfigReply
- func (*GetServerConfigReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetServerConfigReply) GetBasic() *ServerBasic
- func (x *GetServerConfigReply) GetCode() int32
- func (x *GetServerConfigReply) GetConfig() map[string]string
- func (x *GetServerConfigReply) GetMessage() string
- func (x *GetServerConfigReply) GetProtocol() string
- func (*GetServerConfigReply) ProtoMessage()
- func (x *GetServerConfigReply) ProtoReflect() protoreflect.Message
- func (x *GetServerConfigReply) Reset()
- func (x *GetServerConfigReply) String() string
- func (m *GetServerConfigReply) Validate() error
- func (m *GetServerConfigReply) ValidateAll() error
- type GetServerConfigReplyMultiError
- type GetServerConfigReplyValidationError
- func (e GetServerConfigReplyValidationError) Cause() error
- func (e GetServerConfigReplyValidationError) Error() string
- func (e GetServerConfigReplyValidationError) ErrorName() string
- func (e GetServerConfigReplyValidationError) Field() string
- func (e GetServerConfigReplyValidationError) Key() bool
- func (e GetServerConfigReplyValidationError) Reason() string
- type GetServerConfigRequest
- func (*GetServerConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetServerConfigRequest) GetProtocol() string
- func (x *GetServerConfigRequest) GetSecretKey() string
- func (x *GetServerConfigRequest) GetServerId() int64
- func (*GetServerConfigRequest) ProtoMessage()
- func (x *GetServerConfigRequest) ProtoReflect() protoreflect.Message
- func (x *GetServerConfigRequest) Reset()
- func (x *GetServerConfigRequest) String() string
- func (m *GetServerConfigRequest) Validate() error
- func (m *GetServerConfigRequest) ValidateAll() error
- type GetServerConfigRequestMultiError
- type GetServerConfigRequestValidationError
- func (e GetServerConfigRequestValidationError) Cause() error
- func (e GetServerConfigRequestValidationError) Error() string
- func (e GetServerConfigRequestValidationError) ErrorName() string
- func (e GetServerConfigRequestValidationError) Field() string
- func (e GetServerConfigRequestValidationError) Key() bool
- func (e GetServerConfigRequestValidationError) Reason() string
- type GetServerUserListReply
- func (*GetServerUserListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetServerUserListReply) GetCode() int32
- func (x *GetServerUserListReply) GetMessage() string
- func (x *GetServerUserListReply) GetUsers() []*ServerUser
- func (*GetServerUserListReply) ProtoMessage()
- func (x *GetServerUserListReply) ProtoReflect() protoreflect.Message
- func (x *GetServerUserListReply) Reset()
- func (x *GetServerUserListReply) String() string
- func (m *GetServerUserListReply) Validate() error
- func (m *GetServerUserListReply) ValidateAll() error
- type GetServerUserListReplyMultiError
- type GetServerUserListReplyValidationError
- func (e GetServerUserListReplyValidationError) Cause() error
- func (e GetServerUserListReplyValidationError) Error() string
- func (e GetServerUserListReplyValidationError) ErrorName() string
- func (e GetServerUserListReplyValidationError) Field() string
- func (e GetServerUserListReplyValidationError) Key() bool
- func (e GetServerUserListReplyValidationError) Reason() string
- type GetServerUserListRequest
- func (*GetServerUserListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetServerUserListRequest) GetProtocol() string
- func (x *GetServerUserListRequest) GetSecretKey() string
- func (x *GetServerUserListRequest) GetServerId() int64
- func (*GetServerUserListRequest) ProtoMessage()
- func (x *GetServerUserListRequest) ProtoReflect() protoreflect.Message
- func (x *GetServerUserListRequest) Reset()
- func (x *GetServerUserListRequest) String() string
- func (m *GetServerUserListRequest) Validate() error
- func (m *GetServerUserListRequest) ValidateAll() error
- type GetServerUserListRequestMultiError
- type GetServerUserListRequestValidationError
- func (e GetServerUserListRequestValidationError) Cause() error
- func (e GetServerUserListRequestValidationError) Error() string
- func (e GetServerUserListRequestValidationError) ErrorName() string
- func (e GetServerUserListRequestValidationError) Field() string
- func (e GetServerUserListRequestValidationError) Key() bool
- func (e GetServerUserListRequestValidationError) Reason() string
- type NodeDNS
- func (*NodeDNS) Descriptor() ([]byte, []int)deprecated
- func (x *NodeDNS) GetDomain() string
- func (x *NodeDNS) GetPort() int64
- func (x *NodeDNS) GetServer() string
- func (*NodeDNS) ProtoMessage()
- func (x *NodeDNS) ProtoReflect() protoreflect.Message
- func (x *NodeDNS) Reset()
- func (x *NodeDNS) String() string
- func (m *NodeDNS) Validate() error
- func (m *NodeDNS) ValidateAll() error
- type NodeDNSMultiError
- type NodeDNSValidationError
- type NodeOutbound
- func (*NodeOutbound) Descriptor() ([]byte, []int)deprecated
- func (x *NodeOutbound) GetProtocol() string
- func (x *NodeOutbound) GetSettings() map[string]string
- func (x *NodeOutbound) GetTag() string
- func (*NodeOutbound) ProtoMessage()
- func (x *NodeOutbound) ProtoReflect() protoreflect.Message
- func (x *NodeOutbound) Reset()
- func (x *NodeOutbound) String() string
- func (m *NodeOutbound) Validate() error
- func (m *NodeOutbound) ValidateAll() error
- type NodeOutboundMultiError
- type NodeOutboundValidationError
- func (e NodeOutboundValidationError) Cause() error
- func (e NodeOutboundValidationError) Error() string
- func (e NodeOutboundValidationError) ErrorName() string
- func (e NodeOutboundValidationError) Field() string
- func (e NodeOutboundValidationError) Key() bool
- func (e NodeOutboundValidationError) Reason() string
- type OnlineUser
- func (*OnlineUser) Descriptor() ([]byte, []int)deprecated
- func (x *OnlineUser) GetConnectedAt() int64
- func (x *OnlineUser) GetIp() string
- func (x *OnlineUser) GetSid() int64
- func (*OnlineUser) ProtoMessage()
- func (x *OnlineUser) ProtoReflect() protoreflect.Message
- func (x *OnlineUser) Reset()
- func (x *OnlineUser) String() string
- func (m *OnlineUser) Validate() error
- func (m *OnlineUser) ValidateAll() error
- type OnlineUserMultiError
- type OnlineUserValidationError
- type Protocol
- func (*Protocol) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol) GetAllowInsecure() bool
- func (x *Protocol) GetCertDnsEnv() string
- func (x *Protocol) GetCertDnsProvider() string
- func (x *Protocol) GetCertMode() string
- func (x *Protocol) GetCipher() string
- func (x *Protocol) GetCongestionController() string
- func (x *Protocol) GetDisableSni() bool
- func (x *Protocol) GetDownMbps() int32
- func (x *Protocol) GetEnable() bool
- func (x *Protocol) GetEncryption() string
- func (x *Protocol) GetEncryptionClientPadding() string
- func (x *Protocol) GetEncryptionMode() string
- func (x *Protocol) GetEncryptionPassword() string
- func (x *Protocol) GetEncryptionPrivateKey() string
- func (x *Protocol) GetEncryptionRtt() string
- func (x *Protocol) GetEncryptionServerPadding() string
- func (x *Protocol) GetEncryptionTicket() string
- func (x *Protocol) GetFingerprint() string
- func (x *Protocol) GetFlow() string
- func (x *Protocol) GetHopInterval() int32
- func (x *Protocol) GetHopPorts() string
- func (x *Protocol) GetHost() string
- func (x *Protocol) GetMultiplex() string
- func (x *Protocol) GetObfs() string
- func (x *Protocol) GetObfsHost() string
- func (x *Protocol) GetObfsPassword() string
- func (x *Protocol) GetObfsPath() string
- func (x *Protocol) GetOmniflowAdaptiveTlsEnabled() bool
- func (x *Protocol) GetOmniflowAfEnabled() bool
- func (x *Protocol) GetOmniflowAfPathMode() string
- func (x *Protocol) GetOmniflowAfPathPrefix() string
- func (x *Protocol) GetOmniflowAfPathRotationSecs() int32
- func (x *Protocol) GetOmniflowAfPathSkewSlots() int32
- func (x *Protocol) GetOmniflowAfPathSuffix() string
- func (x *Protocol) GetOmniflowCaCertPath() string
- func (x *Protocol) GetOmniflowCarrier() string
- func (x *Protocol) GetOmniflowContentType() string
- func (x *Protocol) GetOmniflowFallbackCarrierEnabled() bool
- func (x *Protocol) GetOmniflowFallbackConnectTunnel() bool
- func (x *Protocol) GetOmniflowFallbackEnabled() bool
- func (x *Protocol) GetOmniflowFallbackHostHeader() string
- func (x *Protocol) GetOmniflowFallbackTargetHost() string
- func (x *Protocol) GetOmniflowFallbackTargetPort() int32
- func (x *Protocol) GetOmniflowFallbackTargetScheme() string
- func (x *Protocol) GetOmniflowFallbackTlsSni() string
- func (x *Protocol) GetOmniflowFallbackWssEnabled() bool
- func (x *Protocol) GetOmniflowH3FallbackEnabled() bool
- func (x *Protocol) GetOmniflowH3FallbackPolicy() string
- func (x *Protocol) GetOmniflowH3FallbackRetryBudget() int32
- func (x *Protocol) GetOmniflowH3FallbackSmokeEnabled() bool
- func (x *Protocol) GetOmniflowH3FallbackSmokeIntervalSec() int32
- func (x *Protocol) GetOmniflowH3FallbackSmokeTimeoutMs() int32
- func (x *Protocol) GetOmniflowH3FallbackTimeoutMs() int32
- func (x *Protocol) GetOmniflowIdleTimeoutSec() int32
- func (x *Protocol) GetOmniflowMaxAgeSec() int32
- func (x *Protocol) GetOmniflowMaxConnections() int32
- func (x *Protocol) GetOmniflowPaddingMode() string
- func (x *Protocol) GetOmniflowPath() string
- func (x *Protocol) GetOmniflowProfileJson() string
- func (x *Protocol) GetOmniflowProfilePath() string
- func (x *Protocol) GetOmniflowServerHost() string
- func (x *Protocol) GetOmniflowServerPort() int32
- func (x *Protocol) GetOmniflowSniMode() string
- func (x *Protocol) GetOmniflowSpkiPin() string
- func (x *Protocol) GetOmniflowTargetMeta() string
- func (x *Protocol) GetOmniflowTlsFingerprint() string
- func (x *Protocol) GetOmniflowTrafficShapingEnabled() bool
- func (x *Protocol) GetPaddingScheme() string
- func (x *Protocol) GetPath() string
- func (x *Protocol) GetPort() int32
- func (x *Protocol) GetRatio() float64
- func (x *Protocol) GetRealityPrivateKey() string
- func (x *Protocol) GetRealityPublicKey() string
- func (x *Protocol) GetRealityServerAddr() string
- func (x *Protocol) GetRealityServerPort() int32
- func (x *Protocol) GetRealityShortId() string
- func (x *Protocol) GetReduceRtt() bool
- func (x *Protocol) GetSecurity() string
- func (x *Protocol) GetServerKey() string
- func (x *Protocol) GetServiceName() string
- func (x *Protocol) GetSimnetAfEnabled() bool
- func (x *Protocol) GetSimnetAfFakeHeaderInjection() bool
- func (x *Protocol) GetSimnetAfHandshakePolymorphism() bool
- func (x *Protocol) GetSimnetAfMagicMode() string
- func (x *Protocol) GetSimnetAfPathMode() string
- func (x *Protocol) GetSimnetAfPathPrefix() string
- func (x *Protocol) GetSimnetAfPathSuffix() string
- func (x *Protocol) GetSimnetAfResponseJitterMs() int32
- func (x *Protocol) GetSimnetAfSettingsJitter() bool
- func (x *Protocol) GetSimnetCarrier() string
- func (x *Protocol) GetSimnetFallbackEnabled() bool
- func (x *Protocol) GetSimnetFallbackHostHeader() string
- func (x *Protocol) GetSimnetFallbackTargetHost() string
- func (x *Protocol) GetSimnetFallbackTargetPort() int32
- func (x *Protocol) GetSimnetFallbackTargetScheme() string
- func (x *Protocol) GetSimnetFallbackTlsSni() string
- func (x *Protocol) GetSimnetKeyId() int32
- func (x *Protocol) GetSimnetPath() string
- func (x *Protocol) GetSimnetPsk() string
- func (x *Protocol) GetSimnetReverseEnabled() bool
- func (x *Protocol) GetSimnetReverseListenAddr() string
- func (x *Protocol) GetSimnetReverseListenPort() int32
- func (x *Protocol) GetSimnetReverseTargetHost() string
- func (x *Protocol) GetSimnetReverseTargetPort() int32
- func (x *Protocol) GetSimnetTicketId() string
- func (x *Protocol) GetSni() string
- func (x *Protocol) GetTransport() string
- func (x *Protocol) GetType() string
- func (x *Protocol) GetUdpRelayMode() string
- func (x *Protocol) GetUpMbps() int32
- func (x *Protocol) GetXhttpExtra() string
- func (x *Protocol) GetXhttpMode() string
- func (*Protocol) ProtoMessage()
- func (x *Protocol) ProtoReflect() protoreflect.Message
- func (x *Protocol) Reset()
- func (x *Protocol) String() string
- func (m *Protocol) Validate() error
- func (m *Protocol) ValidateAll() error
- type ProtocolMultiError
- type ProtocolValidationError
- type PushOnlineUsersReply
- func (*PushOnlineUsersReply) Descriptor() ([]byte, []int)deprecated
- func (x *PushOnlineUsersReply) GetCode() int32
- func (x *PushOnlineUsersReply) GetMessage() string
- func (*PushOnlineUsersReply) ProtoMessage()
- func (x *PushOnlineUsersReply) ProtoReflect() protoreflect.Message
- func (x *PushOnlineUsersReply) Reset()
- func (x *PushOnlineUsersReply) String() string
- func (m *PushOnlineUsersReply) Validate() error
- func (m *PushOnlineUsersReply) ValidateAll() error
- type PushOnlineUsersReplyMultiError
- type PushOnlineUsersReplyValidationError
- func (e PushOnlineUsersReplyValidationError) Cause() error
- func (e PushOnlineUsersReplyValidationError) Error() string
- func (e PushOnlineUsersReplyValidationError) ErrorName() string
- func (e PushOnlineUsersReplyValidationError) Field() string
- func (e PushOnlineUsersReplyValidationError) Key() bool
- func (e PushOnlineUsersReplyValidationError) Reason() string
- type PushOnlineUsersRequest
- func (*PushOnlineUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PushOnlineUsersRequest) GetProtocol() string
- func (x *PushOnlineUsersRequest) GetSecretKey() string
- func (x *PushOnlineUsersRequest) GetServerId() int64
- func (x *PushOnlineUsersRequest) GetUsers() []*OnlineUser
- func (*PushOnlineUsersRequest) ProtoMessage()
- func (x *PushOnlineUsersRequest) ProtoReflect() protoreflect.Message
- func (x *PushOnlineUsersRequest) Reset()
- func (x *PushOnlineUsersRequest) String() string
- func (m *PushOnlineUsersRequest) Validate() error
- func (m *PushOnlineUsersRequest) ValidateAll() error
- type PushOnlineUsersRequestMultiError
- type PushOnlineUsersRequestValidationError
- func (e PushOnlineUsersRequestValidationError) Cause() error
- func (e PushOnlineUsersRequestValidationError) Error() string
- func (e PushOnlineUsersRequestValidationError) ErrorName() string
- func (e PushOnlineUsersRequestValidationError) Field() string
- func (e PushOnlineUsersRequestValidationError) Key() bool
- func (e PushOnlineUsersRequestValidationError) Reason() string
- type PushServerStatusReply
- func (*PushServerStatusReply) Descriptor() ([]byte, []int)deprecated
- func (x *PushServerStatusReply) GetCode() int32
- func (x *PushServerStatusReply) GetMessage() string
- func (*PushServerStatusReply) ProtoMessage()
- func (x *PushServerStatusReply) ProtoReflect() protoreflect.Message
- func (x *PushServerStatusReply) Reset()
- func (x *PushServerStatusReply) String() string
- func (m *PushServerStatusReply) Validate() error
- func (m *PushServerStatusReply) ValidateAll() error
- type PushServerStatusReplyMultiError
- type PushServerStatusReplyValidationError
- func (e PushServerStatusReplyValidationError) Cause() error
- func (e PushServerStatusReplyValidationError) Error() string
- func (e PushServerStatusReplyValidationError) ErrorName() string
- func (e PushServerStatusReplyValidationError) Field() string
- func (e PushServerStatusReplyValidationError) Key() bool
- func (e PushServerStatusReplyValidationError) Reason() string
- type PushServerStatusRequest
- func (*PushServerStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PushServerStatusRequest) GetCpu() float64
- func (x *PushServerStatusRequest) GetDisk() float64
- func (x *PushServerStatusRequest) GetMem() float64
- func (x *PushServerStatusRequest) GetProtocol() string
- func (x *PushServerStatusRequest) GetSecretKey() string
- func (x *PushServerStatusRequest) GetServerId() int64
- func (x *PushServerStatusRequest) GetUpdatedAt() int64
- func (*PushServerStatusRequest) ProtoMessage()
- func (x *PushServerStatusRequest) ProtoReflect() protoreflect.Message
- func (x *PushServerStatusRequest) Reset()
- func (x *PushServerStatusRequest) String() string
- func (m *PushServerStatusRequest) Validate() error
- func (m *PushServerStatusRequest) ValidateAll() error
- type PushServerStatusRequestMultiError
- type PushServerStatusRequestValidationError
- func (e PushServerStatusRequestValidationError) Cause() error
- func (e PushServerStatusRequestValidationError) Error() string
- func (e PushServerStatusRequestValidationError) ErrorName() string
- func (e PushServerStatusRequestValidationError) Field() string
- func (e PushServerStatusRequestValidationError) Key() bool
- func (e PushServerStatusRequestValidationError) Reason() string
- type PushUserTrafficReply
- func (*PushUserTrafficReply) Descriptor() ([]byte, []int)deprecated
- func (x *PushUserTrafficReply) GetCode() int32
- func (x *PushUserTrafficReply) GetMessage() string
- func (*PushUserTrafficReply) ProtoMessage()
- func (x *PushUserTrafficReply) ProtoReflect() protoreflect.Message
- func (x *PushUserTrafficReply) Reset()
- func (x *PushUserTrafficReply) String() string
- func (m *PushUserTrafficReply) Validate() error
- func (m *PushUserTrafficReply) ValidateAll() error
- type PushUserTrafficReplyMultiError
- type PushUserTrafficReplyValidationError
- func (e PushUserTrafficReplyValidationError) Cause() error
- func (e PushUserTrafficReplyValidationError) Error() string
- func (e PushUserTrafficReplyValidationError) ErrorName() string
- func (e PushUserTrafficReplyValidationError) Field() string
- func (e PushUserTrafficReplyValidationError) Key() bool
- func (e PushUserTrafficReplyValidationError) Reason() string
- type PushUserTrafficRequest
- func (*PushUserTrafficRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PushUserTrafficRequest) GetProtocol() string
- func (x *PushUserTrafficRequest) GetSecretKey() string
- func (x *PushUserTrafficRequest) GetServerId() int64
- func (x *PushUserTrafficRequest) GetTraffic() []*UserTraffic
- func (*PushUserTrafficRequest) ProtoMessage()
- func (x *PushUserTrafficRequest) ProtoReflect() protoreflect.Message
- func (x *PushUserTrafficRequest) Reset()
- func (x *PushUserTrafficRequest) String() string
- func (m *PushUserTrafficRequest) Validate() error
- func (m *PushUserTrafficRequest) ValidateAll() error
- type PushUserTrafficRequestMultiError
- type PushUserTrafficRequestValidationError
- func (e PushUserTrafficRequestValidationError) Cause() error
- func (e PushUserTrafficRequestValidationError) Error() string
- func (e PushUserTrafficRequestValidationError) ErrorName() string
- func (e PushUserTrafficRequestValidationError) Field() string
- func (e PushUserTrafficRequestValidationError) Key() bool
- func (e PushUserTrafficRequestValidationError) Reason() string
- type QueryServerProtocolConfigReply
- func (*QueryServerProtocolConfigReply) Descriptor() ([]byte, []int)deprecated
- func (x *QueryServerProtocolConfigReply) GetBlock() []string
- func (x *QueryServerProtocolConfigReply) GetCode() int32
- func (x *QueryServerProtocolConfigReply) GetDns() []*NodeDNS
- func (x *QueryServerProtocolConfigReply) GetIpStrategy() string
- func (x *QueryServerProtocolConfigReply) GetMessage() string
- func (x *QueryServerProtocolConfigReply) GetOutbound() []*NodeOutbound
- func (x *QueryServerProtocolConfigReply) GetProtocols() []*Protocol
- func (x *QueryServerProtocolConfigReply) GetTotal() int32
- func (x *QueryServerProtocolConfigReply) GetTrafficReportThreshold() int64
- func (*QueryServerProtocolConfigReply) ProtoMessage()
- func (x *QueryServerProtocolConfigReply) ProtoReflect() protoreflect.Message
- func (x *QueryServerProtocolConfigReply) Reset()
- func (x *QueryServerProtocolConfigReply) String() string
- func (m *QueryServerProtocolConfigReply) Validate() error
- func (m *QueryServerProtocolConfigReply) ValidateAll() error
- type QueryServerProtocolConfigReplyMultiError
- type QueryServerProtocolConfigReplyValidationError
- func (e QueryServerProtocolConfigReplyValidationError) Cause() error
- func (e QueryServerProtocolConfigReplyValidationError) Error() string
- func (e QueryServerProtocolConfigReplyValidationError) ErrorName() string
- func (e QueryServerProtocolConfigReplyValidationError) Field() string
- func (e QueryServerProtocolConfigReplyValidationError) Key() bool
- func (e QueryServerProtocolConfigReplyValidationError) Reason() string
- type QueryServerProtocolConfigRequest
- func (*QueryServerProtocolConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryServerProtocolConfigRequest) GetProtocols() []string
- func (x *QueryServerProtocolConfigRequest) GetSecretKey() string
- func (x *QueryServerProtocolConfigRequest) GetServerId() int64
- func (*QueryServerProtocolConfigRequest) ProtoMessage()
- func (x *QueryServerProtocolConfigRequest) ProtoReflect() protoreflect.Message
- func (x *QueryServerProtocolConfigRequest) Reset()
- func (x *QueryServerProtocolConfigRequest) String() string
- func (m *QueryServerProtocolConfigRequest) Validate() error
- func (m *QueryServerProtocolConfigRequest) ValidateAll() error
- type QueryServerProtocolConfigRequestMultiError
- type QueryServerProtocolConfigRequestValidationError
- func (e QueryServerProtocolConfigRequestValidationError) Cause() error
- func (e QueryServerProtocolConfigRequestValidationError) Error() string
- func (e QueryServerProtocolConfigRequestValidationError) ErrorName() string
- func (e QueryServerProtocolConfigRequestValidationError) Field() string
- func (e QueryServerProtocolConfigRequestValidationError) Key() bool
- func (e QueryServerProtocolConfigRequestValidationError) Reason() string
- type ServerBasic
- func (*ServerBasic) Descriptor() ([]byte, []int)deprecated
- func (x *ServerBasic) GetDeviceAdmissionEnabled() bool
- func (x *ServerBasic) GetDeviceCountMode() string
- func (x *ServerBasic) GetPullInterval() int64
- func (x *ServerBasic) GetPushInterval() int64
- func (*ServerBasic) ProtoMessage()
- func (x *ServerBasic) ProtoReflect() protoreflect.Message
- func (x *ServerBasic) Reset()
- func (x *ServerBasic) String() string
- func (m *ServerBasic) Validate() error
- func (m *ServerBasic) ValidateAll() error
- type ServerBasicMultiError
- type ServerBasicValidationError
- func (e ServerBasicValidationError) Cause() error
- func (e ServerBasicValidationError) Error() string
- func (e ServerBasicValidationError) ErrorName() string
- func (e ServerBasicValidationError) Field() string
- func (e ServerBasicValidationError) Key() bool
- func (e ServerBasicValidationError) Reason() string
- type ServerClient
- type ServerHTTPClient
- type ServerHTTPClientImpl
- func (c *ServerHTTPClientImpl) GetServerConfig(ctx context.Context, in *GetServerConfigRequest, opts ...http.CallOption) (*GetServerConfigReply, error)
- func (c *ServerHTTPClientImpl) GetServerUserList(ctx context.Context, in *GetServerUserListRequest, opts ...http.CallOption) (*GetServerUserListReply, error)
- func (c *ServerHTTPClientImpl) PushOnlineUsers(ctx context.Context, in *PushOnlineUsersRequest, opts ...http.CallOption) (*PushOnlineUsersReply, error)
- func (c *ServerHTTPClientImpl) PushServerStatus(ctx context.Context, in *PushServerStatusRequest, opts ...http.CallOption) (*PushServerStatusReply, error)
- func (c *ServerHTTPClientImpl) PushUserTraffic(ctx context.Context, in *PushUserTrafficRequest, opts ...http.CallOption) (*PushUserTrafficReply, error)
- func (c *ServerHTTPClientImpl) QueryServerProtocolConfig(ctx context.Context, in *QueryServerProtocolConfigRequest, ...) (*QueryServerProtocolConfigReply, error)
- func (c *ServerHTTPClientImpl) SessionCheck(ctx context.Context, in *SessionCheckRequest, opts ...http.CallOption) (*SessionCheckResponse, error)
- func (c *ServerHTTPClientImpl) SessionRelease(ctx context.Context, in *SessionReleaseRequest, opts ...http.CallOption) (*SessionReleaseResponse, error)
- type ServerHTTPServer
- type ServerServer
- type ServerUser
- func (*ServerUser) Descriptor() ([]byte, []int)deprecated
- func (x *ServerUser) GetDeviceLimit() int64
- func (x *ServerUser) GetId() int64
- func (x *ServerUser) GetSpeedLimit() int64
- func (x *ServerUser) GetUuid() string
- func (*ServerUser) ProtoMessage()
- func (x *ServerUser) ProtoReflect() protoreflect.Message
- func (x *ServerUser) Reset()
- func (x *ServerUser) String() string
- func (m *ServerUser) Validate() error
- func (m *ServerUser) ValidateAll() error
- type ServerUserMultiError
- type ServerUserValidationError
- type SessionCheckRequest
- func (*SessionCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SessionCheckRequest) GetClientIp() string
- func (x *SessionCheckRequest) GetConnectionId() string
- func (x *SessionCheckRequest) GetProtocol() string
- func (x *SessionCheckRequest) GetSecretKey() string
- func (x *SessionCheckRequest) GetServerId() int64
- func (x *SessionCheckRequest) GetUserId() int64
- func (*SessionCheckRequest) ProtoMessage()
- func (x *SessionCheckRequest) ProtoReflect() protoreflect.Message
- func (x *SessionCheckRequest) Reset()
- func (x *SessionCheckRequest) String() string
- func (m *SessionCheckRequest) Validate() error
- func (m *SessionCheckRequest) ValidateAll() error
- type SessionCheckRequestMultiError
- type SessionCheckRequestValidationError
- func (e SessionCheckRequestValidationError) Cause() error
- func (e SessionCheckRequestValidationError) Error() string
- func (e SessionCheckRequestValidationError) ErrorName() string
- func (e SessionCheckRequestValidationError) Field() string
- func (e SessionCheckRequestValidationError) Key() bool
- func (e SessionCheckRequestValidationError) Reason() string
- type SessionCheckResponse
- func (*SessionCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SessionCheckResponse) GetAllowed() bool
- func (x *SessionCheckResponse) GetCurrent() int64
- func (x *SessionCheckResponse) GetLimit() int64
- func (x *SessionCheckResponse) GetReason() string
- func (*SessionCheckResponse) ProtoMessage()
- func (x *SessionCheckResponse) ProtoReflect() protoreflect.Message
- func (x *SessionCheckResponse) Reset()
- func (x *SessionCheckResponse) String() string
- func (m *SessionCheckResponse) Validate() error
- func (m *SessionCheckResponse) ValidateAll() error
- type SessionCheckResponseMultiError
- type SessionCheckResponseValidationError
- func (e SessionCheckResponseValidationError) Cause() error
- func (e SessionCheckResponseValidationError) Error() string
- func (e SessionCheckResponseValidationError) ErrorName() string
- func (e SessionCheckResponseValidationError) Field() string
- func (e SessionCheckResponseValidationError) Key() bool
- func (e SessionCheckResponseValidationError) Reason() string
- type SessionReleaseRequest
- func (*SessionReleaseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SessionReleaseRequest) GetClientIp() string
- func (x *SessionReleaseRequest) GetConnectionId() string
- func (x *SessionReleaseRequest) GetSecretKey() string
- func (x *SessionReleaseRequest) GetServerId() int64
- func (x *SessionReleaseRequest) GetUserId() int64
- func (*SessionReleaseRequest) ProtoMessage()
- func (x *SessionReleaseRequest) ProtoReflect() protoreflect.Message
- func (x *SessionReleaseRequest) Reset()
- func (x *SessionReleaseRequest) String() string
- func (m *SessionReleaseRequest) Validate() error
- func (m *SessionReleaseRequest) ValidateAll() error
- type SessionReleaseRequestMultiError
- type SessionReleaseRequestValidationError
- func (e SessionReleaseRequestValidationError) Cause() error
- func (e SessionReleaseRequestValidationError) Error() string
- func (e SessionReleaseRequestValidationError) ErrorName() string
- func (e SessionReleaseRequestValidationError) Field() string
- func (e SessionReleaseRequestValidationError) Key() bool
- func (e SessionReleaseRequestValidationError) Reason() string
- type SessionReleaseResponse
- func (*SessionReleaseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SessionReleaseResponse) GetSuccess() bool
- func (*SessionReleaseResponse) ProtoMessage()
- func (x *SessionReleaseResponse) ProtoReflect() protoreflect.Message
- func (x *SessionReleaseResponse) Reset()
- func (x *SessionReleaseResponse) String() string
- func (m *SessionReleaseResponse) Validate() error
- func (m *SessionReleaseResponse) ValidateAll() error
- type SessionReleaseResponseMultiError
- type SessionReleaseResponseValidationError
- func (e SessionReleaseResponseValidationError) Cause() error
- func (e SessionReleaseResponseValidationError) Error() string
- func (e SessionReleaseResponseValidationError) ErrorName() string
- func (e SessionReleaseResponseValidationError) Field() string
- func (e SessionReleaseResponseValidationError) Key() bool
- func (e SessionReleaseResponseValidationError) Reason() string
- type UnimplementedServerServer
- func (UnimplementedServerServer) GetServerConfig(context.Context, *GetServerConfigRequest) (*GetServerConfigReply, error)
- func (UnimplementedServerServer) GetServerUserList(context.Context, *GetServerUserListRequest) (*GetServerUserListReply, error)
- func (UnimplementedServerServer) PushOnlineUsers(context.Context, *PushOnlineUsersRequest) (*PushOnlineUsersReply, error)
- func (UnimplementedServerServer) PushServerStatus(context.Context, *PushServerStatusRequest) (*PushServerStatusReply, error)
- func (UnimplementedServerServer) PushUserTraffic(context.Context, *PushUserTrafficRequest) (*PushUserTrafficReply, error)
- func (UnimplementedServerServer) QueryServerProtocolConfig(context.Context, *QueryServerProtocolConfigRequest) (*QueryServerProtocolConfigReply, error)
- func (UnimplementedServerServer) SessionCheck(context.Context, *SessionCheckRequest) (*SessionCheckResponse, error)
- func (UnimplementedServerServer) SessionRelease(context.Context, *SessionReleaseRequest) (*SessionReleaseResponse, error)
- type UnsafeServerServer
- type UserTraffic
- func (*UserTraffic) Descriptor() ([]byte, []int)deprecated
- func (x *UserTraffic) GetDownload() int64
- func (x *UserTraffic) GetSid() int64
- func (x *UserTraffic) GetUpload() int64
- func (*UserTraffic) ProtoMessage()
- func (x *UserTraffic) ProtoReflect() protoreflect.Message
- func (x *UserTraffic) Reset()
- func (x *UserTraffic) String() string
- func (m *UserTraffic) Validate() error
- func (m *UserTraffic) ValidateAll() error
- type UserTrafficMultiError
- type UserTrafficValidationError
- func (e UserTrafficValidationError) Cause() error
- func (e UserTrafficValidationError) Error() string
- func (e UserTrafficValidationError) ErrorName() string
- func (e UserTrafficValidationError) Field() string
- func (e UserTrafficValidationError) Key() bool
- func (e UserTrafficValidationError) Reason() string
Constants ¶
const ( Server_GetServerConfig_FullMethodName = "/api.server.v1.Server/GetServerConfig" Server_GetServerUserList_FullMethodName = "/api.server.v1.Server/GetServerUserList" Server_PushUserTraffic_FullMethodName = "/api.server.v1.Server/PushUserTraffic" Server_PushServerStatus_FullMethodName = "/api.server.v1.Server/PushServerStatus" Server_PushOnlineUsers_FullMethodName = "/api.server.v1.Server/PushOnlineUsers" Server_QueryServerProtocolConfig_FullMethodName = "/api.server.v1.Server/QueryServerProtocolConfig" Server_SessionCheck_FullMethodName = "/api.server.v1.Server/SessionCheck" Server_SessionRelease_FullMethodName = "/api.server.v1.Server/SessionRelease" )
const OperationServerGetServerConfig = "/api.server.v1.Server/GetServerConfig"
const OperationServerGetServerUserList = "/api.server.v1.Server/GetServerUserList"
const OperationServerPushOnlineUsers = "/api.server.v1.Server/PushOnlineUsers"
const OperationServerPushServerStatus = "/api.server.v1.Server/PushServerStatus"
const OperationServerPushUserTraffic = "/api.server.v1.Server/PushUserTraffic"
const OperationServerQueryServerProtocolConfig = "/api.server.v1.Server/QueryServerProtocolConfig"
const OperationServerSessionCheck = "/api.server.v1.Server/SessionCheck"
const OperationServerSessionRelease = "/api.server.v1.Server/SessionRelease"
Variables ¶
var File_server_v1_server_proto protoreflect.FileDescriptor
var Server_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.server.v1.Server", HandlerType: (*ServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetServerConfig", Handler: _Server_GetServerConfig_Handler, }, { MethodName: "GetServerUserList", Handler: _Server_GetServerUserList_Handler, }, { MethodName: "PushUserTraffic", Handler: _Server_PushUserTraffic_Handler, }, { MethodName: "PushServerStatus", Handler: _Server_PushServerStatus_Handler, }, { MethodName: "PushOnlineUsers", Handler: _Server_PushOnlineUsers_Handler, }, { MethodName: "QueryServerProtocolConfig", Handler: _Server_QueryServerProtocolConfig_Handler, }, { MethodName: "SessionCheck", Handler: _Server_SessionCheck_Handler, }, { MethodName: "SessionRelease", Handler: _Server_SessionRelease_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "server/v1/server.proto", }
Server_ServiceDesc is the grpc.ServiceDesc for Server service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServerHTTPServer ¶
func RegisterServerHTTPServer(s *http.Server, srv ServerHTTPServer)
func RegisterServerServer ¶
func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)
Types ¶
type GetServerConfigReply ¶
type GetServerConfigReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
Basic *ServerBasic `protobuf:"bytes,3,opt,name=basic,proto3" json:"basic,omitempty"` // 基础配置
Protocol string `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"` // 协议类型
Config map[string]string `` // 协议配置(JSON序列化)
/* 153-byte string literal not displayed */
// contains filtered or unexported fields
}
GetServerConfigReply 获取服务器配置响应
func (*GetServerConfigReply) Descriptor
deprecated
func (*GetServerConfigReply) Descriptor() ([]byte, []int)
Deprecated: Use GetServerConfigReply.ProtoReflect.Descriptor instead.
func (*GetServerConfigReply) GetBasic ¶
func (x *GetServerConfigReply) GetBasic() *ServerBasic
func (*GetServerConfigReply) GetCode ¶
func (x *GetServerConfigReply) GetCode() int32
func (*GetServerConfigReply) GetConfig ¶
func (x *GetServerConfigReply) GetConfig() map[string]string
func (*GetServerConfigReply) GetMessage ¶
func (x *GetServerConfigReply) GetMessage() string
func (*GetServerConfigReply) GetProtocol ¶
func (x *GetServerConfigReply) GetProtocol() string
func (*GetServerConfigReply) ProtoMessage ¶
func (*GetServerConfigReply) ProtoMessage()
func (*GetServerConfigReply) ProtoReflect ¶
func (x *GetServerConfigReply) ProtoReflect() protoreflect.Message
func (*GetServerConfigReply) Reset ¶
func (x *GetServerConfigReply) Reset()
func (*GetServerConfigReply) String ¶
func (x *GetServerConfigReply) String() string
func (*GetServerConfigReply) Validate ¶
func (m *GetServerConfigReply) Validate() error
Validate checks the field values on GetServerConfigReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetServerConfigReply) ValidateAll ¶
func (m *GetServerConfigReply) ValidateAll() error
ValidateAll checks the field values on GetServerConfigReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetServerConfigReplyMultiError, or nil if none found.
type GetServerConfigReplyMultiError ¶
type GetServerConfigReplyMultiError []error
GetServerConfigReplyMultiError is an error wrapping multiple validation errors returned by GetServerConfigReply.ValidateAll() if the designated constraints aren't met.
func (GetServerConfigReplyMultiError) AllErrors ¶
func (m GetServerConfigReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetServerConfigReplyMultiError) Error ¶
func (m GetServerConfigReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetServerConfigReplyValidationError ¶
type GetServerConfigReplyValidationError struct {
// contains filtered or unexported fields
}
GetServerConfigReplyValidationError is the validation error returned by GetServerConfigReply.Validate if the designated constraints aren't met.
func (GetServerConfigReplyValidationError) Cause ¶
func (e GetServerConfigReplyValidationError) Cause() error
Cause function returns cause value.
func (GetServerConfigReplyValidationError) Error ¶
func (e GetServerConfigReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetServerConfigReplyValidationError) ErrorName ¶
func (e GetServerConfigReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetServerConfigReplyValidationError) Field ¶
func (e GetServerConfigReplyValidationError) Field() string
Field function returns field value.
func (GetServerConfigReplyValidationError) Key ¶
func (e GetServerConfigReplyValidationError) Key() bool
Key function returns key value.
func (GetServerConfigReplyValidationError) Reason ¶
func (e GetServerConfigReplyValidationError) Reason() string
Reason function returns reason value.
type GetServerConfigRequest ¶
type GetServerConfigRequest struct {
ServerId int64 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` // 服务器ID
Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` // 协议类型
SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
// contains filtered or unexported fields
}
GetServerConfigRequest 获取服务器配置请求
func (*GetServerConfigRequest) Descriptor
deprecated
func (*GetServerConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetServerConfigRequest.ProtoReflect.Descriptor instead.
func (*GetServerConfigRequest) GetProtocol ¶
func (x *GetServerConfigRequest) GetProtocol() string
func (*GetServerConfigRequest) GetSecretKey ¶
func (x *GetServerConfigRequest) GetSecretKey() string
func (*GetServerConfigRequest) GetServerId ¶
func (x *GetServerConfigRequest) GetServerId() int64
func (*GetServerConfigRequest) ProtoMessage ¶
func (*GetServerConfigRequest) ProtoMessage()
func (*GetServerConfigRequest) ProtoReflect ¶
func (x *GetServerConfigRequest) ProtoReflect() protoreflect.Message
func (*GetServerConfigRequest) Reset ¶
func (x *GetServerConfigRequest) Reset()
func (*GetServerConfigRequest) String ¶
func (x *GetServerConfigRequest) String() string
func (*GetServerConfigRequest) Validate ¶
func (m *GetServerConfigRequest) Validate() error
Validate checks the field values on GetServerConfigRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetServerConfigRequest) ValidateAll ¶
func (m *GetServerConfigRequest) ValidateAll() error
ValidateAll checks the field values on GetServerConfigRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetServerConfigRequestMultiError, or nil if none found.
type GetServerConfigRequestMultiError ¶
type GetServerConfigRequestMultiError []error
GetServerConfigRequestMultiError is an error wrapping multiple validation errors returned by GetServerConfigRequest.ValidateAll() if the designated constraints aren't met.
func (GetServerConfigRequestMultiError) AllErrors ¶
func (m GetServerConfigRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetServerConfigRequestMultiError) Error ¶
func (m GetServerConfigRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetServerConfigRequestValidationError ¶
type GetServerConfigRequestValidationError struct {
// contains filtered or unexported fields
}
GetServerConfigRequestValidationError is the validation error returned by GetServerConfigRequest.Validate if the designated constraints aren't met.
func (GetServerConfigRequestValidationError) Cause ¶
func (e GetServerConfigRequestValidationError) Cause() error
Cause function returns cause value.
func (GetServerConfigRequestValidationError) Error ¶
func (e GetServerConfigRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetServerConfigRequestValidationError) ErrorName ¶
func (e GetServerConfigRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetServerConfigRequestValidationError) Field ¶
func (e GetServerConfigRequestValidationError) Field() string
Field function returns field value.
func (GetServerConfigRequestValidationError) Key ¶
func (e GetServerConfigRequestValidationError) Key() bool
Key function returns key value.
func (GetServerConfigRequestValidationError) Reason ¶
func (e GetServerConfigRequestValidationError) Reason() string
Reason function returns reason value.
type GetServerUserListReply ¶
type GetServerUserListReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
Users []*ServerUser `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` // 用户列表
// contains filtered or unexported fields
}
GetServerUserListReply 获取用户列表响应
func (*GetServerUserListReply) Descriptor
deprecated
func (*GetServerUserListReply) Descriptor() ([]byte, []int)
Deprecated: Use GetServerUserListReply.ProtoReflect.Descriptor instead.
func (*GetServerUserListReply) GetCode ¶
func (x *GetServerUserListReply) GetCode() int32
func (*GetServerUserListReply) GetMessage ¶
func (x *GetServerUserListReply) GetMessage() string
func (*GetServerUserListReply) GetUsers ¶
func (x *GetServerUserListReply) GetUsers() []*ServerUser
func (*GetServerUserListReply) ProtoMessage ¶
func (*GetServerUserListReply) ProtoMessage()
func (*GetServerUserListReply) ProtoReflect ¶
func (x *GetServerUserListReply) ProtoReflect() protoreflect.Message
func (*GetServerUserListReply) Reset ¶
func (x *GetServerUserListReply) Reset()
func (*GetServerUserListReply) String ¶
func (x *GetServerUserListReply) String() string
func (*GetServerUserListReply) Validate ¶
func (m *GetServerUserListReply) Validate() error
Validate checks the field values on GetServerUserListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetServerUserListReply) ValidateAll ¶
func (m *GetServerUserListReply) ValidateAll() error
ValidateAll checks the field values on GetServerUserListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetServerUserListReplyMultiError, or nil if none found.
type GetServerUserListReplyMultiError ¶
type GetServerUserListReplyMultiError []error
GetServerUserListReplyMultiError is an error wrapping multiple validation errors returned by GetServerUserListReply.ValidateAll() if the designated constraints aren't met.
func (GetServerUserListReplyMultiError) AllErrors ¶
func (m GetServerUserListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetServerUserListReplyMultiError) Error ¶
func (m GetServerUserListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetServerUserListReplyValidationError ¶
type GetServerUserListReplyValidationError struct {
// contains filtered or unexported fields
}
GetServerUserListReplyValidationError is the validation error returned by GetServerUserListReply.Validate if the designated constraints aren't met.
func (GetServerUserListReplyValidationError) Cause ¶
func (e GetServerUserListReplyValidationError) Cause() error
Cause function returns cause value.
func (GetServerUserListReplyValidationError) Error ¶
func (e GetServerUserListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetServerUserListReplyValidationError) ErrorName ¶
func (e GetServerUserListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetServerUserListReplyValidationError) Field ¶
func (e GetServerUserListReplyValidationError) Field() string
Field function returns field value.
func (GetServerUserListReplyValidationError) Key ¶
func (e GetServerUserListReplyValidationError) Key() bool
Key function returns key value.
func (GetServerUserListReplyValidationError) Reason ¶
func (e GetServerUserListReplyValidationError) Reason() string
Reason function returns reason value.
type GetServerUserListRequest ¶
type GetServerUserListRequest struct {
ServerId int64 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` // 服务器ID
Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` // 协议类型
SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
// contains filtered or unexported fields
}
GetServerUserListRequest 获取用户列表请求
func (*GetServerUserListRequest) Descriptor
deprecated
func (*GetServerUserListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetServerUserListRequest.ProtoReflect.Descriptor instead.
func (*GetServerUserListRequest) GetProtocol ¶
func (x *GetServerUserListRequest) GetProtocol() string
func (*GetServerUserListRequest) GetSecretKey ¶
func (x *GetServerUserListRequest) GetSecretKey() string
func (*GetServerUserListRequest) GetServerId ¶
func (x *GetServerUserListRequest) GetServerId() int64
func (*GetServerUserListRequest) ProtoMessage ¶
func (*GetServerUserListRequest) ProtoMessage()
func (*GetServerUserListRequest) ProtoReflect ¶
func (x *GetServerUserListRequest) ProtoReflect() protoreflect.Message
func (*GetServerUserListRequest) Reset ¶
func (x *GetServerUserListRequest) Reset()
func (*GetServerUserListRequest) String ¶
func (x *GetServerUserListRequest) String() string
func (*GetServerUserListRequest) Validate ¶
func (m *GetServerUserListRequest) Validate() error
Validate checks the field values on GetServerUserListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetServerUserListRequest) ValidateAll ¶
func (m *GetServerUserListRequest) ValidateAll() error
ValidateAll checks the field values on GetServerUserListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetServerUserListRequestMultiError, or nil if none found.
type GetServerUserListRequestMultiError ¶
type GetServerUserListRequestMultiError []error
GetServerUserListRequestMultiError is an error wrapping multiple validation errors returned by GetServerUserListRequest.ValidateAll() if the designated constraints aren't met.
func (GetServerUserListRequestMultiError) AllErrors ¶
func (m GetServerUserListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetServerUserListRequestMultiError) Error ¶
func (m GetServerUserListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetServerUserListRequestValidationError ¶
type GetServerUserListRequestValidationError struct {
// contains filtered or unexported fields
}
GetServerUserListRequestValidationError is the validation error returned by GetServerUserListRequest.Validate if the designated constraints aren't met.
func (GetServerUserListRequestValidationError) Cause ¶
func (e GetServerUserListRequestValidationError) Cause() error
Cause function returns cause value.
func (GetServerUserListRequestValidationError) Error ¶
func (e GetServerUserListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetServerUserListRequestValidationError) ErrorName ¶
func (e GetServerUserListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetServerUserListRequestValidationError) Field ¶
func (e GetServerUserListRequestValidationError) Field() string
Field function returns field value.
func (GetServerUserListRequestValidationError) Key ¶
func (e GetServerUserListRequestValidationError) Key() bool
Key function returns key value.
func (GetServerUserListRequestValidationError) Reason ¶
func (e GetServerUserListRequestValidationError) Reason() string
Reason function returns reason value.
type NodeDNS ¶
type NodeDNS struct {
Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` // DNS服务器
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // 域名
Port int64 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` // 端口
// contains filtered or unexported fields
}
NodeDNS 节点DNS配置
func (*NodeDNS) Descriptor
deprecated
func (*NodeDNS) ProtoMessage ¶
func (*NodeDNS) ProtoMessage()
func (*NodeDNS) ProtoReflect ¶
func (x *NodeDNS) ProtoReflect() protoreflect.Message
func (*NodeDNS) Validate ¶
Validate checks the field values on NodeDNS with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*NodeDNS) ValidateAll ¶
ValidateAll checks the field values on NodeDNS with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NodeDNSMultiError, or nil if none found.
type NodeDNSMultiError ¶
type NodeDNSMultiError []error
NodeDNSMultiError is an error wrapping multiple validation errors returned by NodeDNS.ValidateAll() if the designated constraints aren't met.
func (NodeDNSMultiError) AllErrors ¶
func (m NodeDNSMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NodeDNSMultiError) Error ¶
func (m NodeDNSMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NodeDNSValidationError ¶
type NodeDNSValidationError struct {
// contains filtered or unexported fields
}
NodeDNSValidationError is the validation error returned by NodeDNS.Validate if the designated constraints aren't met.
func (NodeDNSValidationError) Cause ¶
func (e NodeDNSValidationError) Cause() error
Cause function returns cause value.
func (NodeDNSValidationError) Error ¶
func (e NodeDNSValidationError) Error() string
Error satisfies the builtin error interface
func (NodeDNSValidationError) ErrorName ¶
func (e NodeDNSValidationError) ErrorName() string
ErrorName returns error name.
func (NodeDNSValidationError) Field ¶
func (e NodeDNSValidationError) Field() string
Field function returns field value.
func (NodeDNSValidationError) Key ¶
func (e NodeDNSValidationError) Key() bool
Key function returns key value.
func (NodeDNSValidationError) Reason ¶
func (e NodeDNSValidationError) Reason() string
Reason function returns reason value.
type NodeOutbound ¶
type NodeOutbound struct {
Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` // 标签
Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` // 协议
Settings map[string]string `` // 设置
/* 157-byte string literal not displayed */
// contains filtered or unexported fields
}
NodeOutbound 节点出站配置
func (*NodeOutbound) Descriptor
deprecated
func (*NodeOutbound) Descriptor() ([]byte, []int)
Deprecated: Use NodeOutbound.ProtoReflect.Descriptor instead.
func (*NodeOutbound) GetProtocol ¶
func (x *NodeOutbound) GetProtocol() string
func (*NodeOutbound) GetSettings ¶
func (x *NodeOutbound) GetSettings() map[string]string
func (*NodeOutbound) GetTag ¶
func (x *NodeOutbound) GetTag() string
func (*NodeOutbound) ProtoMessage ¶
func (*NodeOutbound) ProtoMessage()
func (*NodeOutbound) ProtoReflect ¶
func (x *NodeOutbound) ProtoReflect() protoreflect.Message
func (*NodeOutbound) Reset ¶
func (x *NodeOutbound) Reset()
func (*NodeOutbound) String ¶
func (x *NodeOutbound) String() string
func (*NodeOutbound) Validate ¶
func (m *NodeOutbound) Validate() error
Validate checks the field values on NodeOutbound with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*NodeOutbound) ValidateAll ¶
func (m *NodeOutbound) ValidateAll() error
ValidateAll checks the field values on NodeOutbound with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NodeOutboundMultiError, or nil if none found.
type NodeOutboundMultiError ¶
type NodeOutboundMultiError []error
NodeOutboundMultiError is an error wrapping multiple validation errors returned by NodeOutbound.ValidateAll() if the designated constraints aren't met.
func (NodeOutboundMultiError) AllErrors ¶
func (m NodeOutboundMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NodeOutboundMultiError) Error ¶
func (m NodeOutboundMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NodeOutboundValidationError ¶
type NodeOutboundValidationError struct {
// contains filtered or unexported fields
}
NodeOutboundValidationError is the validation error returned by NodeOutbound.Validate if the designated constraints aren't met.
func (NodeOutboundValidationError) Cause ¶
func (e NodeOutboundValidationError) Cause() error
Cause function returns cause value.
func (NodeOutboundValidationError) Error ¶
func (e NodeOutboundValidationError) Error() string
Error satisfies the builtin error interface
func (NodeOutboundValidationError) ErrorName ¶
func (e NodeOutboundValidationError) ErrorName() string
ErrorName returns error name.
func (NodeOutboundValidationError) Field ¶
func (e NodeOutboundValidationError) Field() string
Field function returns field value.
func (NodeOutboundValidationError) Key ¶
func (e NodeOutboundValidationError) Key() bool
Key function returns key value.
func (NodeOutboundValidationError) Reason ¶
func (e NodeOutboundValidationError) Reason() string
Reason function returns reason value.
type OnlineUser ¶
type OnlineUser struct {
Sid int64 `protobuf:"varint,1,opt,name=sid,proto3" json:"sid,omitempty"` // 订阅ID
Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` // IP地址
ConnectedAt int64 `protobuf:"varint,3,opt,name=connected_at,json=connectedAt,proto3" json:"connected_at,omitempty"` // 连接时间戳
// contains filtered or unexported fields
}
OnlineUser 在线用户信息
func (*OnlineUser) Descriptor
deprecated
func (*OnlineUser) Descriptor() ([]byte, []int)
Deprecated: Use OnlineUser.ProtoReflect.Descriptor instead.
func (*OnlineUser) GetConnectedAt ¶
func (x *OnlineUser) GetConnectedAt() int64
func (*OnlineUser) GetIp ¶
func (x *OnlineUser) GetIp() string
func (*OnlineUser) GetSid ¶
func (x *OnlineUser) GetSid() int64
func (*OnlineUser) ProtoMessage ¶
func (*OnlineUser) ProtoMessage()
func (*OnlineUser) ProtoReflect ¶
func (x *OnlineUser) ProtoReflect() protoreflect.Message
func (*OnlineUser) Reset ¶
func (x *OnlineUser) Reset()
func (*OnlineUser) String ¶
func (x *OnlineUser) String() string
func (*OnlineUser) Validate ¶
func (m *OnlineUser) Validate() error
Validate checks the field values on OnlineUser with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*OnlineUser) ValidateAll ¶
func (m *OnlineUser) ValidateAll() error
ValidateAll checks the field values on OnlineUser with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OnlineUserMultiError, or nil if none found.
type OnlineUserMultiError ¶
type OnlineUserMultiError []error
OnlineUserMultiError is an error wrapping multiple validation errors returned by OnlineUser.ValidateAll() if the designated constraints aren't met.
func (OnlineUserMultiError) AllErrors ¶
func (m OnlineUserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OnlineUserMultiError) Error ¶
func (m OnlineUserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OnlineUserValidationError ¶
type OnlineUserValidationError struct {
// contains filtered or unexported fields
}
OnlineUserValidationError is the validation error returned by OnlineUser.Validate if the designated constraints aren't met.
func (OnlineUserValidationError) Cause ¶
func (e OnlineUserValidationError) Cause() error
Cause function returns cause value.
func (OnlineUserValidationError) Error ¶
func (e OnlineUserValidationError) Error() string
Error satisfies the builtin error interface
func (OnlineUserValidationError) ErrorName ¶
func (e OnlineUserValidationError) ErrorName() string
ErrorName returns error name.
func (OnlineUserValidationError) Field ¶
func (e OnlineUserValidationError) Field() string
Field function returns field value.
func (OnlineUserValidationError) Key ¶
func (e OnlineUserValidationError) Key() bool
Key function returns key value.
func (OnlineUserValidationError) Reason ¶
func (e OnlineUserValidationError) Reason() string
Reason function returns reason value.
type Protocol ¶
type Protocol struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"`
Security string `protobuf:"bytes,4,opt,name=security,proto3" json:"security,omitempty"`
Sni string `protobuf:"bytes,5,opt,name=sni,proto3" json:"sni,omitempty"`
AllowInsecure bool `protobuf:"varint,6,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"`
Fingerprint string `protobuf:"bytes,7,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
RealityServerAddr string `protobuf:"bytes,8,opt,name=reality_server_addr,json=realityServerAddr,proto3" json:"reality_server_addr,omitempty"`
RealityServerPort int32 `protobuf:"varint,9,opt,name=reality_server_port,json=realityServerPort,proto3" json:"reality_server_port,omitempty"`
RealityPrivateKey string `protobuf:"bytes,10,opt,name=reality_private_key,json=realityPrivateKey,proto3" json:"reality_private_key,omitempty"`
RealityPublicKey string `protobuf:"bytes,11,opt,name=reality_public_key,json=realityPublicKey,proto3" json:"reality_public_key,omitempty"`
RealityShortId string `protobuf:"bytes,12,opt,name=reality_short_id,json=realityShortId,proto3" json:"reality_short_id,omitempty"`
Transport string `protobuf:"bytes,13,opt,name=transport,proto3" json:"transport,omitempty"`
Host string `protobuf:"bytes,14,opt,name=host,proto3" json:"host,omitempty"`
Path string `protobuf:"bytes,15,opt,name=path,proto3" json:"path,omitempty"`
ServiceName string `protobuf:"bytes,16,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
Cipher string `protobuf:"bytes,17,opt,name=cipher,proto3" json:"cipher,omitempty"`
ServerKey string `protobuf:"bytes,18,opt,name=server_key,json=serverKey,proto3" json:"server_key,omitempty"`
Flow string `protobuf:"bytes,19,opt,name=flow,proto3" json:"flow,omitempty"`
HopPorts string `protobuf:"bytes,20,opt,name=hop_ports,json=hopPorts,proto3" json:"hop_ports,omitempty"`
HopInterval int32 `protobuf:"varint,21,opt,name=hop_interval,json=hopInterval,proto3" json:"hop_interval,omitempty"`
ObfsPassword string `protobuf:"bytes,22,opt,name=obfs_password,json=obfsPassword,proto3" json:"obfs_password,omitempty"`
DisableSni bool `protobuf:"varint,23,opt,name=disable_sni,json=disableSni,proto3" json:"disable_sni,omitempty"`
ReduceRtt bool `protobuf:"varint,24,opt,name=reduce_rtt,json=reduceRtt,proto3" json:"reduce_rtt,omitempty"`
UdpRelayMode string `protobuf:"bytes,25,opt,name=udp_relay_mode,json=udpRelayMode,proto3" json:"udp_relay_mode,omitempty"`
CongestionController string `protobuf:"bytes,26,opt,name=congestion_controller,json=congestionController,proto3" json:"congestion_controller,omitempty"`
Multiplex string `protobuf:"bytes,27,opt,name=multiplex,proto3" json:"multiplex,omitempty"`
PaddingScheme string `protobuf:"bytes,28,opt,name=padding_scheme,json=paddingScheme,proto3" json:"padding_scheme,omitempty"`
UpMbps int32 `protobuf:"varint,29,opt,name=up_mbps,json=upMbps,proto3" json:"up_mbps,omitempty"`
DownMbps int32 `protobuf:"varint,30,opt,name=down_mbps,json=downMbps,proto3" json:"down_mbps,omitempty"`
Obfs string `protobuf:"bytes,31,opt,name=obfs,proto3" json:"obfs,omitempty"`
ObfsHost string `protobuf:"bytes,32,opt,name=obfs_host,json=obfsHost,proto3" json:"obfs_host,omitempty"`
ObfsPath string `protobuf:"bytes,33,opt,name=obfs_path,json=obfsPath,proto3" json:"obfs_path,omitempty"`
XhttpMode string `protobuf:"bytes,34,opt,name=xhttp_mode,json=xhttpMode,proto3" json:"xhttp_mode,omitempty"`
XhttpExtra string `protobuf:"bytes,35,opt,name=xhttp_extra,json=xhttpExtra,proto3" json:"xhttp_extra,omitempty"`
Encryption string `protobuf:"bytes,36,opt,name=encryption,proto3" json:"encryption,omitempty"`
EncryptionMode string `protobuf:"bytes,37,opt,name=encryption_mode,json=encryptionMode,proto3" json:"encryption_mode,omitempty"`
EncryptionRtt string `protobuf:"bytes,38,opt,name=encryption_rtt,json=encryptionRtt,proto3" json:"encryption_rtt,omitempty"`
EncryptionTicket string `protobuf:"bytes,39,opt,name=encryption_ticket,json=encryptionTicket,proto3" json:"encryption_ticket,omitempty"`
EncryptionServerPadding string `` /* 133-byte string literal not displayed */
EncryptionPrivateKey string `protobuf:"bytes,41,opt,name=encryption_private_key,json=encryptionPrivateKey,proto3" json:"encryption_private_key,omitempty"`
EncryptionClientPadding string `` /* 133-byte string literal not displayed */
EncryptionPassword string `protobuf:"bytes,43,opt,name=encryption_password,json=encryptionPassword,proto3" json:"encryption_password,omitempty"`
Ratio float64 `protobuf:"fixed64,44,opt,name=ratio,proto3" json:"ratio,omitempty"`
CertMode string `protobuf:"bytes,45,opt,name=cert_mode,json=certMode,proto3" json:"cert_mode,omitempty"`
CertDnsProvider string `protobuf:"bytes,46,opt,name=cert_dns_provider,json=certDnsProvider,proto3" json:"cert_dns_provider,omitempty"`
CertDnsEnv string `protobuf:"bytes,47,opt,name=cert_dns_env,json=certDnsEnv,proto3" json:"cert_dns_env,omitempty"`
SimnetPsk string `protobuf:"bytes,48,opt,name=simnet_psk,json=simnetPsk,proto3" json:"simnet_psk,omitempty"`
SimnetKeyId int32 `protobuf:"varint,49,opt,name=simnet_key_id,json=simnetKeyId,proto3" json:"simnet_key_id,omitempty"`
SimnetTicketId string `protobuf:"bytes,50,opt,name=simnet_ticket_id,json=simnetTicketId,proto3" json:"simnet_ticket_id,omitempty"`
SimnetPath string `protobuf:"bytes,51,opt,name=simnet_path,json=simnetPath,proto3" json:"simnet_path,omitempty"`
SimnetCarrier string `protobuf:"bytes,52,opt,name=simnet_carrier,json=simnetCarrier,proto3" json:"simnet_carrier,omitempty"`
SimnetAfEnabled bool `protobuf:"varint,53,opt,name=simnet_af_enabled,json=simnetAfEnabled,proto3" json:"simnet_af_enabled,omitempty"`
SimnetAfPathMode string `protobuf:"bytes,54,opt,name=simnet_af_path_mode,json=simnetAfPathMode,proto3" json:"simnet_af_path_mode,omitempty"`
SimnetAfPathPrefix string `protobuf:"bytes,55,opt,name=simnet_af_path_prefix,json=simnetAfPathPrefix,proto3" json:"simnet_af_path_prefix,omitempty"`
SimnetAfPathSuffix string `protobuf:"bytes,56,opt,name=simnet_af_path_suffix,json=simnetAfPathSuffix,proto3" json:"simnet_af_path_suffix,omitempty"`
SimnetAfMagicMode string `protobuf:"bytes,57,opt,name=simnet_af_magic_mode,json=simnetAfMagicMode,proto3" json:"simnet_af_magic_mode,omitempty"`
SimnetAfResponseJitterMs int32 `` /* 141-byte string literal not displayed */
SimnetAfHandshakePolymorphism bool `` /* 154-byte string literal not displayed */
SimnetAfSettingsJitter bool `` /* 133-byte string literal not displayed */
SimnetAfFakeHeaderInjection bool `` /* 150-byte string literal not displayed */
SimnetReverseEnabled bool `protobuf:"varint,62,opt,name=simnet_reverse_enabled,json=simnetReverseEnabled,proto3" json:"simnet_reverse_enabled,omitempty"`
SimnetReverseListenAddr string `` /* 135-byte string literal not displayed */
SimnetReverseListenPort int32 `` /* 136-byte string literal not displayed */
SimnetReverseTargetHost string `` /* 135-byte string literal not displayed */
SimnetReverseTargetPort int32 `` /* 136-byte string literal not displayed */
SimnetFallbackEnabled bool `` /* 128-byte string literal not displayed */
SimnetFallbackTargetScheme string `` /* 144-byte string literal not displayed */
SimnetFallbackTargetHost string `` /* 138-byte string literal not displayed */
SimnetFallbackTargetPort int32 `` /* 139-byte string literal not displayed */
SimnetFallbackHostHeader string `` /* 138-byte string literal not displayed */
SimnetFallbackTlsSni string `` /* 126-byte string literal not displayed */
// OmniFlow 基础配置
OmniflowCarrier string `protobuf:"bytes,73,opt,name=omniflow_carrier,json=omniflowCarrier,proto3" json:"omniflow_carrier,omitempty"` // h2 或 h3
OmniflowPath string `protobuf:"bytes,74,opt,name=omniflow_path,json=omniflowPath,proto3" json:"omniflow_path,omitempty"` // HTTP 路径
OmniflowContentType string `protobuf:"bytes,75,opt,name=omniflow_content_type,json=omniflowContentType,proto3" json:"omniflow_content_type,omitempty"` // Content-Type
OmniflowProfilePath string `protobuf:"bytes,76,opt,name=omniflow_profile_path,json=omniflowProfilePath,proto3" json:"omniflow_profile_path,omitempty"` // Profile 文件路径
OmniflowProfileJson string `protobuf:"bytes,77,opt,name=omniflow_profile_json,json=omniflowProfileJson,proto3" json:"omniflow_profile_json,omitempty"` // Profile JSON
OmniflowServerHost string `protobuf:"bytes,78,opt,name=omniflow_server_host,json=omniflowServerHost,proto3" json:"omniflow_server_host,omitempty"` // 服务器主机
OmniflowServerPort int32 `protobuf:"varint,79,opt,name=omniflow_server_port,json=omniflowServerPort,proto3" json:"omniflow_server_port,omitempty"` // 服务器端口
OmniflowCaCertPath string `protobuf:"bytes,80,opt,name=omniflow_ca_cert_path,json=omniflowCaCertPath,proto3" json:"omniflow_ca_cert_path,omitempty"` // CA 证书路径
OmniflowTargetMeta string `protobuf:"bytes,81,opt,name=omniflow_target_meta,json=omniflowTargetMeta,proto3" json:"omniflow_target_meta,omitempty"` // 加密目标元数据
OmniflowSpkiPin string `protobuf:"bytes,82,opt,name=omniflow_spki_pin,json=omniflowSpkiPin,proto3" json:"omniflow_spki_pin,omitempty"` // SPKI Pin
// OmniFlow H3 Fallback
OmniflowH3FallbackEnabled bool `` /* 142-byte string literal not displayed */
OmniflowH3FallbackPolicy string `` // always/timeout/never
/* 138-byte string literal not displayed */
OmniflowH3FallbackTimeoutMs int32 `` /* 150-byte string literal not displayed */
OmniflowH3FallbackRetryBudget int32 `` /* 156-byte string literal not displayed */
OmniflowH3FallbackSmokeEnabled bool `` /* 159-byte string literal not displayed */
OmniflowH3FallbackSmokeIntervalSec int32 `` /* 173-byte string literal not displayed */
OmniflowH3FallbackSmokeTimeoutMs int32 `` /* 167-byte string literal not displayed */
// OmniFlow 连接管理
OmniflowMaxAgeSec int32 `protobuf:"varint,90,opt,name=omniflow_max_age_sec,json=omniflowMaxAgeSec,proto3" json:"omniflow_max_age_sec,omitempty"`
OmniflowIdleTimeoutSec int32 `` /* 133-byte string literal not displayed */
OmniflowMaxConnections int32 `` /* 131-byte string literal not displayed */
// OmniFlow 抗指纹
OmniflowAdaptiveTlsEnabled bool `` /* 145-byte string literal not displayed */
OmniflowTlsFingerprint string `` // chrome/firefox/safari
/* 130-byte string literal not displayed */
OmniflowSniMode string `protobuf:"bytes,95,opt,name=omniflow_sni_mode,json=omniflowSniMode,proto3" json:"omniflow_sni_mode,omitempty"` // direct/transparent_forward
OmniflowPaddingMode string `protobuf:"bytes,96,opt,name=omniflow_padding_mode,json=omniflowPaddingMode,proto3" json:"omniflow_padding_mode,omitempty"` // random/mtu_align/fixed_overhead
OmniflowTrafficShapingEnabled bool `` /* 154-byte string literal not displayed */
OmniflowAfEnabled bool `protobuf:"varint,101,opt,name=omniflow_af_enabled,json=omniflowAfEnabled,proto3" json:"omniflow_af_enabled,omitempty"` // 启用随机 AF path
OmniflowAfPathMode string `protobuf:"bytes,102,opt,name=omniflow_af_path_mode,json=omniflowAfPathMode,proto3" json:"omniflow_af_path_mode,omitempty"` // api/random
OmniflowAfPathPrefix string `` // 随机 path 前缀
/* 127-byte string literal not displayed */
OmniflowAfPathSuffix string `` // 随机 path 后缀
/* 127-byte string literal not displayed */
OmniflowAfPathRotationSecs int32 `` // path 轮转秒数
/* 148-byte string literal not displayed */
OmniflowAfPathSkewSlots int32 `` // 允许偏移 slot 数
/* 139-byte string literal not displayed */
// OmniFlow 同端口浏览器 Fallback 反向代理
OmniflowFallbackEnabled bool `` /* 135-byte string literal not displayed */
OmniflowFallbackTargetScheme string `` // https/http
/* 151-byte string literal not displayed */
OmniflowFallbackTargetHost string `` // 目标网站 host
/* 145-byte string literal not displayed */
OmniflowFallbackTargetPort int32 `` // 目标网站端口
/* 146-byte string literal not displayed */
OmniflowFallbackHostHeader string `` // 上游 Host header
/* 145-byte string literal not displayed */
OmniflowFallbackTlsSni string `` // 上游 TLS SNI
/* 133-byte string literal not displayed */
// OmniFlow 回退 Carrier
OmniflowFallbackCarrierEnabled bool `` /* 157-byte string literal not displayed */
OmniflowFallbackConnectTunnel bool `` /* 154-byte string literal not displayed */
OmniflowFallbackWssEnabled bool `` /* 146-byte string literal not displayed */
// contains filtered or unexported fields
}
Protocol 协议配置
func (*Protocol) Descriptor
deprecated
func (*Protocol) GetAllowInsecure ¶
func (*Protocol) GetCertDnsEnv ¶
func (*Protocol) GetCertDnsProvider ¶
func (*Protocol) GetCertMode ¶
func (*Protocol) GetCongestionController ¶
func (*Protocol) GetDisableSni ¶
func (*Protocol) GetDownMbps ¶
func (*Protocol) GetEncryption ¶
func (*Protocol) GetEncryptionClientPadding ¶
func (*Protocol) GetEncryptionMode ¶
func (*Protocol) GetEncryptionPassword ¶
func (*Protocol) GetEncryptionPrivateKey ¶
func (*Protocol) GetEncryptionRtt ¶
func (*Protocol) GetEncryptionServerPadding ¶
func (*Protocol) GetEncryptionTicket ¶
func (*Protocol) GetFingerprint ¶
func (*Protocol) GetHopInterval ¶
func (*Protocol) GetHopPorts ¶
func (*Protocol) GetMultiplex ¶
func (*Protocol) GetObfsHost ¶
func (*Protocol) GetObfsPassword ¶
func (*Protocol) GetObfsPath ¶
func (*Protocol) GetOmniflowAdaptiveTlsEnabled ¶
func (*Protocol) GetOmniflowAfEnabled ¶
func (*Protocol) GetOmniflowAfPathMode ¶
func (*Protocol) GetOmniflowAfPathPrefix ¶
func (*Protocol) GetOmniflowAfPathRotationSecs ¶
func (*Protocol) GetOmniflowAfPathSkewSlots ¶
func (*Protocol) GetOmniflowAfPathSuffix ¶
func (*Protocol) GetOmniflowCaCertPath ¶
func (*Protocol) GetOmniflowCarrier ¶
func (*Protocol) GetOmniflowContentType ¶
func (*Protocol) GetOmniflowFallbackCarrierEnabled ¶
func (*Protocol) GetOmniflowFallbackConnectTunnel ¶
func (*Protocol) GetOmniflowFallbackEnabled ¶
func (*Protocol) GetOmniflowFallbackHostHeader ¶
func (*Protocol) GetOmniflowFallbackTargetHost ¶
func (*Protocol) GetOmniflowFallbackTargetPort ¶
func (*Protocol) GetOmniflowFallbackTargetScheme ¶
func (*Protocol) GetOmniflowFallbackTlsSni ¶
func (*Protocol) GetOmniflowFallbackWssEnabled ¶
func (*Protocol) GetOmniflowH3FallbackEnabled ¶
func (*Protocol) GetOmniflowH3FallbackPolicy ¶
func (*Protocol) GetOmniflowH3FallbackRetryBudget ¶
func (*Protocol) GetOmniflowH3FallbackSmokeEnabled ¶
func (*Protocol) GetOmniflowH3FallbackSmokeIntervalSec ¶
func (*Protocol) GetOmniflowH3FallbackSmokeTimeoutMs ¶
func (*Protocol) GetOmniflowH3FallbackTimeoutMs ¶
func (*Protocol) GetOmniflowIdleTimeoutSec ¶
func (*Protocol) GetOmniflowMaxAgeSec ¶
func (*Protocol) GetOmniflowMaxConnections ¶
func (*Protocol) GetOmniflowPaddingMode ¶
func (*Protocol) GetOmniflowPath ¶
func (*Protocol) GetOmniflowProfileJson ¶
func (*Protocol) GetOmniflowProfilePath ¶
func (*Protocol) GetOmniflowServerHost ¶
func (*Protocol) GetOmniflowServerPort ¶
func (*Protocol) GetOmniflowSniMode ¶
func (*Protocol) GetOmniflowSpkiPin ¶
func (*Protocol) GetOmniflowTargetMeta ¶
func (*Protocol) GetOmniflowTlsFingerprint ¶
func (*Protocol) GetOmniflowTrafficShapingEnabled ¶
func (*Protocol) GetPaddingScheme ¶
func (*Protocol) GetRealityPrivateKey ¶
func (*Protocol) GetRealityPublicKey ¶
func (*Protocol) GetRealityServerAddr ¶
func (*Protocol) GetRealityServerPort ¶
func (*Protocol) GetRealityShortId ¶
func (*Protocol) GetReduceRtt ¶
func (*Protocol) GetSecurity ¶
func (*Protocol) GetServerKey ¶
func (*Protocol) GetServiceName ¶
func (*Protocol) GetSimnetAfEnabled ¶
func (*Protocol) GetSimnetAfFakeHeaderInjection ¶
func (*Protocol) GetSimnetAfHandshakePolymorphism ¶
func (*Protocol) GetSimnetAfMagicMode ¶
func (*Protocol) GetSimnetAfPathMode ¶
func (*Protocol) GetSimnetAfPathPrefix ¶
func (*Protocol) GetSimnetAfPathSuffix ¶
func (*Protocol) GetSimnetAfResponseJitterMs ¶
func (*Protocol) GetSimnetAfSettingsJitter ¶
func (*Protocol) GetSimnetCarrier ¶
func (*Protocol) GetSimnetFallbackEnabled ¶
func (*Protocol) GetSimnetFallbackHostHeader ¶
func (*Protocol) GetSimnetFallbackTargetHost ¶
func (*Protocol) GetSimnetFallbackTargetPort ¶
func (*Protocol) GetSimnetFallbackTargetScheme ¶
func (*Protocol) GetSimnetFallbackTlsSni ¶
func (*Protocol) GetSimnetKeyId ¶
func (*Protocol) GetSimnetPath ¶
func (*Protocol) GetSimnetPsk ¶
func (*Protocol) GetSimnetReverseEnabled ¶
func (*Protocol) GetSimnetReverseListenAddr ¶
func (*Protocol) GetSimnetReverseListenPort ¶
func (*Protocol) GetSimnetReverseTargetHost ¶
func (*Protocol) GetSimnetReverseTargetPort ¶
func (*Protocol) GetSimnetTicketId ¶
func (*Protocol) GetTransport ¶
func (*Protocol) GetUdpRelayMode ¶
func (*Protocol) GetXhttpExtra ¶
func (*Protocol) GetXhttpMode ¶
func (*Protocol) ProtoMessage ¶
func (*Protocol) ProtoMessage()
func (*Protocol) ProtoReflect ¶
func (x *Protocol) ProtoReflect() protoreflect.Message
func (*Protocol) Validate ¶
Validate checks the field values on Protocol with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Protocol) ValidateAll ¶
ValidateAll checks the field values on Protocol with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProtocolMultiError, or nil if none found.
type ProtocolMultiError ¶
type ProtocolMultiError []error
ProtocolMultiError is an error wrapping multiple validation errors returned by Protocol.ValidateAll() if the designated constraints aren't met.
func (ProtocolMultiError) AllErrors ¶
func (m ProtocolMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProtocolMultiError) Error ¶
func (m ProtocolMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ProtocolValidationError ¶
type ProtocolValidationError struct {
// contains filtered or unexported fields
}
ProtocolValidationError is the validation error returned by Protocol.Validate if the designated constraints aren't met.
func (ProtocolValidationError) Cause ¶
func (e ProtocolValidationError) Cause() error
Cause function returns cause value.
func (ProtocolValidationError) Error ¶
func (e ProtocolValidationError) Error() string
Error satisfies the builtin error interface
func (ProtocolValidationError) ErrorName ¶
func (e ProtocolValidationError) ErrorName() string
ErrorName returns error name.
func (ProtocolValidationError) Field ¶
func (e ProtocolValidationError) Field() string
Field function returns field value.
func (ProtocolValidationError) Key ¶
func (e ProtocolValidationError) Key() bool
Key function returns key value.
func (ProtocolValidationError) Reason ¶
func (e ProtocolValidationError) Reason() string
Reason function returns reason value.
type PushOnlineUsersReply ¶
type PushOnlineUsersReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
// contains filtered or unexported fields
}
PushOnlineUsersReply 推送在线用户响应
func (*PushOnlineUsersReply) Descriptor
deprecated
func (*PushOnlineUsersReply) Descriptor() ([]byte, []int)
Deprecated: Use PushOnlineUsersReply.ProtoReflect.Descriptor instead.
func (*PushOnlineUsersReply) GetCode ¶
func (x *PushOnlineUsersReply) GetCode() int32
func (*PushOnlineUsersReply) GetMessage ¶
func (x *PushOnlineUsersReply) GetMessage() string
func (*PushOnlineUsersReply) ProtoMessage ¶
func (*PushOnlineUsersReply) ProtoMessage()
func (*PushOnlineUsersReply) ProtoReflect ¶
func (x *PushOnlineUsersReply) ProtoReflect() protoreflect.Message
func (*PushOnlineUsersReply) Reset ¶
func (x *PushOnlineUsersReply) Reset()
func (*PushOnlineUsersReply) String ¶
func (x *PushOnlineUsersReply) String() string
func (*PushOnlineUsersReply) Validate ¶
func (m *PushOnlineUsersReply) Validate() error
Validate checks the field values on PushOnlineUsersReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PushOnlineUsersReply) ValidateAll ¶
func (m *PushOnlineUsersReply) ValidateAll() error
ValidateAll checks the field values on PushOnlineUsersReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PushOnlineUsersReplyMultiError, or nil if none found.
type PushOnlineUsersReplyMultiError ¶
type PushOnlineUsersReplyMultiError []error
PushOnlineUsersReplyMultiError is an error wrapping multiple validation errors returned by PushOnlineUsersReply.ValidateAll() if the designated constraints aren't met.
func (PushOnlineUsersReplyMultiError) AllErrors ¶
func (m PushOnlineUsersReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PushOnlineUsersReplyMultiError) Error ¶
func (m PushOnlineUsersReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PushOnlineUsersReplyValidationError ¶
type PushOnlineUsersReplyValidationError struct {
// contains filtered or unexported fields
}
PushOnlineUsersReplyValidationError is the validation error returned by PushOnlineUsersReply.Validate if the designated constraints aren't met.
func (PushOnlineUsersReplyValidationError) Cause ¶
func (e PushOnlineUsersReplyValidationError) Cause() error
Cause function returns cause value.
func (PushOnlineUsersReplyValidationError) Error ¶
func (e PushOnlineUsersReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PushOnlineUsersReplyValidationError) ErrorName ¶
func (e PushOnlineUsersReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PushOnlineUsersReplyValidationError) Field ¶
func (e PushOnlineUsersReplyValidationError) Field() string
Field function returns field value.
func (PushOnlineUsersReplyValidationError) Key ¶
func (e PushOnlineUsersReplyValidationError) Key() bool
Key function returns key value.
func (PushOnlineUsersReplyValidationError) Reason ¶
func (e PushOnlineUsersReplyValidationError) Reason() string
Reason function returns reason value.
type PushOnlineUsersRequest ¶
type PushOnlineUsersRequest struct {
ServerId int64 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` // 服务器ID
Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` // 协议类型
SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
Users []*OnlineUser `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"` // 在线用户列表
// contains filtered or unexported fields
}
PushOnlineUsersRequest 推送在线用户请求
func (*PushOnlineUsersRequest) Descriptor
deprecated
func (*PushOnlineUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use PushOnlineUsersRequest.ProtoReflect.Descriptor instead.
func (*PushOnlineUsersRequest) GetProtocol ¶
func (x *PushOnlineUsersRequest) GetProtocol() string
func (*PushOnlineUsersRequest) GetSecretKey ¶
func (x *PushOnlineUsersRequest) GetSecretKey() string
func (*PushOnlineUsersRequest) GetServerId ¶
func (x *PushOnlineUsersRequest) GetServerId() int64
func (*PushOnlineUsersRequest) GetUsers ¶
func (x *PushOnlineUsersRequest) GetUsers() []*OnlineUser
func (*PushOnlineUsersRequest) ProtoMessage ¶
func (*PushOnlineUsersRequest) ProtoMessage()
func (*PushOnlineUsersRequest) ProtoReflect ¶
func (x *PushOnlineUsersRequest) ProtoReflect() protoreflect.Message
func (*PushOnlineUsersRequest) Reset ¶
func (x *PushOnlineUsersRequest) Reset()
func (*PushOnlineUsersRequest) String ¶
func (x *PushOnlineUsersRequest) String() string
func (*PushOnlineUsersRequest) Validate ¶
func (m *PushOnlineUsersRequest) Validate() error
Validate checks the field values on PushOnlineUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PushOnlineUsersRequest) ValidateAll ¶
func (m *PushOnlineUsersRequest) ValidateAll() error
ValidateAll checks the field values on PushOnlineUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PushOnlineUsersRequestMultiError, or nil if none found.
type PushOnlineUsersRequestMultiError ¶
type PushOnlineUsersRequestMultiError []error
PushOnlineUsersRequestMultiError is an error wrapping multiple validation errors returned by PushOnlineUsersRequest.ValidateAll() if the designated constraints aren't met.
func (PushOnlineUsersRequestMultiError) AllErrors ¶
func (m PushOnlineUsersRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PushOnlineUsersRequestMultiError) Error ¶
func (m PushOnlineUsersRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PushOnlineUsersRequestValidationError ¶
type PushOnlineUsersRequestValidationError struct {
// contains filtered or unexported fields
}
PushOnlineUsersRequestValidationError is the validation error returned by PushOnlineUsersRequest.Validate if the designated constraints aren't met.
func (PushOnlineUsersRequestValidationError) Cause ¶
func (e PushOnlineUsersRequestValidationError) Cause() error
Cause function returns cause value.
func (PushOnlineUsersRequestValidationError) Error ¶
func (e PushOnlineUsersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PushOnlineUsersRequestValidationError) ErrorName ¶
func (e PushOnlineUsersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PushOnlineUsersRequestValidationError) Field ¶
func (e PushOnlineUsersRequestValidationError) Field() string
Field function returns field value.
func (PushOnlineUsersRequestValidationError) Key ¶
func (e PushOnlineUsersRequestValidationError) Key() bool
Key function returns key value.
func (PushOnlineUsersRequestValidationError) Reason ¶
func (e PushOnlineUsersRequestValidationError) Reason() string
Reason function returns reason value.
type PushServerStatusReply ¶
type PushServerStatusReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
// contains filtered or unexported fields
}
PushServerStatusReply 推送服务器状态响应
func (*PushServerStatusReply) Descriptor
deprecated
func (*PushServerStatusReply) Descriptor() ([]byte, []int)
Deprecated: Use PushServerStatusReply.ProtoReflect.Descriptor instead.
func (*PushServerStatusReply) GetCode ¶
func (x *PushServerStatusReply) GetCode() int32
func (*PushServerStatusReply) GetMessage ¶
func (x *PushServerStatusReply) GetMessage() string
func (*PushServerStatusReply) ProtoMessage ¶
func (*PushServerStatusReply) ProtoMessage()
func (*PushServerStatusReply) ProtoReflect ¶
func (x *PushServerStatusReply) ProtoReflect() protoreflect.Message
func (*PushServerStatusReply) Reset ¶
func (x *PushServerStatusReply) Reset()
func (*PushServerStatusReply) String ¶
func (x *PushServerStatusReply) String() string
func (*PushServerStatusReply) Validate ¶
func (m *PushServerStatusReply) Validate() error
Validate checks the field values on PushServerStatusReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PushServerStatusReply) ValidateAll ¶
func (m *PushServerStatusReply) ValidateAll() error
ValidateAll checks the field values on PushServerStatusReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PushServerStatusReplyMultiError, or nil if none found.
type PushServerStatusReplyMultiError ¶
type PushServerStatusReplyMultiError []error
PushServerStatusReplyMultiError is an error wrapping multiple validation errors returned by PushServerStatusReply.ValidateAll() if the designated constraints aren't met.
func (PushServerStatusReplyMultiError) AllErrors ¶
func (m PushServerStatusReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PushServerStatusReplyMultiError) Error ¶
func (m PushServerStatusReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PushServerStatusReplyValidationError ¶
type PushServerStatusReplyValidationError struct {
// contains filtered or unexported fields
}
PushServerStatusReplyValidationError is the validation error returned by PushServerStatusReply.Validate if the designated constraints aren't met.
func (PushServerStatusReplyValidationError) Cause ¶
func (e PushServerStatusReplyValidationError) Cause() error
Cause function returns cause value.
func (PushServerStatusReplyValidationError) Error ¶
func (e PushServerStatusReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PushServerStatusReplyValidationError) ErrorName ¶
func (e PushServerStatusReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PushServerStatusReplyValidationError) Field ¶
func (e PushServerStatusReplyValidationError) Field() string
Field function returns field value.
func (PushServerStatusReplyValidationError) Key ¶
func (e PushServerStatusReplyValidationError) Key() bool
Key function returns key value.
func (PushServerStatusReplyValidationError) Reason ¶
func (e PushServerStatusReplyValidationError) Reason() string
Reason function returns reason value.
type PushServerStatusRequest ¶
type PushServerStatusRequest struct {
ServerId int64 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` // 服务器ID
Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` // 协议类型
SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
Cpu float64 `protobuf:"fixed64,4,opt,name=cpu,proto3" json:"cpu,omitempty"` // CPU使用率
Mem float64 `protobuf:"fixed64,5,opt,name=mem,proto3" json:"mem,omitempty"` // 内存使用率
Disk float64 `protobuf:"fixed64,6,opt,name=disk,proto3" json:"disk,omitempty"` // 磁盘使用率
UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间戳
// contains filtered or unexported fields
}
PushServerStatusRequest 推送服务器状态请求
func (*PushServerStatusRequest) Descriptor
deprecated
func (*PushServerStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use PushServerStatusRequest.ProtoReflect.Descriptor instead.
func (*PushServerStatusRequest) GetCpu ¶
func (x *PushServerStatusRequest) GetCpu() float64
func (*PushServerStatusRequest) GetDisk ¶
func (x *PushServerStatusRequest) GetDisk() float64
func (*PushServerStatusRequest) GetMem ¶
func (x *PushServerStatusRequest) GetMem() float64
func (*PushServerStatusRequest) GetProtocol ¶
func (x *PushServerStatusRequest) GetProtocol() string
func (*PushServerStatusRequest) GetSecretKey ¶
func (x *PushServerStatusRequest) GetSecretKey() string
func (*PushServerStatusRequest) GetServerId ¶
func (x *PushServerStatusRequest) GetServerId() int64
func (*PushServerStatusRequest) GetUpdatedAt ¶
func (x *PushServerStatusRequest) GetUpdatedAt() int64
func (*PushServerStatusRequest) ProtoMessage ¶
func (*PushServerStatusRequest) ProtoMessage()
func (*PushServerStatusRequest) ProtoReflect ¶
func (x *PushServerStatusRequest) ProtoReflect() protoreflect.Message
func (*PushServerStatusRequest) Reset ¶
func (x *PushServerStatusRequest) Reset()
func (*PushServerStatusRequest) String ¶
func (x *PushServerStatusRequest) String() string
func (*PushServerStatusRequest) Validate ¶
func (m *PushServerStatusRequest) Validate() error
Validate checks the field values on PushServerStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PushServerStatusRequest) ValidateAll ¶
func (m *PushServerStatusRequest) ValidateAll() error
ValidateAll checks the field values on PushServerStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PushServerStatusRequestMultiError, or nil if none found.
type PushServerStatusRequestMultiError ¶
type PushServerStatusRequestMultiError []error
PushServerStatusRequestMultiError is an error wrapping multiple validation errors returned by PushServerStatusRequest.ValidateAll() if the designated constraints aren't met.
func (PushServerStatusRequestMultiError) AllErrors ¶
func (m PushServerStatusRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PushServerStatusRequestMultiError) Error ¶
func (m PushServerStatusRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PushServerStatusRequestValidationError ¶
type PushServerStatusRequestValidationError struct {
// contains filtered or unexported fields
}
PushServerStatusRequestValidationError is the validation error returned by PushServerStatusRequest.Validate if the designated constraints aren't met.
func (PushServerStatusRequestValidationError) Cause ¶
func (e PushServerStatusRequestValidationError) Cause() error
Cause function returns cause value.
func (PushServerStatusRequestValidationError) Error ¶
func (e PushServerStatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PushServerStatusRequestValidationError) ErrorName ¶
func (e PushServerStatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PushServerStatusRequestValidationError) Field ¶
func (e PushServerStatusRequestValidationError) Field() string
Field function returns field value.
func (PushServerStatusRequestValidationError) Key ¶
func (e PushServerStatusRequestValidationError) Key() bool
Key function returns key value.
func (PushServerStatusRequestValidationError) Reason ¶
func (e PushServerStatusRequestValidationError) Reason() string
Reason function returns reason value.
type PushUserTrafficReply ¶
type PushUserTrafficReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
// contains filtered or unexported fields
}
PushUserTrafficReply 推送用户流量响应
func (*PushUserTrafficReply) Descriptor
deprecated
func (*PushUserTrafficReply) Descriptor() ([]byte, []int)
Deprecated: Use PushUserTrafficReply.ProtoReflect.Descriptor instead.
func (*PushUserTrafficReply) GetCode ¶
func (x *PushUserTrafficReply) GetCode() int32
func (*PushUserTrafficReply) GetMessage ¶
func (x *PushUserTrafficReply) GetMessage() string
func (*PushUserTrafficReply) ProtoMessage ¶
func (*PushUserTrafficReply) ProtoMessage()
func (*PushUserTrafficReply) ProtoReflect ¶
func (x *PushUserTrafficReply) ProtoReflect() protoreflect.Message
func (*PushUserTrafficReply) Reset ¶
func (x *PushUserTrafficReply) Reset()
func (*PushUserTrafficReply) String ¶
func (x *PushUserTrafficReply) String() string
func (*PushUserTrafficReply) Validate ¶
func (m *PushUserTrafficReply) Validate() error
Validate checks the field values on PushUserTrafficReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PushUserTrafficReply) ValidateAll ¶
func (m *PushUserTrafficReply) ValidateAll() error
ValidateAll checks the field values on PushUserTrafficReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PushUserTrafficReplyMultiError, or nil if none found.
type PushUserTrafficReplyMultiError ¶
type PushUserTrafficReplyMultiError []error
PushUserTrafficReplyMultiError is an error wrapping multiple validation errors returned by PushUserTrafficReply.ValidateAll() if the designated constraints aren't met.
func (PushUserTrafficReplyMultiError) AllErrors ¶
func (m PushUserTrafficReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PushUserTrafficReplyMultiError) Error ¶
func (m PushUserTrafficReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PushUserTrafficReplyValidationError ¶
type PushUserTrafficReplyValidationError struct {
// contains filtered or unexported fields
}
PushUserTrafficReplyValidationError is the validation error returned by PushUserTrafficReply.Validate if the designated constraints aren't met.
func (PushUserTrafficReplyValidationError) Cause ¶
func (e PushUserTrafficReplyValidationError) Cause() error
Cause function returns cause value.
func (PushUserTrafficReplyValidationError) Error ¶
func (e PushUserTrafficReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PushUserTrafficReplyValidationError) ErrorName ¶
func (e PushUserTrafficReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PushUserTrafficReplyValidationError) Field ¶
func (e PushUserTrafficReplyValidationError) Field() string
Field function returns field value.
func (PushUserTrafficReplyValidationError) Key ¶
func (e PushUserTrafficReplyValidationError) Key() bool
Key function returns key value.
func (PushUserTrafficReplyValidationError) Reason ¶
func (e PushUserTrafficReplyValidationError) Reason() string
Reason function returns reason value.
type PushUserTrafficRequest ¶
type PushUserTrafficRequest struct {
ServerId int64 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` // 服务器ID
Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` // 协议类型
SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
Traffic []*UserTraffic `protobuf:"bytes,4,rep,name=traffic,proto3" json:"traffic,omitempty"` // 流量数据
// contains filtered or unexported fields
}
PushUserTrafficRequest 推送用户流量请求
func (*PushUserTrafficRequest) Descriptor
deprecated
func (*PushUserTrafficRequest) Descriptor() ([]byte, []int)
Deprecated: Use PushUserTrafficRequest.ProtoReflect.Descriptor instead.
func (*PushUserTrafficRequest) GetProtocol ¶
func (x *PushUserTrafficRequest) GetProtocol() string
func (*PushUserTrafficRequest) GetSecretKey ¶
func (x *PushUserTrafficRequest) GetSecretKey() string
func (*PushUserTrafficRequest) GetServerId ¶
func (x *PushUserTrafficRequest) GetServerId() int64
func (*PushUserTrafficRequest) GetTraffic ¶
func (x *PushUserTrafficRequest) GetTraffic() []*UserTraffic
func (*PushUserTrafficRequest) ProtoMessage ¶
func (*PushUserTrafficRequest) ProtoMessage()
func (*PushUserTrafficRequest) ProtoReflect ¶
func (x *PushUserTrafficRequest) ProtoReflect() protoreflect.Message
func (*PushUserTrafficRequest) Reset ¶
func (x *PushUserTrafficRequest) Reset()
func (*PushUserTrafficRequest) String ¶
func (x *PushUserTrafficRequest) String() string
func (*PushUserTrafficRequest) Validate ¶
func (m *PushUserTrafficRequest) Validate() error
Validate checks the field values on PushUserTrafficRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PushUserTrafficRequest) ValidateAll ¶
func (m *PushUserTrafficRequest) ValidateAll() error
ValidateAll checks the field values on PushUserTrafficRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PushUserTrafficRequestMultiError, or nil if none found.
type PushUserTrafficRequestMultiError ¶
type PushUserTrafficRequestMultiError []error
PushUserTrafficRequestMultiError is an error wrapping multiple validation errors returned by PushUserTrafficRequest.ValidateAll() if the designated constraints aren't met.
func (PushUserTrafficRequestMultiError) AllErrors ¶
func (m PushUserTrafficRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PushUserTrafficRequestMultiError) Error ¶
func (m PushUserTrafficRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PushUserTrafficRequestValidationError ¶
type PushUserTrafficRequestValidationError struct {
// contains filtered or unexported fields
}
PushUserTrafficRequestValidationError is the validation error returned by PushUserTrafficRequest.Validate if the designated constraints aren't met.
func (PushUserTrafficRequestValidationError) Cause ¶
func (e PushUserTrafficRequestValidationError) Cause() error
Cause function returns cause value.
func (PushUserTrafficRequestValidationError) Error ¶
func (e PushUserTrafficRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PushUserTrafficRequestValidationError) ErrorName ¶
func (e PushUserTrafficRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PushUserTrafficRequestValidationError) Field ¶
func (e PushUserTrafficRequestValidationError) Field() string
Field function returns field value.
func (PushUserTrafficRequestValidationError) Key ¶
func (e PushUserTrafficRequestValidationError) Key() bool
Key function returns key value.
func (PushUserTrafficRequestValidationError) Reason ¶
func (e PushUserTrafficRequestValidationError) Reason() string
Reason function returns reason value.
type QueryServerProtocolConfigReply ¶
type QueryServerProtocolConfigReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
TrafficReportThreshold int64 `` // 流量上报阈值
/* 130-byte string literal not displayed */
IpStrategy string `protobuf:"bytes,4,opt,name=ip_strategy,json=ipStrategy,proto3" json:"ip_strategy,omitempty"` // IP策略
Dns []*NodeDNS `protobuf:"bytes,5,rep,name=dns,proto3" json:"dns,omitempty"` // DNS配置
Block []string `protobuf:"bytes,6,rep,name=block,proto3" json:"block,omitempty"` // 阻止列表
Outbound []*NodeOutbound `protobuf:"bytes,7,rep,name=outbound,proto3" json:"outbound,omitempty"` // 出站配置
Protocols []*Protocol `protobuf:"bytes,8,rep,name=protocols,proto3" json:"protocols,omitempty"` // 协议配置
Total int32 `protobuf:"varint,9,opt,name=total,proto3" json:"total,omitempty"` // 总数
// contains filtered or unexported fields
}
QueryServerProtocolConfigReply 查询服务器协议配置响应
func (*QueryServerProtocolConfigReply) Descriptor
deprecated
func (*QueryServerProtocolConfigReply) Descriptor() ([]byte, []int)
Deprecated: Use QueryServerProtocolConfigReply.ProtoReflect.Descriptor instead.
func (*QueryServerProtocolConfigReply) GetBlock ¶
func (x *QueryServerProtocolConfigReply) GetBlock() []string
func (*QueryServerProtocolConfigReply) GetCode ¶
func (x *QueryServerProtocolConfigReply) GetCode() int32
func (*QueryServerProtocolConfigReply) GetDns ¶
func (x *QueryServerProtocolConfigReply) GetDns() []*NodeDNS
func (*QueryServerProtocolConfigReply) GetIpStrategy ¶
func (x *QueryServerProtocolConfigReply) GetIpStrategy() string
func (*QueryServerProtocolConfigReply) GetMessage ¶
func (x *QueryServerProtocolConfigReply) GetMessage() string
func (*QueryServerProtocolConfigReply) GetOutbound ¶
func (x *QueryServerProtocolConfigReply) GetOutbound() []*NodeOutbound
func (*QueryServerProtocolConfigReply) GetProtocols ¶
func (x *QueryServerProtocolConfigReply) GetProtocols() []*Protocol
func (*QueryServerProtocolConfigReply) GetTotal ¶
func (x *QueryServerProtocolConfigReply) GetTotal() int32
func (*QueryServerProtocolConfigReply) GetTrafficReportThreshold ¶
func (x *QueryServerProtocolConfigReply) GetTrafficReportThreshold() int64
func (*QueryServerProtocolConfigReply) ProtoMessage ¶
func (*QueryServerProtocolConfigReply) ProtoMessage()
func (*QueryServerProtocolConfigReply) ProtoReflect ¶
func (x *QueryServerProtocolConfigReply) ProtoReflect() protoreflect.Message
func (*QueryServerProtocolConfigReply) Reset ¶
func (x *QueryServerProtocolConfigReply) Reset()
func (*QueryServerProtocolConfigReply) String ¶
func (x *QueryServerProtocolConfigReply) String() string
func (*QueryServerProtocolConfigReply) Validate ¶
func (m *QueryServerProtocolConfigReply) Validate() error
Validate checks the field values on QueryServerProtocolConfigReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*QueryServerProtocolConfigReply) ValidateAll ¶
func (m *QueryServerProtocolConfigReply) ValidateAll() error
ValidateAll checks the field values on QueryServerProtocolConfigReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryServerProtocolConfigReplyMultiError, or nil if none found.
type QueryServerProtocolConfigReplyMultiError ¶
type QueryServerProtocolConfigReplyMultiError []error
QueryServerProtocolConfigReplyMultiError is an error wrapping multiple validation errors returned by QueryServerProtocolConfigReply.ValidateAll() if the designated constraints aren't met.
func (QueryServerProtocolConfigReplyMultiError) AllErrors ¶
func (m QueryServerProtocolConfigReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QueryServerProtocolConfigReplyMultiError) Error ¶
func (m QueryServerProtocolConfigReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QueryServerProtocolConfigReplyValidationError ¶
type QueryServerProtocolConfigReplyValidationError struct {
// contains filtered or unexported fields
}
QueryServerProtocolConfigReplyValidationError is the validation error returned by QueryServerProtocolConfigReply.Validate if the designated constraints aren't met.
func (QueryServerProtocolConfigReplyValidationError) Cause ¶
func (e QueryServerProtocolConfigReplyValidationError) Cause() error
Cause function returns cause value.
func (QueryServerProtocolConfigReplyValidationError) Error ¶
func (e QueryServerProtocolConfigReplyValidationError) Error() string
Error satisfies the builtin error interface
func (QueryServerProtocolConfigReplyValidationError) ErrorName ¶
func (e QueryServerProtocolConfigReplyValidationError) ErrorName() string
ErrorName returns error name.
func (QueryServerProtocolConfigReplyValidationError) Field ¶
func (e QueryServerProtocolConfigReplyValidationError) Field() string
Field function returns field value.
func (QueryServerProtocolConfigReplyValidationError) Key ¶
func (e QueryServerProtocolConfigReplyValidationError) Key() bool
Key function returns key value.
func (QueryServerProtocolConfigReplyValidationError) Reason ¶
func (e QueryServerProtocolConfigReplyValidationError) Reason() string
Reason function returns reason value.
type QueryServerProtocolConfigRequest ¶
type QueryServerProtocolConfigRequest struct {
ServerId int64 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` // 服务器ID(路径参数)
SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
Protocols []string `protobuf:"bytes,3,rep,name=protocols,proto3" json:"protocols,omitempty"` // 协议列表
// contains filtered or unexported fields
}
QueryServerProtocolConfigRequest 查询服务器协议配置请求
func (*QueryServerProtocolConfigRequest) Descriptor
deprecated
func (*QueryServerProtocolConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryServerProtocolConfigRequest.ProtoReflect.Descriptor instead.
func (*QueryServerProtocolConfigRequest) GetProtocols ¶
func (x *QueryServerProtocolConfigRequest) GetProtocols() []string
func (*QueryServerProtocolConfigRequest) GetSecretKey ¶
func (x *QueryServerProtocolConfigRequest) GetSecretKey() string
func (*QueryServerProtocolConfigRequest) GetServerId ¶
func (x *QueryServerProtocolConfigRequest) GetServerId() int64
func (*QueryServerProtocolConfigRequest) ProtoMessage ¶
func (*QueryServerProtocolConfigRequest) ProtoMessage()
func (*QueryServerProtocolConfigRequest) ProtoReflect ¶
func (x *QueryServerProtocolConfigRequest) ProtoReflect() protoreflect.Message
func (*QueryServerProtocolConfigRequest) Reset ¶
func (x *QueryServerProtocolConfigRequest) Reset()
func (*QueryServerProtocolConfigRequest) String ¶
func (x *QueryServerProtocolConfigRequest) String() string
func (*QueryServerProtocolConfigRequest) Validate ¶
func (m *QueryServerProtocolConfigRequest) Validate() error
Validate checks the field values on QueryServerProtocolConfigRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*QueryServerProtocolConfigRequest) ValidateAll ¶
func (m *QueryServerProtocolConfigRequest) ValidateAll() error
ValidateAll checks the field values on QueryServerProtocolConfigRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryServerProtocolConfigRequestMultiError, or nil if none found.
type QueryServerProtocolConfigRequestMultiError ¶
type QueryServerProtocolConfigRequestMultiError []error
QueryServerProtocolConfigRequestMultiError is an error wrapping multiple validation errors returned by QueryServerProtocolConfigRequest.ValidateAll() if the designated constraints aren't met.
func (QueryServerProtocolConfigRequestMultiError) AllErrors ¶
func (m QueryServerProtocolConfigRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QueryServerProtocolConfigRequestMultiError) Error ¶
func (m QueryServerProtocolConfigRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QueryServerProtocolConfigRequestValidationError ¶
type QueryServerProtocolConfigRequestValidationError struct {
// contains filtered or unexported fields
}
QueryServerProtocolConfigRequestValidationError is the validation error returned by QueryServerProtocolConfigRequest.Validate if the designated constraints aren't met.
func (QueryServerProtocolConfigRequestValidationError) Cause ¶
func (e QueryServerProtocolConfigRequestValidationError) Cause() error
Cause function returns cause value.
func (QueryServerProtocolConfigRequestValidationError) Error ¶
func (e QueryServerProtocolConfigRequestValidationError) Error() string
Error satisfies the builtin error interface
func (QueryServerProtocolConfigRequestValidationError) ErrorName ¶
func (e QueryServerProtocolConfigRequestValidationError) ErrorName() string
ErrorName returns error name.
func (QueryServerProtocolConfigRequestValidationError) Field ¶
func (e QueryServerProtocolConfigRequestValidationError) Field() string
Field function returns field value.
func (QueryServerProtocolConfigRequestValidationError) Key ¶
func (e QueryServerProtocolConfigRequestValidationError) Key() bool
Key function returns key value.
func (QueryServerProtocolConfigRequestValidationError) Reason ¶
func (e QueryServerProtocolConfigRequestValidationError) Reason() string
Reason function returns reason value.
type ServerBasic ¶
type ServerBasic struct {
PushInterval int64 `protobuf:"varint,1,opt,name=push_interval,json=pushInterval,proto3" json:"push_interval,omitempty"` // 推送间隔(秒)
PullInterval int64 `protobuf:"varint,2,opt,name=pull_interval,json=pullInterval,proto3" json:"pull_interval,omitempty"` // 拉取间隔(秒)
DeviceCountMode string `protobuf:"bytes,3,opt,name=device_count_mode,json=deviceCountMode,proto3" json:"device_count_mode,omitempty"` // 设备计数模式:“ip” 或 “connection”
DeviceAdmissionEnabled bool `` // 设备准入控制全局开关
/* 130-byte string literal not displayed */
// contains filtered or unexported fields
}
ServerBasic 服务器基础配置
func (*ServerBasic) Descriptor
deprecated
func (*ServerBasic) Descriptor() ([]byte, []int)
Deprecated: Use ServerBasic.ProtoReflect.Descriptor instead.
func (*ServerBasic) GetDeviceAdmissionEnabled ¶
func (x *ServerBasic) GetDeviceAdmissionEnabled() bool
func (*ServerBasic) GetDeviceCountMode ¶
func (x *ServerBasic) GetDeviceCountMode() string
func (*ServerBasic) GetPullInterval ¶
func (x *ServerBasic) GetPullInterval() int64
func (*ServerBasic) GetPushInterval ¶
func (x *ServerBasic) GetPushInterval() int64
func (*ServerBasic) ProtoMessage ¶
func (*ServerBasic) ProtoMessage()
func (*ServerBasic) ProtoReflect ¶
func (x *ServerBasic) ProtoReflect() protoreflect.Message
func (*ServerBasic) Reset ¶
func (x *ServerBasic) Reset()
func (*ServerBasic) String ¶
func (x *ServerBasic) String() string
func (*ServerBasic) Validate ¶
func (m *ServerBasic) Validate() error
Validate checks the field values on ServerBasic with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ServerBasic) ValidateAll ¶
func (m *ServerBasic) ValidateAll() error
ValidateAll checks the field values on ServerBasic with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerBasicMultiError, or nil if none found.
type ServerBasicMultiError ¶
type ServerBasicMultiError []error
ServerBasicMultiError is an error wrapping multiple validation errors returned by ServerBasic.ValidateAll() if the designated constraints aren't met.
func (ServerBasicMultiError) AllErrors ¶
func (m ServerBasicMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerBasicMultiError) Error ¶
func (m ServerBasicMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerBasicValidationError ¶
type ServerBasicValidationError struct {
// contains filtered or unexported fields
}
ServerBasicValidationError is the validation error returned by ServerBasic.Validate if the designated constraints aren't met.
func (ServerBasicValidationError) Cause ¶
func (e ServerBasicValidationError) Cause() error
Cause function returns cause value.
func (ServerBasicValidationError) Error ¶
func (e ServerBasicValidationError) Error() string
Error satisfies the builtin error interface
func (ServerBasicValidationError) ErrorName ¶
func (e ServerBasicValidationError) ErrorName() string
ErrorName returns error name.
func (ServerBasicValidationError) Field ¶
func (e ServerBasicValidationError) Field() string
Field function returns field value.
func (ServerBasicValidationError) Key ¶
func (e ServerBasicValidationError) Key() bool
Key function returns key value.
func (ServerBasicValidationError) Reason ¶
func (e ServerBasicValidationError) Reason() string
Reason function returns reason value.
type ServerClient ¶
type ServerClient interface {
// GetServerConfig 获取服务器配置
GetServerConfig(ctx context.Context, in *GetServerConfigRequest, opts ...grpc.CallOption) (*GetServerConfigReply, error)
// GetServerUserList 获取用户列表
GetServerUserList(ctx context.Context, in *GetServerUserListRequest, opts ...grpc.CallOption) (*GetServerUserListReply, error)
// PushUserTraffic 推送用户流量
PushUserTraffic(ctx context.Context, in *PushUserTrafficRequest, opts ...grpc.CallOption) (*PushUserTrafficReply, error)
// PushServerStatus 推送服务器状态
PushServerStatus(ctx context.Context, in *PushServerStatusRequest, opts ...grpc.CallOption) (*PushServerStatusReply, error)
// PushOnlineUsers 推送在线用户
PushOnlineUsers(ctx context.Context, in *PushOnlineUsersRequest, opts ...grpc.CallOption) (*PushOnlineUsersReply, error)
// QueryServerProtocolConfig 查询服务器协议配置
QueryServerProtocolConfig(ctx context.Context, in *QueryServerProtocolConfigRequest, opts ...grpc.CallOption) (*QueryServerProtocolConfigReply, error)
// SessionCheck 会话准入检查
SessionCheck(ctx context.Context, in *SessionCheckRequest, opts ...grpc.CallOption) (*SessionCheckResponse, error)
// SessionRelease 会话释放
SessionRelease(ctx context.Context, in *SessionReleaseRequest, opts ...grpc.CallOption) (*SessionReleaseResponse, error)
}
ServerClient is the client API for Server service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Server service - 节点服务器接口 用于节点服务器与后端管理系统通信
func NewServerClient ¶
func NewServerClient(cc grpc.ClientConnInterface) ServerClient
type ServerHTTPClient ¶
type ServerHTTPClient interface {
// GetServerConfig GetServerConfig 获取服务器配置
GetServerConfig(ctx context.Context, req *GetServerConfigRequest, opts ...http.CallOption) (rsp *GetServerConfigReply, err error)
// GetServerUserList GetServerUserList 获取用户列表
GetServerUserList(ctx context.Context, req *GetServerUserListRequest, opts ...http.CallOption) (rsp *GetServerUserListReply, err error)
// PushOnlineUsers PushOnlineUsers 推送在线用户
PushOnlineUsers(ctx context.Context, req *PushOnlineUsersRequest, opts ...http.CallOption) (rsp *PushOnlineUsersReply, err error)
// PushServerStatus PushServerStatus 推送服务器状态
PushServerStatus(ctx context.Context, req *PushServerStatusRequest, opts ...http.CallOption) (rsp *PushServerStatusReply, err error)
// PushUserTraffic PushUserTraffic 推送用户流量
PushUserTraffic(ctx context.Context, req *PushUserTrafficRequest, opts ...http.CallOption) (rsp *PushUserTrafficReply, err error)
// QueryServerProtocolConfig QueryServerProtocolConfig 查询服务器协议配置
QueryServerProtocolConfig(ctx context.Context, req *QueryServerProtocolConfigRequest, opts ...http.CallOption) (rsp *QueryServerProtocolConfigReply, err error)
// SessionCheck SessionCheck 会话准入检查
SessionCheck(ctx context.Context, req *SessionCheckRequest, opts ...http.CallOption) (rsp *SessionCheckResponse, err error)
// SessionRelease SessionRelease 会话释放
SessionRelease(ctx context.Context, req *SessionReleaseRequest, opts ...http.CallOption) (rsp *SessionReleaseResponse, err error)
}
func NewServerHTTPClient ¶
func NewServerHTTPClient(client *http.Client) ServerHTTPClient
type ServerHTTPClientImpl ¶
type ServerHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServerHTTPClientImpl) GetServerConfig ¶
func (c *ServerHTTPClientImpl) GetServerConfig(ctx context.Context, in *GetServerConfigRequest, opts ...http.CallOption) (*GetServerConfigReply, error)
GetServerConfig GetServerConfig 获取服务器配置
func (*ServerHTTPClientImpl) GetServerUserList ¶
func (c *ServerHTTPClientImpl) GetServerUserList(ctx context.Context, in *GetServerUserListRequest, opts ...http.CallOption) (*GetServerUserListReply, error)
GetServerUserList GetServerUserList 获取用户列表
func (*ServerHTTPClientImpl) PushOnlineUsers ¶
func (c *ServerHTTPClientImpl) PushOnlineUsers(ctx context.Context, in *PushOnlineUsersRequest, opts ...http.CallOption) (*PushOnlineUsersReply, error)
PushOnlineUsers PushOnlineUsers 推送在线用户
func (*ServerHTTPClientImpl) PushServerStatus ¶
func (c *ServerHTTPClientImpl) PushServerStatus(ctx context.Context, in *PushServerStatusRequest, opts ...http.CallOption) (*PushServerStatusReply, error)
PushServerStatus PushServerStatus 推送服务器状态
func (*ServerHTTPClientImpl) PushUserTraffic ¶
func (c *ServerHTTPClientImpl) PushUserTraffic(ctx context.Context, in *PushUserTrafficRequest, opts ...http.CallOption) (*PushUserTrafficReply, error)
PushUserTraffic PushUserTraffic 推送用户流量
func (*ServerHTTPClientImpl) QueryServerProtocolConfig ¶
func (c *ServerHTTPClientImpl) QueryServerProtocolConfig(ctx context.Context, in *QueryServerProtocolConfigRequest, opts ...http.CallOption) (*QueryServerProtocolConfigReply, error)
QueryServerProtocolConfig QueryServerProtocolConfig 查询服务器协议配置
func (*ServerHTTPClientImpl) SessionCheck ¶
func (c *ServerHTTPClientImpl) SessionCheck(ctx context.Context, in *SessionCheckRequest, opts ...http.CallOption) (*SessionCheckResponse, error)
SessionCheck SessionCheck 会话准入检查
func (*ServerHTTPClientImpl) SessionRelease ¶
func (c *ServerHTTPClientImpl) SessionRelease(ctx context.Context, in *SessionReleaseRequest, opts ...http.CallOption) (*SessionReleaseResponse, error)
SessionRelease SessionRelease 会话释放
type ServerHTTPServer ¶
type ServerHTTPServer interface {
// GetServerConfig GetServerConfig 获取服务器配置
GetServerConfig(context.Context, *GetServerConfigRequest) (*GetServerConfigReply, error)
// GetServerUserList GetServerUserList 获取用户列表
GetServerUserList(context.Context, *GetServerUserListRequest) (*GetServerUserListReply, error)
// PushOnlineUsers PushOnlineUsers 推送在线用户
PushOnlineUsers(context.Context, *PushOnlineUsersRequest) (*PushOnlineUsersReply, error)
// PushServerStatus PushServerStatus 推送服务器状态
PushServerStatus(context.Context, *PushServerStatusRequest) (*PushServerStatusReply, error)
// PushUserTraffic PushUserTraffic 推送用户流量
PushUserTraffic(context.Context, *PushUserTrafficRequest) (*PushUserTrafficReply, error)
// QueryServerProtocolConfig QueryServerProtocolConfig 查询服务器协议配置
QueryServerProtocolConfig(context.Context, *QueryServerProtocolConfigRequest) (*QueryServerProtocolConfigReply, error)
// SessionCheck SessionCheck 会话准入检查
SessionCheck(context.Context, *SessionCheckRequest) (*SessionCheckResponse, error)
// SessionRelease SessionRelease 会话释放
SessionRelease(context.Context, *SessionReleaseRequest) (*SessionReleaseResponse, error)
}
type ServerServer ¶
type ServerServer interface {
// GetServerConfig 获取服务器配置
GetServerConfig(context.Context, *GetServerConfigRequest) (*GetServerConfigReply, error)
// GetServerUserList 获取用户列表
GetServerUserList(context.Context, *GetServerUserListRequest) (*GetServerUserListReply, error)
// PushUserTraffic 推送用户流量
PushUserTraffic(context.Context, *PushUserTrafficRequest) (*PushUserTrafficReply, error)
// PushServerStatus 推送服务器状态
PushServerStatus(context.Context, *PushServerStatusRequest) (*PushServerStatusReply, error)
// PushOnlineUsers 推送在线用户
PushOnlineUsers(context.Context, *PushOnlineUsersRequest) (*PushOnlineUsersReply, error)
// QueryServerProtocolConfig 查询服务器协议配置
QueryServerProtocolConfig(context.Context, *QueryServerProtocolConfigRequest) (*QueryServerProtocolConfigReply, error)
// SessionCheck 会话准入检查
SessionCheck(context.Context, *SessionCheckRequest) (*SessionCheckResponse, error)
// SessionRelease 会话释放
SessionRelease(context.Context, *SessionReleaseRequest) (*SessionReleaseResponse, error)
// contains filtered or unexported methods
}
ServerServer is the server API for Server service. All implementations must embed UnimplementedServerServer for forward compatibility.
Server service - 节点服务器接口 用于节点服务器与后端管理系统通信
type ServerUser ¶
type ServerUser struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户ID
Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // UUID
SpeedLimit int64 `protobuf:"varint,3,opt,name=speed_limit,json=speedLimit,proto3" json:"speed_limit,omitempty"` // 速度限制
DeviceLimit int64 `protobuf:"varint,4,opt,name=device_limit,json=deviceLimit,proto3" json:"device_limit,omitempty"` // 设备限制
// contains filtered or unexported fields
}
ServerUser 服务器用户信息
func (*ServerUser) Descriptor
deprecated
func (*ServerUser) Descriptor() ([]byte, []int)
Deprecated: Use ServerUser.ProtoReflect.Descriptor instead.
func (*ServerUser) GetDeviceLimit ¶
func (x *ServerUser) GetDeviceLimit() int64
func (*ServerUser) GetId ¶
func (x *ServerUser) GetId() int64
func (*ServerUser) GetSpeedLimit ¶
func (x *ServerUser) GetSpeedLimit() int64
func (*ServerUser) GetUuid ¶
func (x *ServerUser) GetUuid() string
func (*ServerUser) ProtoMessage ¶
func (*ServerUser) ProtoMessage()
func (*ServerUser) ProtoReflect ¶
func (x *ServerUser) ProtoReflect() protoreflect.Message
func (*ServerUser) Reset ¶
func (x *ServerUser) Reset()
func (*ServerUser) String ¶
func (x *ServerUser) String() string
func (*ServerUser) Validate ¶
func (m *ServerUser) Validate() error
Validate checks the field values on ServerUser with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ServerUser) ValidateAll ¶
func (m *ServerUser) ValidateAll() error
ValidateAll checks the field values on ServerUser with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerUserMultiError, or nil if none found.
type ServerUserMultiError ¶
type ServerUserMultiError []error
ServerUserMultiError is an error wrapping multiple validation errors returned by ServerUser.ValidateAll() if the designated constraints aren't met.
func (ServerUserMultiError) AllErrors ¶
func (m ServerUserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerUserMultiError) Error ¶
func (m ServerUserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerUserValidationError ¶
type ServerUserValidationError struct {
// contains filtered or unexported fields
}
ServerUserValidationError is the validation error returned by ServerUser.Validate if the designated constraints aren't met.
func (ServerUserValidationError) Cause ¶
func (e ServerUserValidationError) Cause() error
Cause function returns cause value.
func (ServerUserValidationError) Error ¶
func (e ServerUserValidationError) Error() string
Error satisfies the builtin error interface
func (ServerUserValidationError) ErrorName ¶
func (e ServerUserValidationError) ErrorName() string
ErrorName returns error name.
func (ServerUserValidationError) Field ¶
func (e ServerUserValidationError) Field() string
Field function returns field value.
func (ServerUserValidationError) Key ¶
func (e ServerUserValidationError) Key() bool
Key function returns key value.
func (ServerUserValidationError) Reason ¶
func (e ServerUserValidationError) Reason() string
Reason function returns reason value.
type SessionCheckRequest ¶
type SessionCheckRequest struct {
ServerId int64 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` // 服务器ID
SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户ID
ClientIp string `protobuf:"bytes,4,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"` // 客户端IP
Protocol string `protobuf:"bytes,5,opt,name=protocol,proto3" json:"protocol,omitempty"` // 协议类型
ConnectionId string `protobuf:"bytes,6,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` // 连接ID
// contains filtered or unexported fields
}
SessionCheckRequest 会话准入检查请求
func (*SessionCheckRequest) Descriptor
deprecated
func (*SessionCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use SessionCheckRequest.ProtoReflect.Descriptor instead.
func (*SessionCheckRequest) GetClientIp ¶
func (x *SessionCheckRequest) GetClientIp() string
func (*SessionCheckRequest) GetConnectionId ¶
func (x *SessionCheckRequest) GetConnectionId() string
func (*SessionCheckRequest) GetProtocol ¶
func (x *SessionCheckRequest) GetProtocol() string
func (*SessionCheckRequest) GetSecretKey ¶
func (x *SessionCheckRequest) GetSecretKey() string
func (*SessionCheckRequest) GetServerId ¶
func (x *SessionCheckRequest) GetServerId() int64
func (*SessionCheckRequest) GetUserId ¶
func (x *SessionCheckRequest) GetUserId() int64
func (*SessionCheckRequest) ProtoMessage ¶
func (*SessionCheckRequest) ProtoMessage()
func (*SessionCheckRequest) ProtoReflect ¶
func (x *SessionCheckRequest) ProtoReflect() protoreflect.Message
func (*SessionCheckRequest) Reset ¶
func (x *SessionCheckRequest) Reset()
func (*SessionCheckRequest) String ¶
func (x *SessionCheckRequest) String() string
func (*SessionCheckRequest) Validate ¶
func (m *SessionCheckRequest) Validate() error
Validate checks the field values on SessionCheckRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SessionCheckRequest) ValidateAll ¶
func (m *SessionCheckRequest) ValidateAll() error
ValidateAll checks the field values on SessionCheckRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SessionCheckRequestMultiError, or nil if none found.
type SessionCheckRequestMultiError ¶
type SessionCheckRequestMultiError []error
SessionCheckRequestMultiError is an error wrapping multiple validation errors returned by SessionCheckRequest.ValidateAll() if the designated constraints aren't met.
func (SessionCheckRequestMultiError) AllErrors ¶
func (m SessionCheckRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SessionCheckRequestMultiError) Error ¶
func (m SessionCheckRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SessionCheckRequestValidationError ¶
type SessionCheckRequestValidationError struct {
// contains filtered or unexported fields
}
SessionCheckRequestValidationError is the validation error returned by SessionCheckRequest.Validate if the designated constraints aren't met.
func (SessionCheckRequestValidationError) Cause ¶
func (e SessionCheckRequestValidationError) Cause() error
Cause function returns cause value.
func (SessionCheckRequestValidationError) Error ¶
func (e SessionCheckRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SessionCheckRequestValidationError) ErrorName ¶
func (e SessionCheckRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SessionCheckRequestValidationError) Field ¶
func (e SessionCheckRequestValidationError) Field() string
Field function returns field value.
func (SessionCheckRequestValidationError) Key ¶
func (e SessionCheckRequestValidationError) Key() bool
Key function returns key value.
func (SessionCheckRequestValidationError) Reason ¶
func (e SessionCheckRequestValidationError) Reason() string
Reason function returns reason value.
type SessionCheckResponse ¶
type SessionCheckResponse struct {
Allowed bool `protobuf:"varint,1,opt,name=allowed,proto3" json:"allowed,omitempty"` // 是否允许
Current int64 `protobuf:"varint,2,opt,name=current,proto3" json:"current,omitempty"` // 当前连接数
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // 连接数限制
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` // 拒绝原因
// contains filtered or unexported fields
}
SessionCheckResponse 会话准入检查响应
func (*SessionCheckResponse) Descriptor
deprecated
func (*SessionCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use SessionCheckResponse.ProtoReflect.Descriptor instead.
func (*SessionCheckResponse) GetAllowed ¶
func (x *SessionCheckResponse) GetAllowed() bool
func (*SessionCheckResponse) GetCurrent ¶
func (x *SessionCheckResponse) GetCurrent() int64
func (*SessionCheckResponse) GetLimit ¶
func (x *SessionCheckResponse) GetLimit() int64
func (*SessionCheckResponse) GetReason ¶
func (x *SessionCheckResponse) GetReason() string
func (*SessionCheckResponse) ProtoMessage ¶
func (*SessionCheckResponse) ProtoMessage()
func (*SessionCheckResponse) ProtoReflect ¶
func (x *SessionCheckResponse) ProtoReflect() protoreflect.Message
func (*SessionCheckResponse) Reset ¶
func (x *SessionCheckResponse) Reset()
func (*SessionCheckResponse) String ¶
func (x *SessionCheckResponse) String() string
func (*SessionCheckResponse) Validate ¶
func (m *SessionCheckResponse) Validate() error
Validate checks the field values on SessionCheckResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SessionCheckResponse) ValidateAll ¶
func (m *SessionCheckResponse) ValidateAll() error
ValidateAll checks the field values on SessionCheckResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SessionCheckResponseMultiError, or nil if none found.
type SessionCheckResponseMultiError ¶
type SessionCheckResponseMultiError []error
SessionCheckResponseMultiError is an error wrapping multiple validation errors returned by SessionCheckResponse.ValidateAll() if the designated constraints aren't met.
func (SessionCheckResponseMultiError) AllErrors ¶
func (m SessionCheckResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SessionCheckResponseMultiError) Error ¶
func (m SessionCheckResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SessionCheckResponseValidationError ¶
type SessionCheckResponseValidationError struct {
// contains filtered or unexported fields
}
SessionCheckResponseValidationError is the validation error returned by SessionCheckResponse.Validate if the designated constraints aren't met.
func (SessionCheckResponseValidationError) Cause ¶
func (e SessionCheckResponseValidationError) Cause() error
Cause function returns cause value.
func (SessionCheckResponseValidationError) Error ¶
func (e SessionCheckResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SessionCheckResponseValidationError) ErrorName ¶
func (e SessionCheckResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SessionCheckResponseValidationError) Field ¶
func (e SessionCheckResponseValidationError) Field() string
Field function returns field value.
func (SessionCheckResponseValidationError) Key ¶
func (e SessionCheckResponseValidationError) Key() bool
Key function returns key value.
func (SessionCheckResponseValidationError) Reason ¶
func (e SessionCheckResponseValidationError) Reason() string
Reason function returns reason value.
type SessionReleaseRequest ¶
type SessionReleaseRequest struct {
ServerId int64 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` // 服务器ID
SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` // 密钥
UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户ID
ClientIp string `protobuf:"bytes,4,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"` // 客户端IP
ConnectionId string `protobuf:"bytes,5,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` // 连接ID
// contains filtered or unexported fields
}
SessionReleaseRequest 会话释放请求
func (*SessionReleaseRequest) Descriptor
deprecated
func (*SessionReleaseRequest) Descriptor() ([]byte, []int)
Deprecated: Use SessionReleaseRequest.ProtoReflect.Descriptor instead.
func (*SessionReleaseRequest) GetClientIp ¶
func (x *SessionReleaseRequest) GetClientIp() string
func (*SessionReleaseRequest) GetConnectionId ¶
func (x *SessionReleaseRequest) GetConnectionId() string
func (*SessionReleaseRequest) GetSecretKey ¶
func (x *SessionReleaseRequest) GetSecretKey() string
func (*SessionReleaseRequest) GetServerId ¶
func (x *SessionReleaseRequest) GetServerId() int64
func (*SessionReleaseRequest) GetUserId ¶
func (x *SessionReleaseRequest) GetUserId() int64
func (*SessionReleaseRequest) ProtoMessage ¶
func (*SessionReleaseRequest) ProtoMessage()
func (*SessionReleaseRequest) ProtoReflect ¶
func (x *SessionReleaseRequest) ProtoReflect() protoreflect.Message
func (*SessionReleaseRequest) Reset ¶
func (x *SessionReleaseRequest) Reset()
func (*SessionReleaseRequest) String ¶
func (x *SessionReleaseRequest) String() string
func (*SessionReleaseRequest) Validate ¶
func (m *SessionReleaseRequest) Validate() error
Validate checks the field values on SessionReleaseRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SessionReleaseRequest) ValidateAll ¶
func (m *SessionReleaseRequest) ValidateAll() error
ValidateAll checks the field values on SessionReleaseRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SessionReleaseRequestMultiError, or nil if none found.
type SessionReleaseRequestMultiError ¶
type SessionReleaseRequestMultiError []error
SessionReleaseRequestMultiError is an error wrapping multiple validation errors returned by SessionReleaseRequest.ValidateAll() if the designated constraints aren't met.
func (SessionReleaseRequestMultiError) AllErrors ¶
func (m SessionReleaseRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SessionReleaseRequestMultiError) Error ¶
func (m SessionReleaseRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SessionReleaseRequestValidationError ¶
type SessionReleaseRequestValidationError struct {
// contains filtered or unexported fields
}
SessionReleaseRequestValidationError is the validation error returned by SessionReleaseRequest.Validate if the designated constraints aren't met.
func (SessionReleaseRequestValidationError) Cause ¶
func (e SessionReleaseRequestValidationError) Cause() error
Cause function returns cause value.
func (SessionReleaseRequestValidationError) Error ¶
func (e SessionReleaseRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SessionReleaseRequestValidationError) ErrorName ¶
func (e SessionReleaseRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SessionReleaseRequestValidationError) Field ¶
func (e SessionReleaseRequestValidationError) Field() string
Field function returns field value.
func (SessionReleaseRequestValidationError) Key ¶
func (e SessionReleaseRequestValidationError) Key() bool
Key function returns key value.
func (SessionReleaseRequestValidationError) Reason ¶
func (e SessionReleaseRequestValidationError) Reason() string
Reason function returns reason value.
type SessionReleaseResponse ¶
type SessionReleaseResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // 是否成功
// contains filtered or unexported fields
}
SessionReleaseResponse 会话释放响应
func (*SessionReleaseResponse) Descriptor
deprecated
func (*SessionReleaseResponse) Descriptor() ([]byte, []int)
Deprecated: Use SessionReleaseResponse.ProtoReflect.Descriptor instead.
func (*SessionReleaseResponse) GetSuccess ¶
func (x *SessionReleaseResponse) GetSuccess() bool
func (*SessionReleaseResponse) ProtoMessage ¶
func (*SessionReleaseResponse) ProtoMessage()
func (*SessionReleaseResponse) ProtoReflect ¶
func (x *SessionReleaseResponse) ProtoReflect() protoreflect.Message
func (*SessionReleaseResponse) Reset ¶
func (x *SessionReleaseResponse) Reset()
func (*SessionReleaseResponse) String ¶
func (x *SessionReleaseResponse) String() string
func (*SessionReleaseResponse) Validate ¶
func (m *SessionReleaseResponse) Validate() error
Validate checks the field values on SessionReleaseResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SessionReleaseResponse) ValidateAll ¶
func (m *SessionReleaseResponse) ValidateAll() error
ValidateAll checks the field values on SessionReleaseResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SessionReleaseResponseMultiError, or nil if none found.
type SessionReleaseResponseMultiError ¶
type SessionReleaseResponseMultiError []error
SessionReleaseResponseMultiError is an error wrapping multiple validation errors returned by SessionReleaseResponse.ValidateAll() if the designated constraints aren't met.
func (SessionReleaseResponseMultiError) AllErrors ¶
func (m SessionReleaseResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SessionReleaseResponseMultiError) Error ¶
func (m SessionReleaseResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SessionReleaseResponseValidationError ¶
type SessionReleaseResponseValidationError struct {
// contains filtered or unexported fields
}
SessionReleaseResponseValidationError is the validation error returned by SessionReleaseResponse.Validate if the designated constraints aren't met.
func (SessionReleaseResponseValidationError) Cause ¶
func (e SessionReleaseResponseValidationError) Cause() error
Cause function returns cause value.
func (SessionReleaseResponseValidationError) Error ¶
func (e SessionReleaseResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SessionReleaseResponseValidationError) ErrorName ¶
func (e SessionReleaseResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SessionReleaseResponseValidationError) Field ¶
func (e SessionReleaseResponseValidationError) Field() string
Field function returns field value.
func (SessionReleaseResponseValidationError) Key ¶
func (e SessionReleaseResponseValidationError) Key() bool
Key function returns key value.
func (SessionReleaseResponseValidationError) Reason ¶
func (e SessionReleaseResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedServerServer ¶
type UnimplementedServerServer struct{}
UnimplementedServerServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedServerServer) GetServerConfig ¶
func (UnimplementedServerServer) GetServerConfig(context.Context, *GetServerConfigRequest) (*GetServerConfigReply, error)
func (UnimplementedServerServer) GetServerUserList ¶
func (UnimplementedServerServer) GetServerUserList(context.Context, *GetServerUserListRequest) (*GetServerUserListReply, error)
func (UnimplementedServerServer) PushOnlineUsers ¶
func (UnimplementedServerServer) PushOnlineUsers(context.Context, *PushOnlineUsersRequest) (*PushOnlineUsersReply, error)
func (UnimplementedServerServer) PushServerStatus ¶
func (UnimplementedServerServer) PushServerStatus(context.Context, *PushServerStatusRequest) (*PushServerStatusReply, error)
func (UnimplementedServerServer) PushUserTraffic ¶
func (UnimplementedServerServer) PushUserTraffic(context.Context, *PushUserTrafficRequest) (*PushUserTrafficReply, error)
func (UnimplementedServerServer) QueryServerProtocolConfig ¶
func (UnimplementedServerServer) QueryServerProtocolConfig(context.Context, *QueryServerProtocolConfigRequest) (*QueryServerProtocolConfigReply, error)
func (UnimplementedServerServer) SessionCheck ¶
func (UnimplementedServerServer) SessionCheck(context.Context, *SessionCheckRequest) (*SessionCheckResponse, error)
func (UnimplementedServerServer) SessionRelease ¶
func (UnimplementedServerServer) SessionRelease(context.Context, *SessionReleaseRequest) (*SessionReleaseResponse, error)
type UnsafeServerServer ¶
type UnsafeServerServer interface {
// contains filtered or unexported methods
}
UnsafeServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerServer will result in compilation errors.
type UserTraffic ¶
type UserTraffic struct {
Sid int64 `protobuf:"varint,1,opt,name=sid,proto3" json:"sid,omitempty"` // 订阅ID
Upload int64 `protobuf:"varint,2,opt,name=upload,proto3" json:"upload,omitempty"` // 上传流量
Download int64 `protobuf:"varint,3,opt,name=download,proto3" json:"download,omitempty"` // 下载流量
// contains filtered or unexported fields
}
UserTraffic 用户流量信息
func (*UserTraffic) Descriptor
deprecated
func (*UserTraffic) Descriptor() ([]byte, []int)
Deprecated: Use UserTraffic.ProtoReflect.Descriptor instead.
func (*UserTraffic) GetDownload ¶
func (x *UserTraffic) GetDownload() int64
func (*UserTraffic) GetSid ¶
func (x *UserTraffic) GetSid() int64
func (*UserTraffic) GetUpload ¶
func (x *UserTraffic) GetUpload() int64
func (*UserTraffic) ProtoMessage ¶
func (*UserTraffic) ProtoMessage()
func (*UserTraffic) ProtoReflect ¶
func (x *UserTraffic) ProtoReflect() protoreflect.Message
func (*UserTraffic) Reset ¶
func (x *UserTraffic) Reset()
func (*UserTraffic) String ¶
func (x *UserTraffic) String() string
func (*UserTraffic) Validate ¶
func (m *UserTraffic) Validate() error
Validate checks the field values on UserTraffic with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserTraffic) ValidateAll ¶
func (m *UserTraffic) ValidateAll() error
ValidateAll checks the field values on UserTraffic with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserTrafficMultiError, or nil if none found.
type UserTrafficMultiError ¶
type UserTrafficMultiError []error
UserTrafficMultiError is an error wrapping multiple validation errors returned by UserTraffic.ValidateAll() if the designated constraints aren't met.
func (UserTrafficMultiError) AllErrors ¶
func (m UserTrafficMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserTrafficMultiError) Error ¶
func (m UserTrafficMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserTrafficValidationError ¶
type UserTrafficValidationError struct {
// contains filtered or unexported fields
}
UserTrafficValidationError is the validation error returned by UserTraffic.Validate if the designated constraints aren't met.
func (UserTrafficValidationError) Cause ¶
func (e UserTrafficValidationError) Cause() error
Cause function returns cause value.
func (UserTrafficValidationError) Error ¶
func (e UserTrafficValidationError) Error() string
Error satisfies the builtin error interface
func (UserTrafficValidationError) ErrorName ¶
func (e UserTrafficValidationError) ErrorName() string
ErrorName returns error name.
func (UserTrafficValidationError) Field ¶
func (e UserTrafficValidationError) Field() string
Field function returns field value.
func (UserTrafficValidationError) Key ¶
func (e UserTrafficValidationError) Key() bool
Key function returns key value.
func (UserTrafficValidationError) Reason ¶
func (e UserTrafficValidationError) Reason() string
Reason function returns reason value.