v1

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationServerGetServerConfig = "/api.server.v1.Server/GetServerConfig"
View Source
const OperationServerGetServerUserList = "/api.server.v1.Server/GetServerUserList"
View Source
const OperationServerPushOnlineUsers = "/api.server.v1.Server/PushOnlineUsers"
View Source
const OperationServerPushServerStatus = "/api.server.v1.Server/PushServerStatus"
View Source
const OperationServerPushUserTraffic = "/api.server.v1.Server/PushUserTraffic"
View Source
const OperationServerQueryServerProtocolConfig = "/api.server.v1.Server/QueryServerProtocolConfig"
View Source
const OperationServerSessionCheck = "/api.server.v1.Server/SessionCheck"
View Source
const OperationServerSessionRelease = "/api.server.v1.Server/SessionRelease"

Variables

View Source
var File_server_v1_server_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (GetServerConfigReplyValidationError) Error

Error satisfies the builtin error interface

func (GetServerConfigReplyValidationError) ErrorName

ErrorName returns error name.

func (GetServerConfigReplyValidationError) Field

Field function returns field value.

func (GetServerConfigReplyValidationError) Key

Key function returns key value.

func (GetServerConfigReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetServerConfigRequestValidationError) Error

Error satisfies the builtin error interface

func (GetServerConfigRequestValidationError) ErrorName

ErrorName returns error name.

func (GetServerConfigRequestValidationError) Field

Field function returns field value.

func (GetServerConfigRequestValidationError) Key

Key function returns key value.

func (GetServerConfigRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetServerUserListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetServerUserListReplyValidationError) ErrorName

ErrorName returns error name.

func (GetServerUserListReplyValidationError) Field

Field function returns field value.

func (GetServerUserListReplyValidationError) Key

Key function returns key value.

func (GetServerUserListReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetServerUserListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetServerUserListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetServerUserListRequestValidationError) Field

Field function returns field value.

func (GetServerUserListRequestValidationError) Key

Key function returns key value.

