Documentation ¶
Index ¶
- Variables
- func RegisterDiscoveryServer(s grpc.ServiceRegistrar, srv DiscoveryServer)
- func RegisterIdentityServer(s grpc.ServiceRegistrar, srv IdentityServer)
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- type ChattyRequest
- func (*ChattyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChattyRequest) GetCount() int32
- func (x *ChattyRequest) GetMessage() string
- func (*ChattyRequest) ProtoMessage()
- func (x *ChattyRequest) ProtoReflect() protoreflect.Message
- func (x *ChattyRequest) Reset()
- func (x *ChattyRequest) String() string
- func (m *ChattyRequest) Validate() error
- func (m *ChattyRequest) ValidateAll() error
- type ChattyRequestMultiError
- type ChattyRequestValidationError
- func (e ChattyRequestValidationError) Cause() error
- func (e ChattyRequestValidationError) Error() string
- func (e ChattyRequestValidationError) ErrorName() string
- func (e ChattyRequestValidationError) Field() string
- func (e ChattyRequestValidationError) Key() bool
- func (e ChattyRequestValidationError) Reason() string
- type DiscoveryClient
- type DiscoveryServer
- type FindPeersReq
- func (*FindPeersReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindPeersReq) GetCount() int64
- func (x *FindPeersReq) GetKey() string
- func (*FindPeersReq) ProtoMessage()
- func (x *FindPeersReq) ProtoReflect() protoreflect.Message
- func (x *FindPeersReq) Reset()
- func (x *FindPeersReq) String() string
- func (m *FindPeersReq) Validate() error
- func (m *FindPeersReq) ValidateAll() error
- type FindPeersReqMultiError
- type FindPeersReqValidationError
- func (e FindPeersReqValidationError) Cause() error
- func (e FindPeersReqValidationError) Error() string
- func (e FindPeersReqValidationError) ErrorName() string
- func (e FindPeersReqValidationError) Field() string
- func (e FindPeersReqValidationError) Key() bool
- func (e FindPeersReqValidationError) Reason() string
- type FindPeersResp
- func (*FindPeersResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindPeersResp) GetNodes() []string
- func (*FindPeersResp) ProtoMessage()
- func (x *FindPeersResp) ProtoReflect() protoreflect.Message
- func (x *FindPeersResp) Reset()
- func (x *FindPeersResp) String() string
- func (m *FindPeersResp) Validate() error
- func (m *FindPeersResp) ValidateAll() error
- type FindPeersRespMultiError
- type FindPeersRespValidationError
- func (e FindPeersRespValidationError) Cause() error
- func (e FindPeersRespValidationError) Error() string
- func (e FindPeersRespValidationError) ErrorName() string
- func (e FindPeersRespValidationError) Field() string
- func (e FindPeersRespValidationError) Key() bool
- func (e FindPeersRespValidationError) Reason() string
- type GenericMessage
- func (*GenericMessage) Descriptor() ([]byte, []int)deprecated
- func (x *GenericMessage) GetMessage() string
- func (*GenericMessage) ProtoMessage()
- func (x *GenericMessage) ProtoReflect() protoreflect.Message
- func (x *GenericMessage) Reset()
- func (x *GenericMessage) String() string
- func (m *GenericMessage) Validate() error
- func (m *GenericMessage) ValidateAll() error
- type GenericMessageMultiError
- type GenericMessageValidationError
- func (e GenericMessageValidationError) Cause() error
- func (e GenericMessageValidationError) Error() string
- func (e GenericMessageValidationError) ErrorName() string
- func (e GenericMessageValidationError) Field() string
- func (e GenericMessageValidationError) Key() bool
- func (e GenericMessageValidationError) Reason() string
- type IdentityClient
- type IdentityServer
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetChain() int64
- func (x *Status) GetGenesis() string
- func (x *Status) GetKeys() []*Status_Key
- func (x *Status) GetMetadata() map[string]string
- func (x *Status) GetTemporaryDial() bool
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
- func (m *Status) Validate() error
- func (m *Status) ValidateAll() error
- type StatusMultiError
- type StatusValidationError
- type Status_Key
- func (*Status_Key) Descriptor() ([]byte, []int)deprecated
- func (x *Status_Key) GetMessage() string
- func (x *Status_Key) GetSignature() string
- func (*Status_Key) ProtoMessage()
- func (x *Status_Key) ProtoReflect() protoreflect.Message
- func (x *Status_Key) Reset()
- func (x *Status_Key) String() string
- func (m *Status_Key) Validate() error
- func (m *Status_Key) ValidateAll() error
- type Status_KeyMultiError
- type Status_KeyValidationError
- type TestServiceClient
- type TestServiceServer
- type TestService_GetChattyBidiClient
- type TestService_GetChattyBidiServer
- type TestService_GetChattyClientClient
- type TestService_GetChattyClientServer
- type TestService_GetChattyServerClient
- type TestService_GetChattyServerServer
- type UnimplementedDiscoveryServer
- type UnimplementedIdentityServer
- type UnimplementedTestServiceServer
- func (UnimplementedTestServiceServer) GetChattyBidi(TestService_GetChattyBidiServer) error
- func (UnimplementedTestServiceServer) GetChattyClient(TestService_GetChattyClientServer) error
- func (UnimplementedTestServiceServer) GetChattyServer(*ChattyRequest, TestService_GetChattyServerServer) error
- func (UnimplementedTestServiceServer) SayHello(context.Context, *GenericMessage) (*GenericMessage, error)
- type UnsafeDiscoveryServer
- type UnsafeIdentityServer
- type UnsafeTestServiceServer
Constants ¶
This section is empty.
Variables ¶
var Discovery_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.Discovery", HandlerType: (*DiscoveryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindPeers", Handler: _Discovery_FindPeers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "network/proto/discovery.proto", }
Discovery_ServiceDesc is the grpc.ServiceDesc for Discovery service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_network_proto_discovery_proto protoreflect.FileDescriptor
var File_network_proto_identity_proto protoreflect.FileDescriptor
var File_network_proto_testing_proto protoreflect.FileDescriptor
var Identity_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.Identity", HandlerType: (*IdentityServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Hello", Handler: _Identity_Hello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "network/proto/identity.proto", }
Identity_ServiceDesc is the grpc.ServiceDesc for Identity service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SayHello", Handler: _TestService_SayHello_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetChattyServer", Handler: _TestService_GetChattyServer_Handler, ServerStreams: true, }, { StreamName: "GetChattyClient", Handler: _TestService_GetChattyClient_Handler, ClientStreams: true, }, { StreamName: "GetChattyBidi", Handler: _TestService_GetChattyBidi_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "network/proto/testing.proto", }
TestService_ServiceDesc is the grpc.ServiceDesc for TestService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterDiscoveryServer ¶
func RegisterDiscoveryServer(s grpc.ServiceRegistrar, srv DiscoveryServer)
func RegisterIdentityServer ¶
func RegisterIdentityServer(s grpc.ServiceRegistrar, srv IdentityServer)
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
Types ¶
type ChattyRequest ¶
type ChattyRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*ChattyRequest) Descriptor
deprecated
func (*ChattyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChattyRequest.ProtoReflect.Descriptor instead.
func (*ChattyRequest) GetCount ¶
func (x *ChattyRequest) GetCount() int32
func (*ChattyRequest) GetMessage ¶
func (x *ChattyRequest) GetMessage() string
func (*ChattyRequest) ProtoMessage ¶
func (*ChattyRequest) ProtoMessage()
func (*ChattyRequest) ProtoReflect ¶
func (x *ChattyRequest) ProtoReflect() protoreflect.Message
func (*ChattyRequest) Reset ¶
func (x *ChattyRequest) Reset()
func (*ChattyRequest) String ¶
func (x *ChattyRequest) String() string
func (*ChattyRequest) Validate ¶ added in v0.8.0
func (m *ChattyRequest) Validate() error
Validate checks the field values on ChattyRequest 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 (*ChattyRequest) ValidateAll ¶ added in v0.8.0
func (m *ChattyRequest) ValidateAll() error
ValidateAll checks the field values on ChattyRequest 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 ChattyRequestMultiError, or nil if none found.
type ChattyRequestMultiError ¶ added in v0.8.0
type ChattyRequestMultiError []error
ChattyRequestMultiError is an error wrapping multiple validation errors returned by ChattyRequest.ValidateAll() if the designated constraints aren't met.
func (ChattyRequestMultiError) AllErrors ¶ added in v0.8.0
func (m ChattyRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ChattyRequestMultiError) Error ¶ added in v0.8.0
func (m ChattyRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ChattyRequestValidationError ¶ added in v0.8.0
type ChattyRequestValidationError struct {
// contains filtered or unexported fields
}
ChattyRequestValidationError is the validation error returned by ChattyRequest.Validate if the designated constraints aren't met.
func (ChattyRequestValidationError) Cause ¶ added in v0.8.0
func (e ChattyRequestValidationError) Cause() error
Cause function returns cause value.
func (ChattyRequestValidationError) Error ¶ added in v0.8.0
func (e ChattyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ChattyRequestValidationError) ErrorName ¶ added in v0.8.0
func (e ChattyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ChattyRequestValidationError) Field ¶ added in v0.8.0
func (e ChattyRequestValidationError) Field() string
Field function returns field value.
func (ChattyRequestValidationError) Key ¶ added in v0.8.0
func (e ChattyRequestValidationError) Key() bool
Key function returns key value.
func (ChattyRequestValidationError) Reason ¶ added in v0.8.0
func (e ChattyRequestValidationError) Reason() string
Reason function returns reason value.
type DiscoveryClient ¶
type DiscoveryClient interface {
FindPeers(ctx context.Context, in *FindPeersReq, opts ...grpc.CallOption) (*FindPeersResp, error)
}
DiscoveryClient is the client API for Discovery 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 NewDiscoveryClient ¶
func NewDiscoveryClient(cc grpc.ClientConnInterface) DiscoveryClient
type DiscoveryServer ¶
type DiscoveryServer interface { FindPeers(context.Context, *FindPeersReq) (*FindPeersResp, error) // contains filtered or unexported methods }
DiscoveryServer is the server API for Discovery service. All implementations must embed UnimplementedDiscoveryServer for forward compatibility
type FindPeersReq ¶
type FindPeersReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // network/discovery/discovery.go => maxDiscoveryPeerReqCount // contains filtered or unexported fields }
func (*FindPeersReq) Descriptor
deprecated
func (*FindPeersReq) Descriptor() ([]byte, []int)
Deprecated: Use FindPeersReq.ProtoReflect.Descriptor instead.
func (*FindPeersReq) GetCount ¶
func (x *FindPeersReq) GetCount() int64
func (*FindPeersReq) GetKey ¶
func (x *FindPeersReq) GetKey() string
func (*FindPeersReq) ProtoMessage ¶
func (*FindPeersReq) ProtoMessage()
func (*FindPeersReq) ProtoReflect ¶
func (x *FindPeersReq) ProtoReflect() protoreflect.Message
func (*FindPeersReq) Reset ¶
func (x *FindPeersReq) Reset()
func (*FindPeersReq) String ¶
func (x *FindPeersReq) String() string
func (*FindPeersReq) Validate ¶ added in v0.8.0
func (m *FindPeersReq) Validate() error
Validate checks the field values on FindPeersReq 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 (*FindPeersReq) ValidateAll ¶ added in v0.8.0
func (m *FindPeersReq) ValidateAll() error
ValidateAll checks the field values on FindPeersReq 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 FindPeersReqMultiError, or nil if none found.
type FindPeersReqMultiError ¶ added in v0.8.0
type FindPeersReqMultiError []error
FindPeersReqMultiError is an error wrapping multiple validation errors returned by FindPeersReq.ValidateAll() if the designated constraints aren't met.
func (FindPeersReqMultiError) AllErrors ¶ added in v0.8.0
func (m FindPeersReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindPeersReqMultiError) Error ¶ added in v0.8.0
func (m FindPeersReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindPeersReqValidationError ¶ added in v0.8.0
type FindPeersReqValidationError struct {
// contains filtered or unexported fields
}
FindPeersReqValidationError is the validation error returned by FindPeersReq.Validate if the designated constraints aren't met.
func (FindPeersReqValidationError) Cause ¶ added in v0.8.0
func (e FindPeersReqValidationError) Cause() error
Cause function returns cause value.
func (FindPeersReqValidationError) Error ¶ added in v0.8.0
func (e FindPeersReqValidationError) Error() string
Error satisfies the builtin error interface
func (FindPeersReqValidationError) ErrorName ¶ added in v0.8.0
func (e FindPeersReqValidationError) ErrorName() string
ErrorName returns error name.
func (FindPeersReqValidationError) Field ¶ added in v0.8.0
func (e FindPeersReqValidationError) Field() string
Field function returns field value.
func (FindPeersReqValidationError) Key ¶ added in v0.8.0
func (e FindPeersReqValidationError) Key() bool
Key function returns key value.
func (FindPeersReqValidationError) Reason ¶ added in v0.8.0
func (e FindPeersReqValidationError) Reason() string
Reason function returns reason value.
type FindPeersResp ¶
type FindPeersResp struct { Nodes []string `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
func (*FindPeersResp) Descriptor
deprecated
func (*FindPeersResp) Descriptor() ([]byte, []int)
Deprecated: Use FindPeersResp.ProtoReflect.Descriptor instead.
func (*FindPeersResp) GetNodes ¶
func (x *FindPeersResp) GetNodes() []string
func (*FindPeersResp) ProtoMessage ¶
func (*FindPeersResp) ProtoMessage()
func (*FindPeersResp) ProtoReflect ¶
func (x *FindPeersResp) ProtoReflect() protoreflect.Message
func (*FindPeersResp) Reset ¶
func (x *FindPeersResp) Reset()
func (*FindPeersResp) String ¶
func (x *FindPeersResp) String() string
func (*FindPeersResp) Validate ¶ added in v0.8.0
func (m *FindPeersResp) Validate() error
Validate checks the field values on FindPeersResp 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 (*FindPeersResp) ValidateAll ¶ added in v0.8.0
func (m *FindPeersResp) ValidateAll() error
ValidateAll checks the field values on FindPeersResp 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 FindPeersRespMultiError, or nil if none found.
type FindPeersRespMultiError ¶ added in v0.8.0
type FindPeersRespMultiError []error
FindPeersRespMultiError is an error wrapping multiple validation errors returned by FindPeersResp.ValidateAll() if the designated constraints aren't met.
func (FindPeersRespMultiError) AllErrors ¶ added in v0.8.0
func (m FindPeersRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindPeersRespMultiError) Error ¶ added in v0.8.0
func (m FindPeersRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindPeersRespValidationError ¶ added in v0.8.0
type FindPeersRespValidationError struct {
// contains filtered or unexported fields
}
FindPeersRespValidationError is the validation error returned by FindPeersResp.Validate if the designated constraints aren't met.
func (FindPeersRespValidationError) Cause ¶ added in v0.8.0
func (e FindPeersRespValidationError) Cause() error
Cause function returns cause value.
func (FindPeersRespValidationError) Error ¶ added in v0.8.0
func (e FindPeersRespValidationError) Error() string
Error satisfies the builtin error interface
func (FindPeersRespValidationError) ErrorName ¶ added in v0.8.0
func (e FindPeersRespValidationError) ErrorName() string
ErrorName returns error name.
func (FindPeersRespValidationError) Field ¶ added in v0.8.0
func (e FindPeersRespValidationError) Field() string
Field function returns field value.
func (FindPeersRespValidationError) Key ¶ added in v0.8.0
func (e FindPeersRespValidationError) Key() bool
Key function returns key value.
func (FindPeersRespValidationError) Reason ¶ added in v0.8.0
func (e FindPeersRespValidationError) Reason() string
Reason function returns reason value.
type GenericMessage ¶
type GenericMessage struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*GenericMessage) Descriptor
deprecated
func (*GenericMessage) Descriptor() ([]byte, []int)
Deprecated: Use GenericMessage.ProtoReflect.Descriptor instead.
func (*GenericMessage) GetMessage ¶
func (x *GenericMessage) GetMessage() string
func (*GenericMessage) ProtoMessage ¶
func (*GenericMessage) ProtoMessage()
func (*GenericMessage) ProtoReflect ¶
func (x *GenericMessage) ProtoReflect() protoreflect.Message
func (*GenericMessage) Reset ¶
func (x *GenericMessage) Reset()
func (*GenericMessage) String ¶
func (x *GenericMessage) String() string
func (*GenericMessage) Validate ¶ added in v0.8.0
func (m *GenericMessage) Validate() error
Validate checks the field values on GenericMessage 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 (*GenericMessage) ValidateAll ¶ added in v0.8.0
func (m *GenericMessage) ValidateAll() error
ValidateAll checks the field values on GenericMessage 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 GenericMessageMultiError, or nil if none found.
type GenericMessageMultiError ¶ added in v0.8.0
type GenericMessageMultiError []error
GenericMessageMultiError is an error wrapping multiple validation errors returned by GenericMessage.ValidateAll() if the designated constraints aren't met.
func (GenericMessageMultiError) AllErrors ¶ added in v0.8.0
func (m GenericMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GenericMessageMultiError) Error ¶ added in v0.8.0
func (m GenericMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GenericMessageValidationError ¶ added in v0.8.0
type GenericMessageValidationError struct {
// contains filtered or unexported fields
}
GenericMessageValidationError is the validation error returned by GenericMessage.Validate if the designated constraints aren't met.
func (GenericMessageValidationError) Cause ¶ added in v0.8.0
func (e GenericMessageValidationError) Cause() error
Cause function returns cause value.
func (GenericMessageValidationError) Error ¶ added in v0.8.0
func (e GenericMessageValidationError) Error() string
Error satisfies the builtin error interface
func (GenericMessageValidationError) ErrorName ¶ added in v0.8.0
func (e GenericMessageValidationError) ErrorName() string
ErrorName returns error name.
func (GenericMessageValidationError) Field ¶ added in v0.8.0
func (e GenericMessageValidationError) Field() string
Field function returns field value.
func (GenericMessageValidationError) Key ¶ added in v0.8.0
func (e GenericMessageValidationError) Key() bool
Key function returns key value.
func (GenericMessageValidationError) Reason ¶ added in v0.8.0
func (e GenericMessageValidationError) Reason() string
Reason function returns reason value.
type IdentityClient ¶
type IdentityClient interface {
Hello(ctx context.Context, in *Status, opts ...grpc.CallOption) (*Status, error)
}
IdentityClient is the client API for Identity 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 NewIdentityClient ¶
func NewIdentityClient(cc grpc.ClientConnInterface) IdentityClient
type IdentityServer ¶
type IdentityServer interface { Hello(context.Context, *Status) (*Status, error) // contains filtered or unexported methods }
IdentityServer is the server API for Identity service. All implementations must embed UnimplementedIdentityServer for forward compatibility
type Status ¶
type Status struct { Metadata map[string]string `` /* 157-byte string literal not displayed */ Keys []*Status_Key `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` Chain int64 `protobuf:"varint,3,opt,name=chain,proto3" json:"chain,omitempty"` Genesis string `protobuf:"bytes,4,opt,name=genesis,proto3" json:"genesis,omitempty"` TemporaryDial bool `protobuf:"varint,5,opt,name=temporaryDial,proto3" json:"temporaryDial,omitempty"` // contains filtered or unexported fields }
func (*Status) Descriptor
deprecated
func (*Status) GetGenesis ¶
func (*Status) GetKeys ¶
func (x *Status) GetKeys() []*Status_Key
func (*Status) GetMetadata ¶
func (*Status) GetTemporaryDial ¶ added in v0.3.3
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
func (*Status) Validate ¶ added in v0.8.0
Validate checks the field values on Status 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 (*Status) ValidateAll ¶ added in v0.8.0
ValidateAll checks the field values on Status 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 StatusMultiError, or nil if none found.
type StatusMultiError ¶ added in v0.8.0
type StatusMultiError []error
StatusMultiError is an error wrapping multiple validation errors returned by Status.ValidateAll() if the designated constraints aren't met.
func (StatusMultiError) AllErrors ¶ added in v0.8.0
func (m StatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StatusMultiError) Error ¶ added in v0.8.0
func (m StatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StatusValidationError ¶ added in v0.8.0
type StatusValidationError struct {
// contains filtered or unexported fields
}
StatusValidationError is the validation error returned by Status.Validate if the designated constraints aren't met.
func (StatusValidationError) Cause ¶ added in v0.8.0
func (e StatusValidationError) Cause() error
Cause function returns cause value.
func (StatusValidationError) Error ¶ added in v0.8.0
func (e StatusValidationError) Error() string
Error satisfies the builtin error interface
func (StatusValidationError) ErrorName ¶ added in v0.8.0
func (e StatusValidationError) ErrorName() string
ErrorName returns error name.
func (StatusValidationError) Field ¶ added in v0.8.0
func (e StatusValidationError) Field() string
Field function returns field value.
func (StatusValidationError) Key ¶ added in v0.8.0
func (e StatusValidationError) Key() bool
Key function returns key value.
func (StatusValidationError) Reason ¶ added in v0.8.0
func (e StatusValidationError) Reason() string
Reason function returns reason value.
type Status_Key ¶
type Status_Key struct { Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Status_Key) Descriptor
deprecated
func (*Status_Key) Descriptor() ([]byte, []int)
Deprecated: Use Status_Key.ProtoReflect.Descriptor instead.
func (*Status_Key) GetMessage ¶
func (x *Status_Key) GetMessage() string
func (*Status_Key) GetSignature ¶
func (x *Status_Key) GetSignature() string
func (*Status_Key) ProtoMessage ¶
func (*Status_Key) ProtoMessage()
func (*Status_Key) ProtoReflect ¶
func (x *Status_Key) ProtoReflect() protoreflect.Message
func (*Status_Key) Reset ¶
func (x *Status_Key) Reset()
func (*Status_Key) String ¶
func (x *Status_Key) String() string
func (*Status_Key) Validate ¶ added in v0.8.0
func (m *Status_Key) Validate() error
Validate checks the field values on Status_Key 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 (*Status_Key) ValidateAll ¶ added in v0.8.0
func (m *Status_Key) ValidateAll() error
ValidateAll checks the field values on Status_Key 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 Status_KeyMultiError, or nil if none found.
type Status_KeyMultiError ¶ added in v0.8.0
type Status_KeyMultiError []error
Status_KeyMultiError is an error wrapping multiple validation errors returned by Status_Key.ValidateAll() if the designated constraints aren't met.
func (Status_KeyMultiError) AllErrors ¶ added in v0.8.0
func (m Status_KeyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Status_KeyMultiError) Error ¶ added in v0.8.0
func (m Status_KeyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Status_KeyValidationError ¶ added in v0.8.0
type Status_KeyValidationError struct {
// contains filtered or unexported fields
}
Status_KeyValidationError is the validation error returned by Status_Key.Validate if the designated constraints aren't met.
func (Status_KeyValidationError) Cause ¶ added in v0.8.0
func (e Status_KeyValidationError) Cause() error
Cause function returns cause value.
func (Status_KeyValidationError) Error ¶ added in v0.8.0
func (e Status_KeyValidationError) Error() string
Error satisfies the builtin error interface
func (Status_KeyValidationError) ErrorName ¶ added in v0.8.0
func (e Status_KeyValidationError) ErrorName() string
ErrorName returns error name.
func (Status_KeyValidationError) Field ¶ added in v0.8.0
func (e Status_KeyValidationError) Field() string
Field function returns field value.
func (Status_KeyValidationError) Key ¶ added in v0.8.0
func (e Status_KeyValidationError) Key() bool
Key function returns key value.
func (Status_KeyValidationError) Reason ¶ added in v0.8.0
func (e Status_KeyValidationError) Reason() string
Reason function returns reason value.
type TestServiceClient ¶
type TestServiceClient interface { SayHello(ctx context.Context, in *GenericMessage, opts ...grpc.CallOption) (*GenericMessage, error) GetChattyServer(ctx context.Context, in *ChattyRequest, opts ...grpc.CallOption) (TestService_GetChattyServerClient, error) GetChattyClient(ctx context.Context, opts ...grpc.CallOption) (TestService_GetChattyClientClient, error) GetChattyBidi(ctx context.Context, opts ...grpc.CallOption) (TestService_GetChattyBidiClient, error) }
TestServiceClient is the client API for TestService 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 NewTestServiceClient ¶
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient
type TestServiceServer ¶
type TestServiceServer interface { SayHello(context.Context, *GenericMessage) (*GenericMessage, error) GetChattyServer(*ChattyRequest, TestService_GetChattyServerServer) error GetChattyClient(TestService_GetChattyClientServer) error GetChattyBidi(TestService_GetChattyBidiServer) error // contains filtered or unexported methods }
TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility
type TestService_GetChattyBidiClient ¶
type TestService_GetChattyBidiClient interface { Send(*GenericMessage) error Recv() (*GenericMessage, error) grpc.ClientStream }
type TestService_GetChattyBidiServer ¶
type TestService_GetChattyBidiServer interface { Send(*GenericMessage) error Recv() (*GenericMessage, error) grpc.ServerStream }
type TestService_GetChattyClientClient ¶
type TestService_GetChattyClientClient interface { Send(*GenericMessage) error CloseAndRecv() (*GenericMessage, error) grpc.ClientStream }
type TestService_GetChattyClientServer ¶
type TestService_GetChattyClientServer interface { SendAndClose(*GenericMessage) error Recv() (*GenericMessage, error) grpc.ServerStream }
type TestService_GetChattyServerClient ¶
type TestService_GetChattyServerClient interface { Recv() (*GenericMessage, error) grpc.ClientStream }
type TestService_GetChattyServerServer ¶
type TestService_GetChattyServerServer interface { Send(*GenericMessage) error grpc.ServerStream }
type UnimplementedDiscoveryServer ¶
type UnimplementedDiscoveryServer struct { }
UnimplementedDiscoveryServer must be embedded to have forward compatible implementations.
func (UnimplementedDiscoveryServer) FindPeers ¶
func (UnimplementedDiscoveryServer) FindPeers(context.Context, *FindPeersReq) (*FindPeersResp, error)
type UnimplementedIdentityServer ¶
type UnimplementedIdentityServer struct { }
UnimplementedIdentityServer must be embedded to have forward compatible implementations.
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct { }
UnimplementedTestServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTestServiceServer) GetChattyBidi ¶
func (UnimplementedTestServiceServer) GetChattyBidi(TestService_GetChattyBidiServer) error
func (UnimplementedTestServiceServer) GetChattyClient ¶
func (UnimplementedTestServiceServer) GetChattyClient(TestService_GetChattyClientServer) error
func (UnimplementedTestServiceServer) GetChattyServer ¶
func (UnimplementedTestServiceServer) GetChattyServer(*ChattyRequest, TestService_GetChattyServerServer) error
func (UnimplementedTestServiceServer) SayHello ¶
func (UnimplementedTestServiceServer) SayHello(context.Context, *GenericMessage) (*GenericMessage, error)
type UnsafeDiscoveryServer ¶
type UnsafeDiscoveryServer interface {
// contains filtered or unexported methods
}
UnsafeDiscoveryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DiscoveryServer will result in compilation errors.
type UnsafeIdentityServer ¶
type UnsafeIdentityServer interface {
// contains filtered or unexported methods
}
UnsafeIdentityServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdentityServer will result in compilation errors.
type UnsafeTestServiceServer ¶
type UnsafeTestServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServiceServer will result in compilation errors.