Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterKeywordRemoteServiceHTTPServer(s *http.Server, srv KeywordRemoteServiceHTTPServer)
- func RegisterKeywordRemoteServiceServer(s grpc.ServiceRegistrar, srv KeywordRemoteServiceServer)
- type FindKeywordRequest
- func (*FindKeywordRequest) Descriptor() ([]byte, []int)deprecated
- func (*FindKeywordRequest) ProtoMessage()
- func (x *FindKeywordRequest) ProtoReflect() protoreflect.Message
- func (x *FindKeywordRequest) Reset()
- func (x *FindKeywordRequest) String() string
- func (m *FindKeywordRequest) Validate() error
- func (m *FindKeywordRequest) ValidateAll() error
- type FindKeywordRequestMultiError
- type FindKeywordRequestValidationError
- func (e FindKeywordRequestValidationError) Cause() error
- func (e FindKeywordRequestValidationError) Error() string
- func (e FindKeywordRequestValidationError) ErrorName() string
- func (e FindKeywordRequestValidationError) Field() string
- func (e FindKeywordRequestValidationError) Key() bool
- func (e FindKeywordRequestValidationError) Reason() string
- type FindKeywordResp
- func (*FindKeywordResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindKeywordResp) GetKeywords() []*KeywordResp
- func (*FindKeywordResp) ProtoMessage()
- func (x *FindKeywordResp) ProtoReflect() protoreflect.Message
- func (x *FindKeywordResp) Reset()
- func (x *FindKeywordResp) String() string
- func (m *FindKeywordResp) Validate() error
- func (m *FindKeywordResp) ValidateAll() error
- type FindKeywordRespMultiError
- type FindKeywordRespValidationError
- func (e FindKeywordRespValidationError) Cause() error
- func (e FindKeywordRespValidationError) Error() string
- func (e FindKeywordRespValidationError) ErrorName() string
- func (e FindKeywordRespValidationError) Field() string
- func (e FindKeywordRespValidationError) Key() bool
- func (e FindKeywordRespValidationError) Reason() string
- type KeywordRemoteServiceClient
- type KeywordRemoteServiceHTTPClient
- type KeywordRemoteServiceHTTPClientImpl
- type KeywordRemoteServiceHTTPServer
- type KeywordRemoteServiceServer
- type KeywordResp
- func (*KeywordResp) Descriptor() ([]byte, []int)deprecated
- func (x *KeywordResp) GetId() int64
- func (x *KeywordResp) GetName() string
- func (*KeywordResp) ProtoMessage()
- func (x *KeywordResp) ProtoReflect() protoreflect.Message
- func (x *KeywordResp) Reset()
- func (x *KeywordResp) String() string
- func (m *KeywordResp) Validate() error
- func (m *KeywordResp) ValidateAll() error
- type KeywordRespMultiError
- type KeywordRespValidationError
- func (e KeywordRespValidationError) Cause() error
- func (e KeywordRespValidationError) Error() string
- func (e KeywordRespValidationError) ErrorName() string
- func (e KeywordRespValidationError) Field() string
- func (e KeywordRespValidationError) Key() bool
- func (e KeywordRespValidationError) Reason() string
- type UnimplementedKeywordRemoteServiceServer
- type UnsafeKeywordRemoteServiceServer
Constants ¶
const (
KeywordRemoteService_FindGenre_FullMethodName = "/gnboot.KeywordRemoteService/FindGenre"
)
const OperationKeywordRemoteServiceFindGenre = "/gnboot.KeywordRemoteService/FindGenre"
Variables ¶
var File_proto_keyword_proto protoreflect.FileDescriptor
var KeywordRemoteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gnboot.KeywordRemoteService", HandlerType: (*KeywordRemoteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindGenre", Handler: _KeywordRemoteService_FindGenre_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/keyword.proto", }
KeywordRemoteService_ServiceDesc is the grpc.ServiceDesc for KeywordRemoteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKeywordRemoteServiceHTTPServer ¶
func RegisterKeywordRemoteServiceHTTPServer(s *http.Server, srv KeywordRemoteServiceHTTPServer)
func RegisterKeywordRemoteServiceServer ¶
func RegisterKeywordRemoteServiceServer(s grpc.ServiceRegistrar, srv KeywordRemoteServiceServer)
Types ¶
type FindKeywordRequest ¶
type FindKeywordRequest struct {
// contains filtered or unexported fields
}
func (*FindKeywordRequest) Descriptor
deprecated
func (*FindKeywordRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindKeywordRequest.ProtoReflect.Descriptor instead.
func (*FindKeywordRequest) ProtoMessage ¶
func (*FindKeywordRequest) ProtoMessage()
func (*FindKeywordRequest) ProtoReflect ¶
func (x *FindKeywordRequest) ProtoReflect() protoreflect.Message
func (*FindKeywordRequest) Reset ¶
func (x *FindKeywordRequest) Reset()
func (*FindKeywordRequest) String ¶
func (x *FindKeywordRequest) String() string
func (*FindKeywordRequest) Validate ¶
func (m *FindKeywordRequest) Validate() error
Validate checks the field values on FindKeywordRequest 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 (*FindKeywordRequest) ValidateAll ¶
func (m *FindKeywordRequest) ValidateAll() error
ValidateAll checks the field values on FindKeywordRequest 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 FindKeywordRequestMultiError, or nil if none found.
type FindKeywordRequestMultiError ¶
type FindKeywordRequestMultiError []error
FindKeywordRequestMultiError is an error wrapping multiple validation errors returned by FindKeywordRequest.ValidateAll() if the designated constraints aren't met.
func (FindKeywordRequestMultiError) AllErrors ¶
func (m FindKeywordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindKeywordRequestMultiError) Error ¶
func (m FindKeywordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindKeywordRequestValidationError ¶
type FindKeywordRequestValidationError struct {
// contains filtered or unexported fields
}
FindKeywordRequestValidationError is the validation error returned by FindKeywordRequest.Validate if the designated constraints aren't met.
func (FindKeywordRequestValidationError) Cause ¶
func (e FindKeywordRequestValidationError) Cause() error
Cause function returns cause value.
func (FindKeywordRequestValidationError) Error ¶
func (e FindKeywordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FindKeywordRequestValidationError) ErrorName ¶
func (e FindKeywordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FindKeywordRequestValidationError) Field ¶
func (e FindKeywordRequestValidationError) Field() string
Field function returns field value.
func (FindKeywordRequestValidationError) Key ¶
func (e FindKeywordRequestValidationError) Key() bool
Key function returns key value.
func (FindKeywordRequestValidationError) Reason ¶
func (e FindKeywordRequestValidationError) Reason() string
Reason function returns reason value.
type FindKeywordResp ¶
type FindKeywordResp struct { Keywords []*KeywordResp `protobuf:"bytes,1,rep,name=keywords,proto3" json:"keywords,omitempty"` // contains filtered or unexported fields }
func (*FindKeywordResp) Descriptor
deprecated
func (*FindKeywordResp) Descriptor() ([]byte, []int)
Deprecated: Use FindKeywordResp.ProtoReflect.Descriptor instead.
func (*FindKeywordResp) GetKeywords ¶ added in v1.0.6
func (x *FindKeywordResp) GetKeywords() []*KeywordResp
func (*FindKeywordResp) ProtoMessage ¶
func (*FindKeywordResp) ProtoMessage()
func (*FindKeywordResp) ProtoReflect ¶
func (x *FindKeywordResp) ProtoReflect() protoreflect.Message
func (*FindKeywordResp) Reset ¶
func (x *FindKeywordResp) Reset()
func (*FindKeywordResp) String ¶
func (x *FindKeywordResp) String() string
func (*FindKeywordResp) Validate ¶
func (m *FindKeywordResp) Validate() error
Validate checks the field values on FindKeywordResp 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 (*FindKeywordResp) ValidateAll ¶
func (m *FindKeywordResp) ValidateAll() error
ValidateAll checks the field values on FindKeywordResp 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 FindKeywordRespMultiError, or nil if none found.
type FindKeywordRespMultiError ¶
type FindKeywordRespMultiError []error
FindKeywordRespMultiError is an error wrapping multiple validation errors returned by FindKeywordResp.ValidateAll() if the designated constraints aren't met.
func (FindKeywordRespMultiError) AllErrors ¶
func (m FindKeywordRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindKeywordRespMultiError) Error ¶
func (m FindKeywordRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindKeywordRespValidationError ¶
type FindKeywordRespValidationError struct {
// contains filtered or unexported fields
}
FindKeywordRespValidationError is the validation error returned by FindKeywordResp.Validate if the designated constraints aren't met.
func (FindKeywordRespValidationError) Cause ¶
func (e FindKeywordRespValidationError) Cause() error
Cause function returns cause value.
func (FindKeywordRespValidationError) Error ¶
func (e FindKeywordRespValidationError) Error() string
Error satisfies the builtin error interface
func (FindKeywordRespValidationError) ErrorName ¶
func (e FindKeywordRespValidationError) ErrorName() string
ErrorName returns error name.
func (FindKeywordRespValidationError) Field ¶
func (e FindKeywordRespValidationError) Field() string
Field function returns field value.
func (FindKeywordRespValidationError) Key ¶
func (e FindKeywordRespValidationError) Key() bool
Key function returns key value.
func (FindKeywordRespValidationError) Reason ¶
func (e FindKeywordRespValidationError) Reason() string
Reason function returns reason value.
type KeywordRemoteServiceClient ¶
type KeywordRemoteServiceClient interface {
FindGenre(ctx context.Context, in *FindKeywordRequest, opts ...grpc.CallOption) (*FindKeywordResp, error)
}
KeywordRemoteServiceClient is the client API for KeywordRemoteService 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 NewKeywordRemoteServiceClient ¶
func NewKeywordRemoteServiceClient(cc grpc.ClientConnInterface) KeywordRemoteServiceClient
type KeywordRemoteServiceHTTPClient ¶
type KeywordRemoteServiceHTTPClient interface {
FindGenre(ctx context.Context, req *FindKeywordRequest, opts ...http.CallOption) (rsp *FindKeywordResp, err error)
}
func NewKeywordRemoteServiceHTTPClient ¶
func NewKeywordRemoteServiceHTTPClient(client *http.Client) KeywordRemoteServiceHTTPClient
type KeywordRemoteServiceHTTPClientImpl ¶
type KeywordRemoteServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*KeywordRemoteServiceHTTPClientImpl) FindGenre ¶
func (c *KeywordRemoteServiceHTTPClientImpl) FindGenre(ctx context.Context, in *FindKeywordRequest, opts ...http.CallOption) (*FindKeywordResp, error)
type KeywordRemoteServiceHTTPServer ¶
type KeywordRemoteServiceHTTPServer interface {
FindGenre(context.Context, *FindKeywordRequest) (*FindKeywordResp, error)
}
type KeywordRemoteServiceServer ¶
type KeywordRemoteServiceServer interface { FindGenre(context.Context, *FindKeywordRequest) (*FindKeywordResp, error) // contains filtered or unexported methods }
KeywordRemoteServiceServer is the server API for KeywordRemoteService service. All implementations must embed UnimplementedKeywordRemoteServiceServer for forward compatibility
type KeywordResp ¶
type KeywordResp struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*KeywordResp) Descriptor
deprecated
func (*KeywordResp) Descriptor() ([]byte, []int)
Deprecated: Use KeywordResp.ProtoReflect.Descriptor instead.
func (*KeywordResp) GetId ¶
func (x *KeywordResp) GetId() int64
func (*KeywordResp) GetName ¶
func (x *KeywordResp) GetName() string
func (*KeywordResp) ProtoMessage ¶
func (*KeywordResp) ProtoMessage()
func (*KeywordResp) ProtoReflect ¶
func (x *KeywordResp) ProtoReflect() protoreflect.Message
func (*KeywordResp) Reset ¶
func (x *KeywordResp) Reset()
func (*KeywordResp) String ¶
func (x *KeywordResp) String() string
func (*KeywordResp) Validate ¶
func (m *KeywordResp) Validate() error
Validate checks the field values on KeywordResp 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 (*KeywordResp) ValidateAll ¶
func (m *KeywordResp) ValidateAll() error
ValidateAll checks the field values on KeywordResp 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 KeywordRespMultiError, or nil if none found.
type KeywordRespMultiError ¶
type KeywordRespMultiError []error
KeywordRespMultiError is an error wrapping multiple validation errors returned by KeywordResp.ValidateAll() if the designated constraints aren't met.
func (KeywordRespMultiError) AllErrors ¶
func (m KeywordRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (KeywordRespMultiError) Error ¶
func (m KeywordRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type KeywordRespValidationError ¶
type KeywordRespValidationError struct {
// contains filtered or unexported fields
}
KeywordRespValidationError is the validation error returned by KeywordResp.Validate if the designated constraints aren't met.
func (KeywordRespValidationError) Cause ¶
func (e KeywordRespValidationError) Cause() error
Cause function returns cause value.
func (KeywordRespValidationError) Error ¶
func (e KeywordRespValidationError) Error() string
Error satisfies the builtin error interface
func (KeywordRespValidationError) ErrorName ¶
func (e KeywordRespValidationError) ErrorName() string
ErrorName returns error name.
func (KeywordRespValidationError) Field ¶
func (e KeywordRespValidationError) Field() string
Field function returns field value.
func (KeywordRespValidationError) Key ¶
func (e KeywordRespValidationError) Key() bool
Key function returns key value.
func (KeywordRespValidationError) Reason ¶
func (e KeywordRespValidationError) Reason() string
Reason function returns reason value.
type UnimplementedKeywordRemoteServiceServer ¶
type UnimplementedKeywordRemoteServiceServer struct { }
UnimplementedKeywordRemoteServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedKeywordRemoteServiceServer) FindGenre ¶
func (UnimplementedKeywordRemoteServiceServer) FindGenre(context.Context, *FindKeywordRequest) (*FindKeywordResp, error)
type UnsafeKeywordRemoteServiceServer ¶
type UnsafeKeywordRemoteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeKeywordRemoteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeywordRemoteServiceServer will result in compilation errors.