lannetpb

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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)

View Source
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

Cause function returns cause value.

func (CenterRequestValidationError) Error

Error satisfies the builtin error interface

func (CenterRequestValidationError) ErrorName

func (e CenterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (CenterRequestValidationError) Field

Field function returns field value.

func (CenterRequestValidationError) Key

Key function returns key value.

func (CenterRequestValidationError) Reason

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

Cause function returns cause value.

func (CenterResponseValidationError) Error

Error satisfies the builtin error interface

func (CenterResponseValidationError) ErrorName

func (e CenterResponseValidationError) ErrorName() string

ErrorName returns error name.

func (CenterResponseValidationError) Field

Field function returns field value.

func (CenterResponseValidationError) Key

Key function returns key value.

func (CenterResponseValidationError) Reason

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.

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

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

Cause function returns cause value.

func (DirectNetHelloClientValidationError) Error

Error satisfies the builtin error interface

func (DirectNetHelloClientValidationError) ErrorName

ErrorName returns error name.

func (DirectNetHelloClientValidationError) Field

Field function returns field value.

func (DirectNetHelloClientValidationError) Key

Key function returns key value.

func (DirectNetHelloClientValidationError) Reason

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

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

Cause function returns cause value.

func (DirectNetHelloServerValidationError) Error

Error satisfies the builtin error interface

func (DirectNetHelloServerValidationError) ErrorName

ErrorName returns error name.

func (DirectNetHelloServerValidationError) Field

Field function returns field value.

func (DirectNetHelloServerValidationError) Key

Key function returns key value.

func (DirectNetHelloServerValidationError) Reason

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

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

Cause function returns cause value.

func (DirectNetRequestValidationError) Error

Error satisfies the builtin error interface

func (DirectNetRequestValidationError) ErrorName

ErrorName returns error name.

func (DirectNetRequestValidationError) Field

Field function returns field value.

func (DirectNetRequestValidationError) Key

Key function returns key value.

func (DirectNetRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DirectNetResponseValidationError) Error

Error satisfies the builtin error interface

func (DirectNetResponseValidationError) ErrorName

ErrorName returns error name.

func (DirectNetResponseValidationError) Field

Field function returns field value.

func (DirectNetResponseValidationError) Key

Key function returns key value.

func (DirectNetResponseValidationError) Reason

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.

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

Cause function returns cause value.

func (HelloClientValidationError) Error

Error satisfies the builtin error interface

func (HelloClientValidationError) ErrorName

func (e HelloClientValidationError) ErrorName() string

ErrorName returns error name.

func (HelloClientValidationError) Field

Field function returns field value.

func (HelloClientValidationError) Key

Key function returns key value.

func (HelloClientValidationError) Reason

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

Cause function returns cause value.

func (HelloServerValidationError) Error

Error satisfies the builtin error interface

func (HelloServerValidationError) ErrorName

func (e HelloServerValidationError) ErrorName() string

ErrorName returns error name.

func (HelloServerValidationError) Field

Field function returns field value.

func (HelloServerValidationError) Key

Key function returns key value.

func (HelloServerValidationError) Reason

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

Error satisfies the builtin error interface

func (StringListValidationError) ErrorName

func (e StringListValidationError) ErrorName() string

ErrorName returns error name.

func (StringListValidationError) Field

Field function returns field value.

func (StringListValidationError) Key

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

type UnimplementedDirectNetServiceServer

type UnimplementedDirectNetServiceServer struct {
}

UnimplementedDirectNetServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDirectNetServiceServer) Channel

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.

Jump to

Keyboard shortcuts

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