Documentation ¶
Index ¶
- Variables
- func RegisterCenterServiceServer(s grpc.ServiceRegistrar, srv CenterServiceServer)
- func RegisterDirectNetServiceServer(s grpc.ServiceRegistrar, srv DirectNetServiceServer)
- type CenterRequest
- func (*CenterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CenterRequest) GetData() []byte
- func (x *CenterRequest) GetHello() *HelloServer
- func (m *CenterRequest) GetReq() isCenterRequest_Req
- func (*CenterRequest) ProtoMessage()
- func (x *CenterRequest) ProtoReflect() protoreflect.Message
- func (x *CenterRequest) Reset()
- func (x *CenterRequest) String() string
- func (m *CenterRequest) Validate() error
- func (m *CenterRequest) ValidateAll() error
- type CenterRequestMultiError
- type CenterRequestValidationError
- func (e CenterRequestValidationError) Cause() error
- func (e CenterRequestValidationError) Error() string
- func (e CenterRequestValidationError) ErrorName() string
- func (e CenterRequestValidationError) Field() string
- func (e CenterRequestValidationError) Key() bool
- func (e CenterRequestValidationError) Reason() string
- type CenterRequest_Data
- type CenterRequest_Hello
- type CenterResponse
- func (*CenterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CenterResponse) GetData() []byte
- func (x *CenterResponse) GetHello() *HelloClient
- func (m *CenterResponse) GetResp() isCenterResponse_Resp
- func (*CenterResponse) ProtoMessage()
- func (x *CenterResponse) ProtoReflect() protoreflect.Message
- func (x *CenterResponse) Reset()
- func (x *CenterResponse) String() string
- func (m *CenterResponse) Validate() error
- func (m *CenterResponse) ValidateAll() error
- type CenterResponseMultiError
- type CenterResponseValidationError
- func (e CenterResponseValidationError) Cause() error
- func (e CenterResponseValidationError) Error() string
- func (e CenterResponseValidationError) ErrorName() string
- func (e CenterResponseValidationError) Field() string
- func (e CenterResponseValidationError) Key() bool
- func (e CenterResponseValidationError) Reason() string
- type CenterResponse_Data
- type CenterResponse_Hello
- type CenterServiceClient
- type CenterServiceServer
- type CenterService_ChannelClient
- type CenterService_ChannelServer
- type DirectNetHelloClient
- func (*DirectNetHelloClient) Descriptor() ([]byte, []int)deprecated
- func (*DirectNetHelloClient) ProtoMessage()
- func (x *DirectNetHelloClient) ProtoReflect() protoreflect.Message
- func (x *DirectNetHelloClient) Reset()
- func (x *DirectNetHelloClient) String() string
- func (m *DirectNetHelloClient) Validate() error
- func (m *DirectNetHelloClient) ValidateAll() error
- type DirectNetHelloClientMultiError
- type DirectNetHelloClientValidationError
- func (e DirectNetHelloClientValidationError) Cause() error
- func (e DirectNetHelloClientValidationError) Error() string
- func (e DirectNetHelloClientValidationError) ErrorName() string
- func (e DirectNetHelloClientValidationError) Field() string
- func (e DirectNetHelloClientValidationError) Key() bool
- func (e DirectNetHelloClientValidationError) Reason() string
- type DirectNetHelloServer
- func (*DirectNetHelloServer) Descriptor() ([]byte, []int)deprecated
- func (x *DirectNetHelloServer) GetKey() string
- func (*DirectNetHelloServer) ProtoMessage()
- func (x *DirectNetHelloServer) ProtoReflect() protoreflect.Message
- func (x *DirectNetHelloServer) Reset()
- func (x *DirectNetHelloServer) String() string
- func (m *DirectNetHelloServer) Validate() error
- func (m *DirectNetHelloServer) ValidateAll() error
- type DirectNetHelloServerMultiError
- type DirectNetHelloServerValidationError
- func (e DirectNetHelloServerValidationError) Cause() error
- func (e DirectNetHelloServerValidationError) Error() string
- func (e DirectNetHelloServerValidationError) ErrorName() string
- func (e DirectNetHelloServerValidationError) Field() string
- func (e DirectNetHelloServerValidationError) Key() bool
- func (e DirectNetHelloServerValidationError) Reason() string
- type DirectNetRequest
- func (*DirectNetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DirectNetRequest) GetData() []byte
- func (x *DirectNetRequest) GetHello() *DirectNetHelloServer
- func (m *DirectNetRequest) GetReq() isDirectNetRequest_Req
- func (*DirectNetRequest) ProtoMessage()
- func (x *DirectNetRequest) ProtoReflect() protoreflect.Message
- func (x *DirectNetRequest) Reset()
- func (x *DirectNetRequest) String() string
- func (m *DirectNetRequest) Validate() error
- func (m *DirectNetRequest) ValidateAll() error
- type DirectNetRequestMultiError
- type DirectNetRequestValidationError
- func (e DirectNetRequestValidationError) Cause() error
- func (e DirectNetRequestValidationError) Error() string
- func (e DirectNetRequestValidationError) ErrorName() string
- func (e DirectNetRequestValidationError) Field() string
- func (e DirectNetRequestValidationError) Key() bool
- func (e DirectNetRequestValidationError) Reason() string
- type DirectNetRequest_Data
- type DirectNetRequest_Hello
- type DirectNetResponse
- func (*DirectNetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DirectNetResponse) GetData() []byte
- func (x *DirectNetResponse) GetHello() *DirectNetHelloClient
- func (m *DirectNetResponse) GetResp() isDirectNetResponse_Resp
- func (*DirectNetResponse) ProtoMessage()
- func (x *DirectNetResponse) ProtoReflect() protoreflect.Message
- func (x *DirectNetResponse) Reset()
- func (x *DirectNetResponse) String() string
- func (m *DirectNetResponse) Validate() error
- func (m *DirectNetResponse) ValidateAll() error
- type DirectNetResponseMultiError
- type DirectNetResponseValidationError
- func (e DirectNetResponseValidationError) Cause() error
- func (e DirectNetResponseValidationError) Error() string
- func (e DirectNetResponseValidationError) ErrorName() string
- func (e DirectNetResponseValidationError) Field() string
- func (e DirectNetResponseValidationError) Key() bool
- func (e DirectNetResponseValidationError) Reason() string
- type DirectNetResponse_Data
- type DirectNetResponse_Hello
- type DirectNetServiceClient
- type DirectNetServiceServer
- type DirectNetService_ChannelClient
- type DirectNetService_ChannelServer
- type HelloClient
- func (*HelloClient) Descriptor() ([]byte, []int)deprecated
- func (x *HelloClient) GetClientIps() map[string]*StringList
- func (x *HelloClient) GetClients() map[string]string
- func (x *HelloClient) GetVpn() string
- func (*HelloClient) ProtoMessage()
- func (x *HelloClient) ProtoReflect() protoreflect.Message
- func (x *HelloClient) Reset()
- func (x *HelloClient) String() string
- func (m *HelloClient) Validate() error
- func (m *HelloClient) ValidateAll() error
- type HelloClientMultiError
- type HelloClientValidationError
- func (e HelloClientValidationError) Cause() error
- func (e HelloClientValidationError) Error() string
- func (e HelloClientValidationError) ErrorName() string
- func (e HelloClientValidationError) Field() string
- func (e HelloClientValidationError) Key() bool
- func (e HelloClientValidationError) Reason() string
- type HelloServer
- func (*HelloServer) Descriptor() ([]byte, []int)deprecated
- func (x *HelloServer) GetKey() string
- func (x *HelloServer) GetMyEncodedAddress() string
- func (x *HelloServer) GetMyIps() []string
- func (*HelloServer) ProtoMessage()
- func (x *HelloServer) ProtoReflect() protoreflect.Message
- func (x *HelloServer) Reset()
- func (x *HelloServer) String() string
- func (m *HelloServer) Validate() error
- func (m *HelloServer) ValidateAll() error
- type HelloServerMultiError
- type HelloServerValidationError
- func (e HelloServerValidationError) Cause() error
- func (e HelloServerValidationError) Error() string
- func (e HelloServerValidationError) ErrorName() string
- func (e HelloServerValidationError) Field() string
- func (e HelloServerValidationError) Key() bool
- func (e HelloServerValidationError) Reason() string
- type StringList
- func (*StringList) Descriptor() ([]byte, []int)deprecated
- func (x *StringList) GetStrings() []string
- func (*StringList) ProtoMessage()
- func (x *StringList) ProtoReflect() protoreflect.Message
- func (x *StringList) Reset()
- func (x *StringList) String() string
- func (m *StringList) Validate() error
- func (m *StringList) ValidateAll() error
- type StringListMultiError
- type StringListValidationError
- type UnimplementedCenterServiceServer
- type UnimplementedDirectNetServiceServer
- type UnsafeCenterServiceServer
- type UnsafeDirectNetServiceServer
Constants ¶
This section is empty.
Variables ¶
var CenterService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "lannet.api.CenterService", HandlerType: (*CenterServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Channel", Handler: _CenterService_Channel_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "lannet/channel.proto", }
CenterService_ServiceDesc is the grpc.ServiceDesc for CenterService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var DirectNetService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "lannet.api.DirectNetService", HandlerType: (*DirectNetServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Channel", Handler: _DirectNetService_Channel_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "lannet/channel.proto", }
DirectNetService_ServiceDesc is the grpc.ServiceDesc for DirectNetService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_lannet_channel_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCenterServiceServer ¶
func RegisterCenterServiceServer(s grpc.ServiceRegistrar, srv CenterServiceServer)
func RegisterDirectNetServiceServer ¶
func RegisterDirectNetServiceServer(s grpc.ServiceRegistrar, srv DirectNetServiceServer)
Types ¶
type CenterRequest ¶
type CenterRequest struct { // Types that are assignable to Req: // // *CenterRequest_Hello // *CenterRequest_Data Req isCenterRequest_Req `protobuf_oneof:"Req"` // contains filtered or unexported fields }
func (*CenterRequest) Descriptor
deprecated
func (*CenterRequest) Descriptor() ([]byte, []int)
Deprecated: Use CenterRequest.ProtoReflect.Descriptor instead.
func (*CenterRequest) GetData ¶
func (x *CenterRequest) GetData() []byte
func (*CenterRequest) GetHello ¶
func (x *CenterRequest) GetHello() *HelloServer
func (*CenterRequest) GetReq ¶
func (m *CenterRequest) GetReq() isCenterRequest_Req
func (*CenterRequest) ProtoMessage ¶
func (*CenterRequest) ProtoMessage()
func (*CenterRequest) ProtoReflect ¶
func (x *CenterRequest) ProtoReflect() protoreflect.Message
func (*CenterRequest) Reset ¶
func (x *CenterRequest) Reset()
func (*CenterRequest) String ¶
func (x *CenterRequest) String() string
func (*CenterRequest) Validate ¶
func (m *CenterRequest) Validate() error
Validate checks the field values on CenterRequest 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 (*CenterRequest) ValidateAll ¶
func (m *CenterRequest) ValidateAll() error
ValidateAll checks the field values on CenterRequest 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 CenterRequestMultiError, or nil if none found.
type CenterRequestMultiError ¶
type CenterRequestMultiError []error
CenterRequestMultiError is an error wrapping multiple validation errors returned by CenterRequest.ValidateAll() if the designated constraints aren't met.
func (CenterRequestMultiError) AllErrors ¶
func (m CenterRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CenterRequestMultiError) Error ¶
func (m CenterRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CenterRequestValidationError ¶
type CenterRequestValidationError struct {
// contains filtered or unexported fields
}
CenterRequestValidationError is the validation error returned by CenterRequest.Validate if the designated constraints aren't met.
func (CenterRequestValidationError) Cause ¶
func (e CenterRequestValidationError) Cause() error
Cause function returns cause value.
func (CenterRequestValidationError) Error ¶
func (e CenterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CenterRequestValidationError) ErrorName ¶
func (e CenterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CenterRequestValidationError) Field ¶
func (e CenterRequestValidationError) Field() string
Field function returns field value.
func (CenterRequestValidationError) Key ¶
func (e CenterRequestValidationError) Key() bool
Key function returns key value.
func (CenterRequestValidationError) Reason ¶
func (e CenterRequestValidationError) Reason() string
Reason function returns reason value.
type CenterRequest_Data ¶
type CenterRequest_Data struct {
Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}
type CenterRequest_Hello ¶
type CenterRequest_Hello struct {
Hello *HelloServer `protobuf:"bytes,1,opt,name=hello,proto3,oneof"`
}
type CenterResponse ¶
type CenterResponse struct { // Types that are assignable to Resp: // // *CenterResponse_Hello // *CenterResponse_Data Resp isCenterResponse_Resp `protobuf_oneof:"Resp"` // contains filtered or unexported fields }
func (*CenterResponse) Descriptor
deprecated
func (*CenterResponse) Descriptor() ([]byte, []int)
Deprecated: Use CenterResponse.ProtoReflect.Descriptor instead.
func (*CenterResponse) GetData ¶
func (x *CenterResponse) GetData() []byte
func (*CenterResponse) GetHello ¶
func (x *CenterResponse) GetHello() *HelloClient
func (*CenterResponse) GetResp ¶
func (m *CenterResponse) GetResp() isCenterResponse_Resp
func (*CenterResponse) ProtoMessage ¶
func (*CenterResponse) ProtoMessage()
func (*CenterResponse) ProtoReflect ¶
func (x *CenterResponse) ProtoReflect() protoreflect.Message
func (*CenterResponse) Reset ¶
func (x *CenterResponse) Reset()
func (*CenterResponse) String ¶
func (x *CenterResponse) String() string
func (*CenterResponse) Validate ¶
func (m *CenterResponse) Validate() error
Validate checks the field values on CenterResponse 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 (*CenterResponse) ValidateAll ¶
func (m *CenterResponse) ValidateAll() error
ValidateAll checks the field values on CenterResponse 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 CenterResponseMultiError, or nil if none found.
type CenterResponseMultiError ¶
type CenterResponseMultiError []error
CenterResponseMultiError is an error wrapping multiple validation errors returned by CenterResponse.ValidateAll() if the designated constraints aren't met.
func (CenterResponseMultiError) AllErrors ¶
func (m CenterResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CenterResponseMultiError) Error ¶
func (m CenterResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CenterResponseValidationError ¶
type CenterResponseValidationError struct {
// contains filtered or unexported fields
}
CenterResponseValidationError is the validation error returned by CenterResponse.Validate if the designated constraints aren't met.
func (CenterResponseValidationError) Cause ¶
func (e CenterResponseValidationError) Cause() error
Cause function returns cause value.
func (CenterResponseValidationError) Error ¶
func (e CenterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CenterResponseValidationError) ErrorName ¶
func (e CenterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CenterResponseValidationError) Field ¶
func (e CenterResponseValidationError) Field() string
Field function returns field value.
func (CenterResponseValidationError) Key ¶
func (e CenterResponseValidationError) Key() bool
Key function returns key value.
func (CenterResponseValidationError) Reason ¶
func (e CenterResponseValidationError) Reason() string
Reason function returns reason value.
type CenterResponse_Data ¶
type CenterResponse_Data struct {
Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}
type CenterResponse_Hello ¶
type CenterResponse_Hello struct {
Hello *HelloClient `protobuf:"bytes,1,opt,name=hello,proto3,oneof"`
}
type CenterServiceClient ¶
type CenterServiceClient interface {
Channel(ctx context.Context, opts ...grpc.CallOption) (CenterService_ChannelClient, error)
}
CenterServiceClient is the client API for CenterService 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.
func NewCenterServiceClient ¶
func NewCenterServiceClient(cc grpc.ClientConnInterface) CenterServiceClient
type CenterServiceServer ¶
type CenterServiceServer interface { Channel(CenterService_ChannelServer) error // contains filtered or unexported methods }
CenterServiceServer is the server API for CenterService service. All implementations must embed UnimplementedCenterServiceServer for forward compatibility
type CenterService_ChannelClient ¶
type CenterService_ChannelClient interface { Send(*CenterRequest) error Recv() (*CenterResponse, error) grpc.ClientStream }
type CenterService_ChannelServer ¶
type CenterService_ChannelServer interface { Send(*CenterResponse) error Recv() (*CenterRequest, error) grpc.ServerStream }
type DirectNetHelloClient ¶
type DirectNetHelloClient struct {
// contains filtered or unexported fields
}
func (*DirectNetHelloClient) Descriptor
deprecated
func (*DirectNetHelloClient) Descriptor() ([]byte, []int)
Deprecated: Use DirectNetHelloClient.ProtoReflect.Descriptor instead.
func (*DirectNetHelloClient) ProtoMessage ¶
func (*DirectNetHelloClient) ProtoMessage()
func (*DirectNetHelloClient) ProtoReflect ¶
func (x *DirectNetHelloClient) ProtoReflect() protoreflect.Message
func (*DirectNetHelloClient) Reset ¶
func (x *DirectNetHelloClient) Reset()
func (*DirectNetHelloClient) String ¶
func (x *DirectNetHelloClient) String() string
func (*DirectNetHelloClient) Validate ¶
func (m *DirectNetHelloClient) Validate() error
Validate checks the field values on DirectNetHelloClient 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 (*DirectNetHelloClient) ValidateAll ¶
func (m *DirectNetHelloClient) ValidateAll() error
ValidateAll checks the field values on DirectNetHelloClient 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 DirectNetHelloClientMultiError, or nil if none found.
type DirectNetHelloClientMultiError ¶
type DirectNetHelloClientMultiError []error
DirectNetHelloClientMultiError is an error wrapping multiple validation errors returned by DirectNetHelloClient.ValidateAll() if the designated constraints aren't met.
func (DirectNetHelloClientMultiError) AllErrors ¶
func (m DirectNetHelloClientMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DirectNetHelloClientMultiError) Error ¶
func (m DirectNetHelloClientMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DirectNetHelloClientValidationError ¶
type DirectNetHelloClientValidationError struct {
// contains filtered or unexported fields
}
DirectNetHelloClientValidationError is the validation error returned by DirectNetHelloClient.Validate if the designated constraints aren't met.
func (DirectNetHelloClientValidationError) Cause ¶
func (e DirectNetHelloClientValidationError) Cause() error
Cause function returns cause value.
func (DirectNetHelloClientValidationError) Error ¶
func (e DirectNetHelloClientValidationError) Error() string
Error satisfies the builtin error interface
func (DirectNetHelloClientValidationError) ErrorName ¶
func (e DirectNetHelloClientValidationError) ErrorName() string
ErrorName returns error name.
func (DirectNetHelloClientValidationError) Field ¶
func (e DirectNetHelloClientValidationError) Field() string
Field function returns field value.
func (DirectNetHelloClientValidationError) Key ¶
func (e DirectNetHelloClientValidationError) Key() bool
Key function returns key value.
func (DirectNetHelloClientValidationError) Reason ¶
func (e DirectNetHelloClientValidationError) Reason() string
Reason function returns reason value.
type DirectNetHelloServer ¶
type DirectNetHelloServer struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DirectNetHelloServer) Descriptor
deprecated
func (*DirectNetHelloServer) Descriptor() ([]byte, []int)
Deprecated: Use DirectNetHelloServer.ProtoReflect.Descriptor instead.
func (*DirectNetHelloServer) GetKey ¶
func (x *DirectNetHelloServer) GetKey() string
func (*DirectNetHelloServer) ProtoMessage ¶
func (*DirectNetHelloServer) ProtoMessage()
func (*DirectNetHelloServer) ProtoReflect ¶
func (x *DirectNetHelloServer) ProtoReflect() protoreflect.Message
func (*DirectNetHelloServer) Reset ¶
func (x *DirectNetHelloServer) Reset()
func (*DirectNetHelloServer) String ¶
func (x *DirectNetHelloServer) String() string
func (*DirectNetHelloServer) Validate ¶
func (m *DirectNetHelloServer) Validate() error
Validate checks the field values on DirectNetHelloServer 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 (*DirectNetHelloServer) ValidateAll ¶
func (m *DirectNetHelloServer) ValidateAll() error
ValidateAll checks the field values on DirectNetHelloServer 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 DirectNetHelloServerMultiError, or nil if none found.
type DirectNetHelloServerMultiError ¶
type DirectNetHelloServerMultiError []error
DirectNetHelloServerMultiError is an error wrapping multiple validation errors returned by DirectNetHelloServer.ValidateAll() if the designated constraints aren't met.
func (DirectNetHelloServerMultiError) AllErrors ¶
func (m DirectNetHelloServerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DirectNetHelloServerMultiError) Error ¶
func (m DirectNetHelloServerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DirectNetHelloServerValidationError ¶
type DirectNetHelloServerValidationError struct {
// contains filtered or unexported fields
}
DirectNetHelloServerValidationError is the validation error returned by DirectNetHelloServer.Validate if the designated constraints aren't met.
func (DirectNetHelloServerValidationError) Cause ¶
func (e DirectNetHelloServerValidationError) Cause() error
Cause function returns cause value.
func (DirectNetHelloServerValidationError) Error ¶
func (e DirectNetHelloServerValidationError) Error() string
Error satisfies the builtin error interface
func (DirectNetHelloServerValidationError) ErrorName ¶
func (e DirectNetHelloServerValidationError) ErrorName() string
ErrorName returns error name.
func (DirectNetHelloServerValidationError) Field ¶
func (e DirectNetHelloServerValidationError) Field() string
Field function returns field value.
func (DirectNetHelloServerValidationError) Key ¶
func (e DirectNetHelloServerValidationError) Key() bool
Key function returns key value.
func (DirectNetHelloServerValidationError) Reason ¶
func (e DirectNetHelloServerValidationError) Reason() string
Reason function returns reason value.
type DirectNetRequest ¶
type DirectNetRequest struct { // Types that are assignable to Req: // // *DirectNetRequest_Hello // *DirectNetRequest_Data Req isDirectNetRequest_Req `protobuf_oneof:"Req"` // contains filtered or unexported fields }
func (*DirectNetRequest) Descriptor
deprecated
func (*DirectNetRequest) Descriptor() ([]byte, []int)
Deprecated: Use DirectNetRequest.ProtoReflect.Descriptor instead.
func (*DirectNetRequest) GetData ¶
func (x *DirectNetRequest) GetData() []byte
func (*DirectNetRequest) GetHello ¶
func (x *DirectNetRequest) GetHello() *DirectNetHelloServer
func (*DirectNetRequest) GetReq ¶
func (m *DirectNetRequest) GetReq() isDirectNetRequest_Req
func (*DirectNetRequest) ProtoMessage ¶
func (*DirectNetRequest) ProtoMessage()
func (*DirectNetRequest) ProtoReflect ¶
func (x *DirectNetRequest) ProtoReflect() protoreflect.Message
func (*DirectNetRequest) Reset ¶
func (x *DirectNetRequest) Reset()
func (*DirectNetRequest) String ¶
func (x *DirectNetRequest) String() string
func (*DirectNetRequest) Validate ¶
func (m *DirectNetRequest) Validate() error
Validate checks the field values on DirectNetRequest 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 (*DirectNetRequest) ValidateAll ¶
func (m *DirectNetRequest) ValidateAll() error
ValidateAll checks the field values on DirectNetRequest 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 DirectNetRequestMultiError, or nil if none found.
type DirectNetRequestMultiError ¶
type DirectNetRequestMultiError []error
DirectNetRequestMultiError is an error wrapping multiple validation errors returned by DirectNetRequest.ValidateAll() if the designated constraints aren't met.
func (DirectNetRequestMultiError) AllErrors ¶
func (m DirectNetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DirectNetRequestMultiError) Error ¶
func (m DirectNetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DirectNetRequestValidationError ¶
type DirectNetRequestValidationError struct {
// contains filtered or unexported fields
}
DirectNetRequestValidationError is the validation error returned by DirectNetRequest.Validate if the designated constraints aren't met.
func (DirectNetRequestValidationError) Cause ¶
func (e DirectNetRequestValidationError) Cause() error
Cause function returns cause value.
func (DirectNetRequestValidationError) Error ¶
func (e DirectNetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DirectNetRequestValidationError) ErrorName ¶
func (e DirectNetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DirectNetRequestValidationError) Field ¶
func (e DirectNetRequestValidationError) Field() string
Field function returns field value.
func (DirectNetRequestValidationError) Key ¶
func (e DirectNetRequestValidationError) Key() bool
Key function returns key value.
func (DirectNetRequestValidationError) Reason ¶
func (e DirectNetRequestValidationError) Reason() string
Reason function returns reason value.
type DirectNetRequest_Data ¶
type DirectNetRequest_Data struct {
Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}
type DirectNetRequest_Hello ¶
type DirectNetRequest_Hello struct {
Hello *DirectNetHelloServer `protobuf:"bytes,1,opt,name=hello,proto3,oneof"`
}
type DirectNetResponse ¶
type DirectNetResponse struct { // Types that are assignable to Resp: // // *DirectNetResponse_Hello // *DirectNetResponse_Data Resp isDirectNetResponse_Resp `protobuf_oneof:"Resp"` // contains filtered or unexported fields }
func (*DirectNetResponse) Descriptor
deprecated
func (*DirectNetResponse) Descriptor() ([]byte, []int)
Deprecated: Use DirectNetResponse.ProtoReflect.Descriptor instead.
func (*DirectNetResponse) GetData ¶
func (x *DirectNetResponse) GetData() []byte
func (*DirectNetResponse) GetHello ¶
func (x *DirectNetResponse) GetHello() *DirectNetHelloClient
func (*DirectNetResponse) GetResp ¶
func (m *DirectNetResponse) GetResp() isDirectNetResponse_Resp
func (*DirectNetResponse) ProtoMessage ¶
func (*DirectNetResponse) ProtoMessage()
func (*DirectNetResponse) ProtoReflect ¶
func (x *DirectNetResponse) ProtoReflect() protoreflect.Message
func (*DirectNetResponse) Reset ¶
func (x *DirectNetResponse) Reset()
func (*DirectNetResponse) String ¶
func (x *DirectNetResponse) String() string
func (*DirectNetResponse) Validate ¶
func (m *DirectNetResponse) Validate() error
Validate checks the field values on DirectNetResponse 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 (*DirectNetResponse) ValidateAll ¶
func (m *DirectNetResponse) ValidateAll() error
ValidateAll checks the field values on DirectNetResponse 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 DirectNetResponseMultiError, or nil if none found.
type DirectNetResponseMultiError ¶
type DirectNetResponseMultiError []error
DirectNetResponseMultiError is an error wrapping multiple validation errors returned by DirectNetResponse.ValidateAll() if the designated constraints aren't met.
func (DirectNetResponseMultiError) AllErrors ¶
func (m DirectNetResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DirectNetResponseMultiError) Error ¶
func (m DirectNetResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DirectNetResponseValidationError ¶
type DirectNetResponseValidationError struct {
// contains filtered or unexported fields
}
DirectNetResponseValidationError is the validation error returned by DirectNetResponse.Validate if the designated constraints aren't met.
func (DirectNetResponseValidationError) Cause ¶
func (e DirectNetResponseValidationError) Cause() error
Cause function returns cause value.
func (DirectNetResponseValidationError) Error ¶
func (e DirectNetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DirectNetResponseValidationError) ErrorName ¶
func (e DirectNetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DirectNetResponseValidationError) Field ¶
func (e DirectNetResponseValidationError) Field() string
Field function returns field value.
func (DirectNetResponseValidationError) Key ¶
func (e DirectNetResponseValidationError) Key() bool
Key function returns key value.
func (DirectNetResponseValidationError) Reason ¶
func (e DirectNetResponseValidationError) Reason() string
Reason function returns reason value.
type DirectNetResponse_Data ¶
type DirectNetResponse_Data struct {
Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}
type DirectNetResponse_Hello ¶
type DirectNetResponse_Hello struct {
Hello *DirectNetHelloClient `protobuf:"bytes,1,opt,name=hello,proto3,oneof"`
}
type DirectNetServiceClient ¶
type DirectNetServiceClient interface {
Channel(ctx context.Context, opts ...grpc.CallOption) (DirectNetService_ChannelClient, error)
}
DirectNetServiceClient is the client API for DirectNetService 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.
func NewDirectNetServiceClient ¶
func NewDirectNetServiceClient(cc grpc.ClientConnInterface) DirectNetServiceClient
type DirectNetServiceServer ¶
type DirectNetServiceServer interface { Channel(DirectNetService_ChannelServer) error // contains filtered or unexported methods }
DirectNetServiceServer is the server API for DirectNetService service. All implementations must embed UnimplementedDirectNetServiceServer for forward compatibility
type DirectNetService_ChannelClient ¶
type DirectNetService_ChannelClient interface { Send(*DirectNetRequest) error Recv() (*DirectNetResponse, error) grpc.ClientStream }
type DirectNetService_ChannelServer ¶
type DirectNetService_ChannelServer interface { Send(*DirectNetResponse) error Recv() (*DirectNetRequest, error) grpc.ServerStream }
type HelloClient ¶
type HelloClient struct { Clients map[string]string `` /* 155-byte string literal not displayed */ ClientIps map[string]*StringList `` /* 176-byte string literal not displayed */ Vpn string `protobuf:"bytes,3,opt,name=vpn,proto3" json:"vpn,omitempty"` // contains filtered or unexported fields }
func (*HelloClient) Descriptor
deprecated
func (*HelloClient) Descriptor() ([]byte, []int)
Deprecated: Use HelloClient.ProtoReflect.Descriptor instead.
func (*HelloClient) GetClientIps ¶
func (x *HelloClient) GetClientIps() map[string]*StringList
func (*HelloClient) GetClients ¶
func (x *HelloClient) GetClients() map[string]string
func (*HelloClient) GetVpn ¶
func (x *HelloClient) GetVpn() string
func (*HelloClient) ProtoMessage ¶
func (*HelloClient) ProtoMessage()
func (*HelloClient) ProtoReflect ¶
func (x *HelloClient) ProtoReflect() protoreflect.Message
func (*HelloClient) Reset ¶
func (x *HelloClient) Reset()
func (*HelloClient) String ¶
func (x *HelloClient) String() string
func (*HelloClient) Validate ¶
func (m *HelloClient) Validate() error
Validate checks the field values on HelloClient 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 (*HelloClient) ValidateAll ¶
func (m *HelloClient) ValidateAll() error
ValidateAll checks the field values on HelloClient 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 HelloClientMultiError, or nil if none found.
type HelloClientMultiError ¶
type HelloClientMultiError []error
HelloClientMultiError is an error wrapping multiple validation errors returned by HelloClient.ValidateAll() if the designated constraints aren't met.
func (HelloClientMultiError) AllErrors ¶
func (m HelloClientMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HelloClientMultiError) Error ¶
func (m HelloClientMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HelloClientValidationError ¶
type HelloClientValidationError struct {
// contains filtered or unexported fields
}
HelloClientValidationError is the validation error returned by HelloClient.Validate if the designated constraints aren't met.
func (HelloClientValidationError) Cause ¶
func (e HelloClientValidationError) Cause() error
Cause function returns cause value.
func (HelloClientValidationError) Error ¶
func (e HelloClientValidationError) Error() string
Error satisfies the builtin error interface
func (HelloClientValidationError) ErrorName ¶
func (e HelloClientValidationError) ErrorName() string
ErrorName returns error name.
func (HelloClientValidationError) Field ¶
func (e HelloClientValidationError) Field() string
Field function returns field value.
func (HelloClientValidationError) Key ¶
func (e HelloClientValidationError) Key() bool
Key function returns key value.
func (HelloClientValidationError) Reason ¶
func (e HelloClientValidationError) Reason() string
Reason function returns reason value.
type HelloServer ¶
type HelloServer struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` MyIps []string `protobuf:"bytes,2,rep,name=my_ips,json=myIps,proto3" json:"my_ips,omitempty"` MyEncodedAddress string `protobuf:"bytes,3,opt,name=my_encoded_address,json=myEncodedAddress,proto3" json:"my_encoded_address,omitempty"` // contains filtered or unexported fields }
func (*HelloServer) Descriptor
deprecated
func (*HelloServer) Descriptor() ([]byte, []int)
Deprecated: Use HelloServer.ProtoReflect.Descriptor instead.
func (*HelloServer) GetKey ¶
func (x *HelloServer) GetKey() string
func (*HelloServer) GetMyEncodedAddress ¶
func (x *HelloServer) GetMyEncodedAddress() string
func (*HelloServer) GetMyIps ¶
func (x *HelloServer) GetMyIps() []string
func (*HelloServer) ProtoMessage ¶
func (*HelloServer) ProtoMessage()
func (*HelloServer) ProtoReflect ¶
func (x *HelloServer) ProtoReflect() protoreflect.Message
func (*HelloServer) Reset ¶
func (x *HelloServer) Reset()
func (*HelloServer) String ¶
func (x *HelloServer) String() string
func (*HelloServer) Validate ¶
func (m *HelloServer) Validate() error
Validate checks the field values on HelloServer 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 (*HelloServer) ValidateAll ¶
func (m *HelloServer) ValidateAll() error
ValidateAll checks the field values on HelloServer 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 HelloServerMultiError, or nil if none found.
type HelloServerMultiError ¶
type HelloServerMultiError []error
HelloServerMultiError is an error wrapping multiple validation errors returned by HelloServer.ValidateAll() if the designated constraints aren't met.
func (HelloServerMultiError) AllErrors ¶
func (m HelloServerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HelloServerMultiError) Error ¶
func (m HelloServerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HelloServerValidationError ¶
type HelloServerValidationError struct {
// contains filtered or unexported fields
}
HelloServerValidationError is the validation error returned by HelloServer.Validate if the designated constraints aren't met.
func (HelloServerValidationError) Cause ¶
func (e HelloServerValidationError) Cause() error
Cause function returns cause value.
func (HelloServerValidationError) Error ¶
func (e HelloServerValidationError) Error() string
Error satisfies the builtin error interface
func (HelloServerValidationError) ErrorName ¶
func (e HelloServerValidationError) ErrorName() string
ErrorName returns error name.
func (HelloServerValidationError) Field ¶
func (e HelloServerValidationError) Field() string
Field function returns field value.
func (HelloServerValidationError) Key ¶
func (e HelloServerValidationError) Key() bool
Key function returns key value.
func (HelloServerValidationError) Reason ¶
func (e HelloServerValidationError) Reason() string
Reason function returns reason value.
type StringList ¶
type StringList struct { Strings []string `protobuf:"bytes,1,rep,name=strings,proto3" json:"strings,omitempty"` // contains filtered or unexported fields }
func (*StringList) Descriptor
deprecated
func (*StringList) Descriptor() ([]byte, []int)
Deprecated: Use StringList.ProtoReflect.Descriptor instead.
func (*StringList) GetStrings ¶
func (x *StringList) GetStrings() []string
func (*StringList) ProtoMessage ¶
func (*StringList) ProtoMessage()
func (*StringList) ProtoReflect ¶
func (x *StringList) ProtoReflect() protoreflect.Message
func (*StringList) Reset ¶
func (x *StringList) Reset()
func (*StringList) String ¶
func (x *StringList) String() string
func (*StringList) Validate ¶
func (m *StringList) Validate() error
Validate checks the field values on StringList 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 (*StringList) ValidateAll ¶
func (m *StringList) ValidateAll() error
ValidateAll checks the field values on StringList 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 StringListMultiError, or nil if none found.
type StringListMultiError ¶
type StringListMultiError []error
StringListMultiError is an error wrapping multiple validation errors returned by StringList.ValidateAll() if the designated constraints aren't met.
func (StringListMultiError) AllErrors ¶
func (m StringListMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StringListMultiError) Error ¶
func (m StringListMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StringListValidationError ¶
type StringListValidationError struct {
// contains filtered or unexported fields
}
StringListValidationError is the validation error returned by StringList.Validate if the designated constraints aren't met.
func (StringListValidationError) Cause ¶
func (e StringListValidationError) Cause() error
Cause function returns cause value.
func (StringListValidationError) Error ¶
func (e StringListValidationError) Error() string
Error satisfies the builtin error interface
func (StringListValidationError) ErrorName ¶
func (e StringListValidationError) ErrorName() string
ErrorName returns error name.
func (StringListValidationError) Field ¶
func (e StringListValidationError) Field() string
Field function returns field value.
func (StringListValidationError) Key ¶
func (e StringListValidationError) Key() bool
Key function returns key value.
func (StringListValidationError) Reason ¶
func (e StringListValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCenterServiceServer ¶
type UnimplementedCenterServiceServer struct { }
UnimplementedCenterServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCenterServiceServer) Channel ¶
func (UnimplementedCenterServiceServer) Channel(CenterService_ChannelServer) error
type UnimplementedDirectNetServiceServer ¶
type UnimplementedDirectNetServiceServer struct { }
UnimplementedDirectNetServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDirectNetServiceServer) Channel ¶
func (UnimplementedDirectNetServiceServer) Channel(DirectNetService_ChannelServer) error
type UnsafeCenterServiceServer ¶
type UnsafeCenterServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCenterServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CenterServiceServer will result in compilation errors.
type UnsafeDirectNetServiceServer ¶
type UnsafeDirectNetServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDirectNetServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DirectNetServiceServer will result in compilation errors.