Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterGenreRemoteServiceHTTPServer(s *http.Server, srv GenreRemoteServiceHTTPServer)
- func RegisterGenreRemoteServiceServer(s grpc.ServiceRegistrar, srv GenreRemoteServiceServer)
- type FindGenreRequest
- func (*FindGenreRequest) Descriptor() ([]byte, []int)deprecated
- func (*FindGenreRequest) ProtoMessage()
- func (x *FindGenreRequest) ProtoReflect() protoreflect.Message
- func (x *FindGenreRequest) Reset()
- func (x *FindGenreRequest) String() string
- func (m *FindGenreRequest) Validate() error
- func (m *FindGenreRequest) ValidateAll() error
- type FindGenreRequestMultiError
- type FindGenreRequestValidationError
- func (e FindGenreRequestValidationError) Cause() error
- func (e FindGenreRequestValidationError) Error() string
- func (e FindGenreRequestValidationError) ErrorName() string
- func (e FindGenreRequestValidationError) Field() string
- func (e FindGenreRequestValidationError) Key() bool
- func (e FindGenreRequestValidationError) Reason() string
- type FindGenreResp
- func (*FindGenreResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindGenreResp) GetGenres() []*GenreResp
- func (*FindGenreResp) ProtoMessage()
- func (x *FindGenreResp) ProtoReflect() protoreflect.Message
- func (x *FindGenreResp) Reset()
- func (x *FindGenreResp) String() string
- func (m *FindGenreResp) Validate() error
- func (m *FindGenreResp) ValidateAll() error
- type FindGenreRespMultiError
- type FindGenreRespValidationError
- func (e FindGenreRespValidationError) Cause() error
- func (e FindGenreRespValidationError) Error() string
- func (e FindGenreRespValidationError) ErrorName() string
- func (e FindGenreRespValidationError) Field() string
- func (e FindGenreRespValidationError) Key() bool
- func (e FindGenreRespValidationError) Reason() string
- type GenreRemoteServiceClient
- type GenreRemoteServiceHTTPClient
- type GenreRemoteServiceHTTPClientImpl
- type GenreRemoteServiceHTTPServer
- type GenreRemoteServiceServer
- type GenreResp
- func (*GenreResp) Descriptor() ([]byte, []int)deprecated
- func (x *GenreResp) GetId() int64
- func (x *GenreResp) GetName() string
- func (*GenreResp) ProtoMessage()
- func (x *GenreResp) ProtoReflect() protoreflect.Message
- func (x *GenreResp) Reset()
- func (x *GenreResp) String() string
- func (m *GenreResp) Validate() error
- func (m *GenreResp) ValidateAll() error
- type GenreRespMultiError
- type GenreRespValidationError
- type UnimplementedGenreRemoteServiceServer
- type UnsafeGenreRemoteServiceServer
Constants ¶
const (
GenreRemoteService_FindGenre_FullMethodName = "/gnboot.GenreRemoteService/FindGenre"
)
const OperationGenreRemoteServiceFindGenre = "/gnboot.GenreRemoteService/FindGenre"
Variables ¶
var File_proto_genre_proto protoreflect.FileDescriptor
var GenreRemoteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gnboot.GenreRemoteService", HandlerType: (*GenreRemoteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindGenre", Handler: _GenreRemoteService_FindGenre_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/genre.proto", }
GenreRemoteService_ServiceDesc is the grpc.ServiceDesc for GenreRemoteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGenreRemoteServiceHTTPServer ¶
func RegisterGenreRemoteServiceHTTPServer(s *http.Server, srv GenreRemoteServiceHTTPServer)
func RegisterGenreRemoteServiceServer ¶
func RegisterGenreRemoteServiceServer(s grpc.ServiceRegistrar, srv GenreRemoteServiceServer)
Types ¶
type FindGenreRequest ¶
type FindGenreRequest struct {
// contains filtered or unexported fields
}
func (*FindGenreRequest) Descriptor
deprecated
func (*FindGenreRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindGenreRequest.ProtoReflect.Descriptor instead.
func (*FindGenreRequest) ProtoMessage ¶
func (*FindGenreRequest) ProtoMessage()
func (*FindGenreRequest) ProtoReflect ¶
func (x *FindGenreRequest) ProtoReflect() protoreflect.Message
func (*FindGenreRequest) Reset ¶
func (x *FindGenreRequest) Reset()
func (*FindGenreRequest) String ¶
func (x *FindGenreRequest) String() string
func (*FindGenreRequest) Validate ¶
func (m *FindGenreRequest) Validate() error
Validate checks the field values on FindGenreRequest 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 (*FindGenreRequest) ValidateAll ¶
func (m *FindGenreRequest) ValidateAll() error
ValidateAll checks the field values on FindGenreRequest 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 FindGenreRequestMultiError, or nil if none found.
type FindGenreRequestMultiError ¶
type FindGenreRequestMultiError []error
FindGenreRequestMultiError is an error wrapping multiple validation errors returned by FindGenreRequest.ValidateAll() if the designated constraints aren't met.
func (FindGenreRequestMultiError) AllErrors ¶
func (m FindGenreRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindGenreRequestMultiError) Error ¶
func (m FindGenreRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindGenreRequestValidationError ¶
type FindGenreRequestValidationError struct {
// contains filtered or unexported fields
}
FindGenreRequestValidationError is the validation error returned by FindGenreRequest.Validate if the designated constraints aren't met.
func (FindGenreRequestValidationError) Cause ¶
func (e FindGenreRequestValidationError) Cause() error
Cause function returns cause value.
func (FindGenreRequestValidationError) Error ¶
func (e FindGenreRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FindGenreRequestValidationError) ErrorName ¶
func (e FindGenreRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FindGenreRequestValidationError) Field ¶
func (e FindGenreRequestValidationError) Field() string
Field function returns field value.
func (FindGenreRequestValidationError) Key ¶
func (e FindGenreRequestValidationError) Key() bool
Key function returns key value.
func (FindGenreRequestValidationError) Reason ¶
func (e FindGenreRequestValidationError) Reason() string
Reason function returns reason value.
type FindGenreResp ¶
type FindGenreResp struct { Genres []*GenreResp `protobuf:"bytes,1,rep,name=genres,proto3" json:"genres,omitempty"` // contains filtered or unexported fields }
func (*FindGenreResp) Descriptor
deprecated
func (*FindGenreResp) Descriptor() ([]byte, []int)
Deprecated: Use FindGenreResp.ProtoReflect.Descriptor instead.
func (*FindGenreResp) GetGenres ¶ added in v1.0.6
func (x *FindGenreResp) GetGenres() []*GenreResp
func (*FindGenreResp) ProtoMessage ¶
func (*FindGenreResp) ProtoMessage()
func (*FindGenreResp) ProtoReflect ¶
func (x *FindGenreResp) ProtoReflect() protoreflect.Message
func (*FindGenreResp) Reset ¶
func (x *FindGenreResp) Reset()
func (*FindGenreResp) String ¶
func (x *FindGenreResp) String() string
func (*FindGenreResp) Validate ¶
func (m *FindGenreResp) Validate() error
Validate checks the field values on FindGenreResp 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 (*FindGenreResp) ValidateAll ¶
func (m *FindGenreResp) ValidateAll() error
ValidateAll checks the field values on FindGenreResp 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 FindGenreRespMultiError, or nil if none found.
type FindGenreRespMultiError ¶
type FindGenreRespMultiError []error
FindGenreRespMultiError is an error wrapping multiple validation errors returned by FindGenreResp.ValidateAll() if the designated constraints aren't met.
func (FindGenreRespMultiError) AllErrors ¶
func (m FindGenreRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindGenreRespMultiError) Error ¶
func (m FindGenreRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindGenreRespValidationError ¶
type FindGenreRespValidationError struct {
// contains filtered or unexported fields
}
FindGenreRespValidationError is the validation error returned by FindGenreResp.Validate if the designated constraints aren't met.
func (FindGenreRespValidationError) Cause ¶
func (e FindGenreRespValidationError) Cause() error
Cause function returns cause value.
func (FindGenreRespValidationError) Error ¶
func (e FindGenreRespValidationError) Error() string
Error satisfies the builtin error interface
func (FindGenreRespValidationError) ErrorName ¶
func (e FindGenreRespValidationError) ErrorName() string
ErrorName returns error name.
func (FindGenreRespValidationError) Field ¶
func (e FindGenreRespValidationError) Field() string
Field function returns field value.
func (FindGenreRespValidationError) Key ¶
func (e FindGenreRespValidationError) Key() bool
Key function returns key value.
func (FindGenreRespValidationError) Reason ¶
func (e FindGenreRespValidationError) Reason() string
Reason function returns reason value.
type GenreRemoteServiceClient ¶
type GenreRemoteServiceClient interface {
FindGenre(ctx context.Context, in *FindGenreRequest, opts ...grpc.CallOption) (*FindGenreResp, error)
}
GenreRemoteServiceClient is the client API for GenreRemoteService 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 NewGenreRemoteServiceClient ¶
func NewGenreRemoteServiceClient(cc grpc.ClientConnInterface) GenreRemoteServiceClient
type GenreRemoteServiceHTTPClient ¶
type GenreRemoteServiceHTTPClient interface {
FindGenre(ctx context.Context, req *FindGenreRequest, opts ...http.CallOption) (rsp *FindGenreResp, err error)
}
func NewGenreRemoteServiceHTTPClient ¶
func NewGenreRemoteServiceHTTPClient(client *http.Client) GenreRemoteServiceHTTPClient
type GenreRemoteServiceHTTPClientImpl ¶
type GenreRemoteServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*GenreRemoteServiceHTTPClientImpl) FindGenre ¶
func (c *GenreRemoteServiceHTTPClientImpl) FindGenre(ctx context.Context, in *FindGenreRequest, opts ...http.CallOption) (*FindGenreResp, error)
type GenreRemoteServiceHTTPServer ¶
type GenreRemoteServiceHTTPServer interface {
FindGenre(context.Context, *FindGenreRequest) (*FindGenreResp, error)
}
type GenreRemoteServiceServer ¶
type GenreRemoteServiceServer interface { FindGenre(context.Context, *FindGenreRequest) (*FindGenreResp, error) // contains filtered or unexported methods }
GenreRemoteServiceServer is the server API for GenreRemoteService service. All implementations must embed UnimplementedGenreRemoteServiceServer for forward compatibility
type GenreResp ¶
type GenreResp 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 (*GenreResp) Descriptor
deprecated
func (*GenreResp) ProtoMessage ¶
func (*GenreResp) ProtoMessage()
func (*GenreResp) ProtoReflect ¶
func (x *GenreResp) ProtoReflect() protoreflect.Message
func (*GenreResp) Validate ¶
Validate checks the field values on GenreResp 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 (*GenreResp) ValidateAll ¶
ValidateAll checks the field values on GenreResp 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 GenreRespMultiError, or nil if none found.
type GenreRespMultiError ¶
type GenreRespMultiError []error
GenreRespMultiError is an error wrapping multiple validation errors returned by GenreResp.ValidateAll() if the designated constraints aren't met.
func (GenreRespMultiError) AllErrors ¶
func (m GenreRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GenreRespMultiError) Error ¶
func (m GenreRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GenreRespValidationError ¶
type GenreRespValidationError struct {
// contains filtered or unexported fields
}
GenreRespValidationError is the validation error returned by GenreResp.Validate if the designated constraints aren't met.
func (GenreRespValidationError) Cause ¶
func (e GenreRespValidationError) Cause() error
Cause function returns cause value.
func (GenreRespValidationError) Error ¶
func (e GenreRespValidationError) Error() string
Error satisfies the builtin error interface
func (GenreRespValidationError) ErrorName ¶
func (e GenreRespValidationError) ErrorName() string
ErrorName returns error name.
func (GenreRespValidationError) Field ¶
func (e GenreRespValidationError) Field() string
Field function returns field value.
func (GenreRespValidationError) Key ¶
func (e GenreRespValidationError) Key() bool
Key function returns key value.
func (GenreRespValidationError) Reason ¶
func (e GenreRespValidationError) Reason() string
Reason function returns reason value.
type UnimplementedGenreRemoteServiceServer ¶
type UnimplementedGenreRemoteServiceServer struct { }
UnimplementedGenreRemoteServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGenreRemoteServiceServer) FindGenre ¶
func (UnimplementedGenreRemoteServiceServer) FindGenre(context.Context, *FindGenreRequest) (*FindGenreResp, error)
type UnsafeGenreRemoteServiceServer ¶
type UnsafeGenreRemoteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGenreRemoteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GenreRemoteServiceServer will result in compilation errors.