func (GetServerUserListRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use NodeDNS.ProtoReflect.Descriptor instead.

func (*NodeDNS) GetDomain

func (x *NodeDNS) GetDomain() string

func (*NodeDNS) GetPort

func (x *NodeDNS) GetPort() int64

func (*NodeDNS) GetServer

func (x *NodeDNS) GetServer() string

func (*NodeDNS) ProtoMessage

func (*NodeDNS) ProtoMessage()

func (*NodeDNS) ProtoReflect

func (x *NodeDNS) ProtoReflect() protoreflect.Message

func (*NodeDNS) Reset

func (x *NodeDNS) Reset()

func (*NodeDNS) String

func (x *NodeDNS) String() string

func (*NodeDNS) Validate

func (m *NodeDNS) Validate() error

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

func (m *NodeDNS) ValidateAll() error

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

Cause function returns cause value.

func (NodeOutboundValidationError) Error

Error satisfies the builtin error interface

func (NodeOutboundValidationError) ErrorName

func (e NodeOutboundValidationError) ErrorName() string

ErrorName returns error name.

func (NodeOutboundValidationError) Field

Field function returns field value.

func (NodeOutboundValidationError) Key

Key function returns key value.

func (NodeOutboundValidationError) Reason

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

Error satisfies the builtin error interface

func (OnlineUserValidationError) ErrorName

func (e OnlineUserValidationError) ErrorName() string

ErrorName returns error name.

func (OnlineUserValidationError) Field

Field function returns field value.

func (OnlineUserValidationError) Key

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 */
	SimnetInboundMaxStreamsPerSession      int32   `` /* 171-byte string literal not displayed */
	SimnetInboundMaxHandlerTasksPerSession int32   `` /* 188-byte string literal not displayed */
	SimnetStreamEventChannelCapacity       int32   `` /* 166-byte string literal not displayed */
	SimnetStreamDataChannelCapacity        int32   `` /* 163-byte string literal not displayed */
	SimnetTargetDialTimeoutMs              int32   `` /* 145-byte string literal not displayed */
	SimnetTargetMaxConcurrentDials         int32   `` /* 160-byte string literal not displayed */
	SimnetEgressBlockLoopback              bool    `` /* 143-byte string literal not displayed */
	SimnetEgressBlockPrivate               bool    `` /* 140-byte string literal not displayed */
	SimnetEgressBlockLinkLocal             bool    `` /* 148-byte string literal not displayed */
	SimnetEgressBlockMetadata              bool    `` /* 143-byte string literal not displayed */
	SimnetSendWindow                       int32   `protobuf:"varint,131,opt,name=simnet_send_window,json=simnetSendWindow,proto3" json:"simnet_send_window,omitempty"`
	SimnetRecvWindow                       int32   `protobuf:"varint,132,opt,name=simnet_recv_window,json=simnetRecvWindow,proto3" json:"simnet_recv_window,omitempty"`
	SimnetMaxConcurrentStreams             int32   `` /* 146-byte string literal not displayed */
	SimnetInitialWindowSize                int32   `` /* 137-byte string literal not displayed */
	SimnetMaxFrameSize                     int32   `protobuf:"varint,135,opt,name=simnet_max_frame_size,json=simnetMaxFrameSize,proto3" json:"simnet_max_frame_size,omitempty"`
	SimnetClientMaxConcurrentStreams       int32   `` /* 166-byte string literal not displayed */
	SimnetClientMaxStreamsPerSession       int32   `` /* 168-byte string literal not displayed */
	SimnetClientSessionIdleTimeoutSecs     int32   `` /* 174-byte string literal not displayed */
	SimnetInboundMaxUdpStreamsPerSession   int32   `` /* 182-byte string literal not displayed */
	SimnetClientMaxUdpSessions             int32   `` /* 148-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 */
	Mc1Mode                        string   `protobuf:"bytes,113,opt,name=mc1_mode,json=mc1Mode,proto3" json:"mc1_mode,omitempty"`
	Mc1CidrSegments                []string `protobuf:"bytes,114,rep,name=mc1_cidr_segments,json=mc1CidrSegments,proto3" json:"mc1_cidr_segments,omitempty"`
	MundoUsername                  string   `protobuf:"bytes,115,opt,name=mundo_username,json=mundoUsername,proto3" json:"mundo_username,omitempty"`
	MundoCertificateFingerprint    string   `` /* 146-byte string literal not displayed */
	MundoFakeTitle                 string   `protobuf:"bytes,117,opt,name=mundo_fake_title,json=mundoFakeTitle,proto3" json:"mundo_fake_title,omitempty"`
	MundoFakeMessage               string   `protobuf:"bytes,118,opt,name=mundo_fake_message,json=mundoFakeMessage,proto3" json:"mundo_fake_message,omitempty"`
	MundoAcceptProxyProtocol       bool     `` /* 140-byte string literal not displayed */
	MundoUseTlsCertificate         bool     `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

Protocol 协议配置

func (*Protocol) Descriptor deprecated

func (*Protocol) Descriptor() ([]byte, []int)

Deprecated: Use Protocol.ProtoReflect.Descriptor instead.

func (*Protocol) GetAllowInsecure

func (x *Protocol) GetAllowInsecure() bool

func (*Protocol) GetCertDnsEnv

func (x *Protocol) GetCertDnsEnv() string

func (*Protocol) GetCertDnsProvider

func (x *Protocol) GetCertDnsProvider() string

func (*Protocol) GetCertMode

func (x *Protocol) GetCertMode() string

func (*Protocol) GetCipher

func (x *Protocol) GetCipher() string

func (*Protocol) GetCongestionController

func (x *Protocol) GetCongestionController() string

func (*Protocol) GetDisableSni

func (x *Protocol) GetDisableSni() bool

func (*Protocol) GetDownMbps

func (x *Protocol) GetDownMbps() int32

func (*Protocol) GetEnable

func (x *Protocol) GetEnable() bool

func (*Protocol) GetEncryption

func (x *Protocol) GetEncryption() string

func (*Protocol) GetEncryptionClientPadding

func (x *Protocol) GetEncryptionClientPadding() string

func (*Protocol) GetEncryptionMode

func (x *Protocol) GetEncryptionMode() string

func (*Protocol) GetEncryptionPassword

func (x *Protocol) GetEncryptionPassword() string

func (*Protocol) GetEncryptionPrivateKey

func (x *Protocol) GetEncryptionPrivateKey() string

func (*Protocol) GetEncryptionRtt

func (x *Protocol) GetEncryptionRtt() string

func (*Protocol) GetEncryptionServerPadding

func (x *Protocol) GetEncryptionServerPadding() string

func (*Protocol) GetEncryptionTicket

func (x *Protocol) GetEncryptionTicket() string

func (*Protocol) GetFingerprint

func (x *Protocol) GetFingerprint() string

func (*Protocol) GetFlow

func (x *Protocol) GetFlow() string

func (*Protocol) GetHopInterval

func (x *Protocol) GetHopInterval() int32

func (*Protocol) GetHopPorts

func (x *Protocol) GetHopPorts() string

func (*Protocol) GetHost

func (x *Protocol) GetHost() string

func (*Protocol) GetMc1CidrSegments added in v1.0.8

func (x *Protocol) GetMc1CidrSegments() []string

func (*Protocol) GetMc1Mode added in v1.0.8

func (x *Protocol) GetMc1Mode() string

func (*Protocol) GetMultiplex

func (x *Protocol) GetMultiplex() string

func (*Protocol) GetMundoAcceptProxyProtocol added in v1.0.8

func (x *Protocol) GetMundoAcceptProxyProtocol() bool

func (*Protocol) GetMundoCertificateFingerprint added in v1.0.8

func (x *Protocol) GetMundoCertificateFingerprint() string

func (*Protocol) GetMundoFakeMessage added in v1.0.8

func (x *Protocol) GetMundoFakeMessage() string

func (*Protocol) GetMundoFakeTitle added in v1.0.8

func (x *Protocol) GetMundoFakeTitle() string

func (*Protocol) GetMundoUseTlsCertificate added in v1.0.8

func (x *Protocol) GetMundoUseTlsCertificate() bool

func (*Protocol) GetMundoUsername added in v1.0.8

func (x *Protocol) GetMundoUsername() string

func (*Protocol) GetObfs

func (x *Protocol) GetObfs() string

func (*Protocol) GetObfsHost

func (x *Protocol) GetObfsHost() string

func (*Protocol) GetObfsPassword

func (x *Protocol) GetObfsPassword() string

func (*Protocol) GetObfsPath

func (x *Protocol) GetObfsPath() string

func (*Protocol) GetOmniflowAdaptiveTlsEnabled

func (x *Protocol) GetOmniflowAdaptiveTlsEnabled() bool

func (*Protocol) GetOmniflowAfEnabled

func (x *Protocol) GetOmniflowAfEnabled() bool

func (*Protocol) GetOmniflowAfPathMode

func (x *Protocol) GetOmniflowAfPathMode() string

func (*Protocol) GetOmniflowAfPathPrefix

func (x *Protocol) GetOmniflowAfPathPrefix() string

func (*Protocol) GetOmniflowAfPathRotationSecs

func (x *Protocol) GetOmniflowAfPathRotationSecs() int32

func (*Protocol) GetOmniflowAfPathSkewSlots

func (x *Protocol) GetOmniflowAfPathSkewSlots() int32

func (*Protocol) GetOmniflowAfPathSuffix

func (x *Protocol) GetOmniflowAfPathSuffix() string

func (*Protocol) GetOmniflowCaCertPath

func (x *Protocol) GetOmniflowCaCertPath() string

func (*Protocol) GetOmniflowCarrier

func (x *Protocol) GetOmniflowCarrier() string

func (*Protocol) GetOmniflowContentType

func (x *Protocol) GetOmniflowContentType() string

func (*Protocol) GetOmniflowFallbackCarrierEnabled

func (x *Protocol) GetOmniflowFallbackCarrierEnabled() bool

func (*Protocol) GetOmniflowFallbackConnectTunnel

func (x *Protocol) GetOmniflowFallbackConnectTunnel() bool

func (*Protocol) GetOmniflowFallbackEnabled

func (x *Protocol) GetOmniflowFallbackEnabled() bool

func (*Protocol) GetOmniflowFallbackHostHeader

func (x *Protocol) GetOmniflowFallbackHostHeader() string

func (*Protocol) GetOmniflowFallbackTargetHost

func (x *Protocol) GetOmniflowFallbackTargetHost() string

func (*Protocol) GetOmniflowFallbackTargetPort

func (x *Protocol) GetOmniflowFallbackTargetPort() int32

func (*Protocol) GetOmniflowFallbackTargetScheme

func (x *Protocol) GetOmniflowFallbackTargetScheme() string

func (*Protocol) GetOmniflowFallbackTlsSni

func (x *Protocol) GetOmniflowFallbackTlsSni() string

func (*Protocol) GetOmniflowFallbackWssEnabled

func (x *Protocol) GetOmniflowFallbackWssEnabled() bool

func (*Protocol) GetOmniflowH3FallbackEnabled

func (x *Protocol) GetOmniflowH3FallbackEnabled() bool

func (*Protocol) GetOmniflowH3FallbackPolicy

func (x *Protocol) GetOmniflowH3FallbackPolicy() string

func (*Protocol) GetOmniflowH3FallbackRetryBudget

func (x *Protocol) GetOmniflowH3FallbackRetryBudget() int32

func (*Protocol) GetOmniflowH3FallbackSmokeEnabled

func (x *Protocol) GetOmniflowH3FallbackSmokeEnabled() bool

func (*Protocol) GetOmniflowH3FallbackSmokeIntervalSec

func (x *Protocol) GetOmniflowH3FallbackSmokeIntervalSec() int32

func (*Protocol) GetOmniflowH3FallbackSmokeTimeoutMs

func (x *Protocol) GetOmniflowH3FallbackSmokeTimeoutMs() int32

func (*Protocol) GetOmniflowH3FallbackTimeoutMs

func (x *Protocol) GetOmniflowH3FallbackTimeoutMs() int32

func (*Protocol) GetOmniflowIdleTimeoutSec

func (x *Protocol) GetOmniflowIdleTimeoutSec() int32

func (*Protocol) GetOmniflowMaxAgeSec

func (x *Protocol) GetOmniflowMaxAgeSec() int32

func (*Protocol) GetOmniflowMaxConnections

func (x *Protocol) GetOmniflowMaxConnections() int32

func (*Protocol) GetOmniflowPaddingMode

func (x *Protocol) GetOmniflowPaddingMode() string

func (*Protocol) GetOmniflowPath

func (x *Protocol) GetOmniflowPath() string

func (*Protocol) GetOmniflowProfileJson

func (x *Protocol) GetOmniflowProfileJson() string

func (*Protocol) GetOmniflowProfilePath

func (x *Protocol) GetOmniflowProfilePath() string

func (*Protocol) GetOmniflowServerHost

func (x *Protocol) GetOmniflowServerHost() string

func (*Protocol) GetOmniflowServerPort

func (x *Protocol) GetOmniflowServerPort() int32

func (*Protocol) GetOmniflowSniMode

func (x *Protocol) GetOmniflowSniMode() string

func (*Protocol) GetOmniflowSpkiPin

func (x *Protocol) GetOmniflowSpkiPin() string

func (*Protocol) GetOmniflowTargetMeta

func (x *Protocol) GetOmniflowTargetMeta() string

func (*Protocol) GetOmniflowTlsFingerprint

func (x *Protocol) GetOmniflowTlsFingerprint() string

func (*Protocol) GetOmniflowTrafficShapingEnabled

func (x *Protocol) GetOmniflowTrafficShapingEnabled() bool

func (*Protocol) GetPaddingScheme

func (x *Protocol) GetPaddingScheme() string

func (*Protocol) GetPath

func (x *Protocol) GetPath() string

func (*Protocol) GetPort

func (x *Protocol) GetPort() int32

func (*Protocol) GetRatio

func (x *Protocol) GetRatio() float64

func (*Protocol) GetRealityPrivateKey

func (x *Protocol) GetRealityPrivateKey() string

func (*Protocol) GetRealityPublicKey

func (x *Protocol) GetRealityPublicKey() string

func (*Protocol) GetRealityServerAddr

func (x *Protocol) GetRealityServerAddr() string

func (*Protocol) GetRealityServerPort

func (x *Protocol) GetRealityServerPort() int32

func (*Protocol) GetRealityShortId

func (x *Protocol) GetRealityShortId() string

func (*Protocol) GetReduceRtt

func (x *Protocol) GetReduceRtt() bool

func (*Protocol) GetSecurity

func (x *Protocol) GetSecurity() string

func (*Protocol) GetServerKey

func (x *Protocol) GetServerKey() string

func (*Protocol) GetServiceName

func (x *Protocol) GetServiceName() string

func (*Protocol) GetSimnetAfEnabled

func (x *Protocol) GetSimnetAfEnabled() bool

func (*Protocol) GetSimnetAfFakeHeaderInjection

func (x *Protocol) GetSimnetAfFakeHeaderInjection() bool

func (*Protocol) GetSimnetAfHandshakePolymorphism

func (x *Protocol) GetSimnetAfHandshakePolymorphism() bool

func (*Protocol) GetSimnetAfMagicMode

func (x *Protocol) GetSimnetAfMagicMode() string

func (*Protocol) GetSimnetAfPathMode

func (x *Protocol) GetSimnetAfPathMode() string

func (*Protocol) GetSimnetAfPathPrefix

func (x *Protocol) GetSimnetAfPathPrefix() string

func (*Protocol) GetSimnetAfPathSuffix

func (x *Protocol) GetSimnetAfPathSuffix() string

func (*Protocol) GetSimnetAfResponseJitterMs

func (x *Protocol) GetSimnetAfResponseJitterMs() int32

func (*Protocol) GetSimnetAfSettingsJitter

func (x *Protocol) GetSimnetAfSettingsJitter() bool

func (*Protocol) GetSimnetCarrier

func (x *Protocol) GetSimnetCarrier() string

func (*Protocol) GetSimnetClientMaxConcurrentStreams added in v1.0.8

func (x *Protocol) GetSimnetClientMaxConcurrentStreams() int32

func (*Protocol) GetSimnetClientMaxStreamsPerSession added in v1.0.8

func (x *Protocol) GetSimnetClientMaxStreamsPerSession() int32

func (*Protocol) GetSimnetClientMaxUdpSessions added in v1.0.8

func (x *Protocol) GetSimnetClientMaxUdpSessions() int32

func (*Protocol) GetSimnetClientSessionIdleTimeoutSecs added in v1.0.8

func (x *Protocol) GetSimnetClientSessionIdleTimeoutSecs() int32

func (*Protocol) GetSimnetEgressBlockLinkLocal added in v1.0.8

func (x *Protocol) GetSimnetEgressBlockLinkLocal() bool

func (*Protocol) GetSimnetEgressBlockLoopback added in v1.0.8

func (x *Protocol) GetSimnetEgressBlockLoopback() bool

func (*Protocol) GetSimnetEgressBlockMetadata added in v1.0.8

func (x *Protocol) GetSimnetEgressBlockMetadata() bool

func (*Protocol) GetSimnetEgressBlockPrivate added in v1.0.8

func (x *Protocol) GetSimnetEgressBlockPrivate() bool

func (*Protocol) GetSimnetFallbackEnabled

func (x *Protocol) GetSimnetFallbackEnabled() bool

func (*Protocol) GetSimnetFallbackHostHeader

func (x *Protocol) GetSimnetFallbackHostHeader() string

func (*Protocol) GetSimnetFallbackTargetHost

func (x *Protocol) GetSimnetFallbackTargetHost() string

func (*Protocol) GetSimnetFallbackTargetPort

func (x *Protocol) GetSimnetFallbackTargetPort() int32

func (*Protocol) GetSimnetFallbackTargetScheme

func (x *Protocol) GetSimnetFallbackTargetScheme() string

func (*Protocol) GetSimnetFallbackTlsSni

func (x *Protocol) GetSimnetFallbackTlsSni() string

func (*Protocol) GetSimnetInboundMaxHandlerTasksPerSession added in v1.0.8

func (x *Protocol) GetSimnetInboundMaxHandlerTasksPerSession() int32

func (*Protocol) GetSimnetInboundMaxStreamsPerSession added in v1.0.8

func (x *Protocol) GetSimnetInboundMaxStreamsPerSession() int32

func (*Protocol) GetSimnetInboundMaxUdpStreamsPerSession added in v1.0.8

func (x *Protocol) GetSimnetInboundMaxUdpStreamsPerSession() int32

func (*Protocol) GetSimnetInitialWindowSize added in v1.0.8

func (x *Protocol) GetSimnetInitialWindowSize() int32

func (*Protocol) GetSimnetKeyId

func (x *Protocol) GetSimnetKeyId() int32

func (*Protocol) GetSimnetMaxConcurrentStreams added in v1.0.8

func (x *Protocol) GetSimnetMaxConcurrentStreams() int32

func (*Protocol) GetSimnetMaxFrameSize added in v1.0.8

func (x *Protocol) GetSimnetMaxFrameSize() int32

func (*Protocol) GetSimnetPath

func (x *Protocol) GetSimnetPath() string

func (*Protocol) GetSimnetPsk

func (x *Protocol) GetSimnetPsk() string

func (*Protocol) GetSimnetRecvWindow added in v1.0.8

func (x *Protocol) GetSimnetRecvWindow() int32

func (*Protocol) GetSimnetReverseEnabled

func (x *Protocol) GetSimnetReverseEnabled() bool

func (*Protocol) GetSimnetReverseListenAddr

func (x *Protocol) GetSimnetReverseListenAddr() string

func (*Protocol) GetSimnetReverseListenPort

func (x *Protocol) GetSimnetReverseListenPort() int32

func (*Protocol) GetSimnetReverseTargetHost

func (x *Protocol) GetSimnetReverseTargetHost() string

func (*Protocol) GetSimnetReverseTargetPort

func (x *Protocol) GetSimnetReverseTargetPort() int32

func (*Protocol) GetSimnetSendWindow added in v1.0.8

func (x *Protocol) GetSimnetSendWindow() int32

func (*Protocol) GetSimnetStreamDataChannelCapacity added in v1.0.8

func (x *Protocol) GetSimnetStreamDataChannelCapacity() int32

func (*Protocol) GetSimnetStreamEventChannelCapacity added in v1.0.8

func (x *Protocol) GetSimnetStreamEventChannelCapacity() int32

func (*Protocol) GetSimnetTargetDialTimeoutMs added in v1.0.8

func (x *Protocol) GetSimnetTargetDialTimeoutMs() int32

func (*Protocol) GetSimnetTargetMaxConcurrentDials added in v1.0.8

func (x *Protocol) GetSimnetTargetMaxConcurrentDials() int32

func (*Protocol) GetSimnetTicketId

func (x *Protocol) GetSimnetTicketId() string

func (*Protocol) GetSni

func (x *Protocol) GetSni() string

func (*Protocol) GetTransport

func (x *Protocol) GetTransport() string

func (*Protocol) GetType

func (x *Protocol) GetType() string

func (*Protocol) GetUdpRelayMode

func (x *Protocol) GetUdpRelayMode() string

func (*Protocol) GetUpMbps

func (x *Protocol) GetUpMbps() int32

func (*Protocol) GetXhttpExtra

func (x *Protocol) GetXhttpExtra() string

func (*Protocol) GetXhttpMode

func (x *Protocol) GetXhttpMode() string

func (*Protocol) ProtoMessage

func (*Protocol) ProtoMessage()

func (*Protocol) ProtoReflect

func (x *Protocol) ProtoReflect() protoreflect.Message

func (*Protocol) Reset

func (x *Protocol) Reset()

func (*Protocol) String

func (x *Protocol) String() string

func (*Protocol) Validate

func (m *Protocol) Validate() error

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

func (m *Protocol) ValidateAll() error

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

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

Cause function returns cause value.

func (PushOnlineUsersReplyValidationError) Error

Error satisfies the builtin error interface

func (PushOnlineUsersReplyValidationError) ErrorName

ErrorName returns error name.

func (PushOnlineUsersReplyValidationError) Field

Field function returns field value.

func (PushOnlineUsersReplyValidationError) Key

Key function returns key value.

func (PushOnlineUsersReplyValidationError) Reason

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

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

Cause function returns cause value.

func (PushOnlineUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (PushOnlineUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (PushOnlineUsersRequestValidationError) Field

Field function returns field value.

func (PushOnlineUsersRequestValidationError) Key

Key function returns key value.

func (PushOnlineUsersRequestValidationError) Reason

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

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

Cause function returns cause value.

func (PushServerStatusReplyValidationError) Error

Error satisfies the builtin error interface

func (PushServerStatusReplyValidationError) ErrorName

ErrorName returns error name.

func (PushServerStatusReplyValidationError) Field

Field function returns field value.

func (PushServerStatusReplyValidationError) Key

Key function returns key value.

func (PushServerStatusReplyValidationError) Reason

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

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

Cause function returns cause value.

func (PushServerStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (PushServerStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (PushServerStatusRequestValidationError) Field

Field function returns field value.

func (PushServerStatusRequestValidationError) Key

Key function returns key value.

func (PushServerStatusRequestValidationError) Reason

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

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

Cause function returns cause value.

func (PushUserTrafficReplyValidationError) Error

Error satisfies the builtin error interface

func (PushUserTrafficReplyValidationError) ErrorName

ErrorName returns error name.

func (PushUserTrafficReplyValidationError) Field

Field function returns field value.

func (PushUserTrafficReplyValidationError) Key

Key function returns key value.

func (PushUserTrafficReplyValidationError) Reason

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

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

Cause function returns cause value.

func (PushUserTrafficRequestValidationError) Error

Error satisfies the builtin error interface

func (PushUserTrafficRequestValidationError) ErrorName

ErrorName returns error name.

func (PushUserTrafficRequestValidationError) Field

Field function returns field value.

func (PushUserTrafficRequestValidationError) Key

Key function returns key value.

func (PushUserTrafficRequestValidationError) Reason

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 (*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 (*QueryServerProtocolConfigReply) Reset

func (x *QueryServerProtocolConfigReply) Reset()

func (*QueryServerProtocolConfigReply) 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

AllErrors returns a list of validation violation errors.

func (QueryServerProtocolConfigReplyMultiError) Error

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

Cause function returns cause value.

func (QueryServerProtocolConfigReplyValidationError) Error

Error satisfies the builtin error interface

func (QueryServerProtocolConfigReplyValidationError) ErrorName

ErrorName returns error name.

func (QueryServerProtocolConfigReplyValidationError) Field

Field function returns field value.

func (QueryServerProtocolConfigReplyValidationError) Key

Key function returns key value.

func (QueryServerProtocolConfigReplyValidationError) Reason

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 (*QueryServerProtocolConfigRequest) Reset

func (*QueryServerProtocolConfigRequest) String

func (*QueryServerProtocolConfigRequest) Validate

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

AllErrors returns a list of validation violation errors.

func (QueryServerProtocolConfigRequestMultiError) Error

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

Cause function returns cause value.

func (QueryServerProtocolConfigRequestValidationError) Error

Error satisfies the builtin error interface

func (QueryServerProtocolConfigRequestValidationError) ErrorName

ErrorName returns error name.

func (QueryServerProtocolConfigRequestValidationError) Field

Field function returns field value.

func (QueryServerProtocolConfigRequestValidationError) Key

Key function returns key value.

func (QueryServerProtocolConfigRequestValidationError) Reason

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

Cause function returns cause value.

func (ServerBasicValidationError) Error

Error satisfies the builtin error interface

func (ServerBasicValidationError) ErrorName

func (e ServerBasicValidationError) ErrorName() string

ErrorName returns error name.

func (ServerBasicValidationError) Field

Field function returns field value.

func (ServerBasicValidationError) Key

Key function returns key value.

func (ServerBasicValidationError) Reason

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

GetServerConfig GetServerConfig 获取服务器配置

func (*ServerHTTPClientImpl) GetServerUserList

GetServerUserList GetServerUserList 获取用户列表

func (*ServerHTTPClientImpl) PushOnlineUsers

PushOnlineUsers PushOnlineUsers 推送在线用户

func (*ServerHTTPClientImpl) PushServerStatus

PushServerStatus PushServerStatus 推送服务器状态

func (*ServerHTTPClientImpl) PushUserTraffic

PushUserTraffic PushUserTraffic 推送用户流量

func (*ServerHTTPClientImpl) QueryServerProtocolConfig

QueryServerProtocolConfig QueryServerProtocolConfig 查询服务器协议配置

func (*ServerHTTPClientImpl) SessionCheck

SessionCheck SessionCheck 会话准入检查

func (*ServerHTTPClientImpl) SessionRelease

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

Error satisfies the builtin error interface

func (ServerUserValidationError) ErrorName

func (e ServerUserValidationError) ErrorName() string

ErrorName returns error name.

func (ServerUserValidationError) Field

Field function returns field value.

func (ServerUserValidationError) Key

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

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

Cause function returns cause value.

func (SessionCheckRequestValidationError) Error

Error satisfies the builtin error interface

func (SessionCheckRequestValidationError) ErrorName

ErrorName returns error name.

func (SessionCheckRequestValidationError) Field

Field function returns field value.

func (SessionCheckRequestValidationError) Key

Key function returns key value.

func (SessionCheckRequestValidationError) Reason

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

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

Cause function returns cause value.

func (SessionCheckResponseValidationError) Error

Error satisfies the builtin error interface

func (SessionCheckResponseValidationError) ErrorName

ErrorName returns error name.

func (SessionCheckResponseValidationError) Field

Field function returns field value.

func (SessionCheckResponseValidationError) Key

Key function returns key value.

func (SessionCheckResponseValidationError) Reason

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

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

Cause function returns cause value.

func (SessionReleaseRequestValidationError) Error

Error satisfies the builtin error interface

func (SessionReleaseRequestValidationError) ErrorName

ErrorName returns error name.

func (SessionReleaseRequestValidationError) Field

Field function returns field value.

func (SessionReleaseRequestValidationError) Key

Key function returns key value.

func (SessionReleaseRequestValidationError) Reason

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

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

Cause function returns cause value.

func (SessionReleaseResponseValidationError) Error

Error satisfies the builtin error interface

func (SessionReleaseResponseValidationError) ErrorName

ErrorName returns error name.

func (SessionReleaseResponseValidationError) Field

Field function returns field value.

func (SessionReleaseResponseValidationError) Key

Key function returns key value.

func (SessionReleaseResponseValidationError) Reason

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) GetServerUserList

func (UnimplementedServerServer) PushOnlineUsers

func (UnimplementedServerServer) PushServerStatus

func (UnimplementedServerServer) PushUserTraffic

func (UnimplementedServerServer) SessionCheck

func (UnimplementedServerServer) SessionRelease

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

Cause function returns cause value.

func (UserTrafficValidationError) Error

Error satisfies the builtin error interface

func (UserTrafficValidationError) ErrorName

func (e UserTrafficValidationError) ErrorName() string

ErrorName returns error name.

func (UserTrafficValidationError) Field

Field function returns field value.

func (UserTrafficValidationError) Key

Key function returns key value.

func (UserTrafficValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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