Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterActorRemoteServiceHTTPServer(s *http.Server, srv ActorRemoteServiceHTTPServer)
- func RegisterActorRemoteServiceServer(s grpc.ServiceRegistrar, srv ActorRemoteServiceServer)
- type ActorRemoteServiceClient
- type ActorRemoteServiceHTTPClient
- type ActorRemoteServiceHTTPClientImpl
- type ActorRemoteServiceHTTPServer
- type ActorRemoteServiceServer
- type ActorResp
- func (*ActorResp) Descriptor() ([]byte, []int)deprecated
- func (x *ActorResp) GetAdult() bool
- func (x *ActorResp) GetCharacter() string
- func (x *ActorResp) GetGender() int32
- func (x *ActorResp) GetId() int64
- func (x *ActorResp) GetName() string
- func (x *ActorResp) GetOriginalName() string
- func (x *ActorResp) GetProfile() string
- func (*ActorResp) ProtoMessage()
- func (x *ActorResp) ProtoReflect() protoreflect.Message
- func (x *ActorResp) Reset()
- func (x *ActorResp) String() string
- func (m *ActorResp) Validate() error
- func (m *ActorResp) ValidateAll() error
- type ActorRespMultiError
- type ActorRespValidationError
- type FindActorRequest
- func (*FindActorRequest) Descriptor() ([]byte, []int)deprecated
- func (*FindActorRequest) ProtoMessage()
- func (x *FindActorRequest) ProtoReflect() protoreflect.Message
- func (x *FindActorRequest) Reset()
- func (x *FindActorRequest) String() string
- func (m *FindActorRequest) Validate() error
- func (m *FindActorRequest) ValidateAll() error
- type FindActorRequestMultiError
- type FindActorRequestValidationError
- func (e FindActorRequestValidationError) Cause() error
- func (e FindActorRequestValidationError) Error() string
- func (e FindActorRequestValidationError) ErrorName() string
- func (e FindActorRequestValidationError) Field() string
- func (e FindActorRequestValidationError) Key() bool
- func (e FindActorRequestValidationError) Reason() string
- type FindActorResp
- func (*FindActorResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindActorResp) GetActors() []*ActorResp
- func (*FindActorResp) ProtoMessage()
- func (x *FindActorResp) ProtoReflect() protoreflect.Message
- func (x *FindActorResp) Reset()
- func (x *FindActorResp) String() string
- func (m *FindActorResp) Validate() error
- func (m *FindActorResp) ValidateAll() error
- type FindActorRespMultiError
- type FindActorRespValidationError
- func (e FindActorRespValidationError) Cause() error
- func (e FindActorRespValidationError) Error() string
- func (e FindActorRespValidationError) ErrorName() string
- func (e FindActorRespValidationError) Field() string
- func (e FindActorRespValidationError) Key() bool
- func (e FindActorRespValidationError) Reason() string
- type UnimplementedActorRemoteServiceServer
- type UnsafeActorRemoteServiceServer
Constants ¶
const (
ActorRemoteService_FindGenre_FullMethodName = "/gnboot.ActorRemoteService/FindGenre"
)
const OperationActorRemoteServiceFindGenre = "/gnboot.ActorRemoteService/FindGenre"
Variables ¶
var ActorRemoteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gnboot.ActorRemoteService", HandlerType: (*ActorRemoteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindGenre", Handler: _ActorRemoteService_FindGenre_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/actor.proto", }
ActorRemoteService_ServiceDesc is the grpc.ServiceDesc for ActorRemoteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_actor_proto protoreflect.FileDescriptor
Functions ¶
func RegisterActorRemoteServiceHTTPServer ¶
func RegisterActorRemoteServiceHTTPServer(s *http.Server, srv ActorRemoteServiceHTTPServer)
func RegisterActorRemoteServiceServer ¶
func RegisterActorRemoteServiceServer(s grpc.ServiceRegistrar, srv ActorRemoteServiceServer)
Types ¶
type ActorRemoteServiceClient ¶
type ActorRemoteServiceClient interface {
FindGenre(ctx context.Context, in *FindActorRequest, opts ...grpc.CallOption) (*FindActorResp, error)
}
ActorRemoteServiceClient is the client API for ActorRemoteService 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 NewActorRemoteServiceClient ¶
func NewActorRemoteServiceClient(cc grpc.ClientConnInterface) ActorRemoteServiceClient
type ActorRemoteServiceHTTPClient ¶
type ActorRemoteServiceHTTPClient interface {
FindGenre(ctx context.Context, req *FindActorRequest, opts ...http.CallOption) (rsp *FindActorResp, err error)
}
func NewActorRemoteServiceHTTPClient ¶
func NewActorRemoteServiceHTTPClient(client *http.Client) ActorRemoteServiceHTTPClient
type ActorRemoteServiceHTTPClientImpl ¶
type ActorRemoteServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ActorRemoteServiceHTTPClientImpl) FindGenre ¶
func (c *ActorRemoteServiceHTTPClientImpl) FindGenre(ctx context.Context, in *FindActorRequest, opts ...http.CallOption) (*FindActorResp, error)
type ActorRemoteServiceHTTPServer ¶
type ActorRemoteServiceHTTPServer interface {
FindGenre(context.Context, *FindActorRequest) (*FindActorResp, error)
}
type ActorRemoteServiceServer ¶
type ActorRemoteServiceServer interface { FindGenre(context.Context, *FindActorRequest) (*FindActorResp, error) // contains filtered or unexported methods }
ActorRemoteServiceServer is the server API for ActorRemoteService service. All implementations must embed UnimplementedActorRemoteServiceServer for forward compatibility
type ActorResp ¶
type ActorResp 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"` OriginalName string `protobuf:"bytes,3,opt,name=originalName,proto3" json:"originalName,omitempty"` Adult bool `protobuf:"varint,4,opt,name=adult,proto3" json:"adult,omitempty"` Gender int32 `protobuf:"varint,5,opt,name=gender,proto3" json:"gender,omitempty"` Character string `protobuf:"bytes,6,opt,name=character,proto3" json:"character,omitempty"` Profile string `protobuf:"bytes,7,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*ActorResp) Descriptor
deprecated
func (*ActorResp) GetCharacter ¶
func (*ActorResp) GetOriginalName ¶
func (*ActorResp) GetProfile ¶
func (*ActorResp) ProtoMessage ¶
func (*ActorResp) ProtoMessage()
func (*ActorResp) ProtoReflect ¶
func (x *ActorResp) ProtoReflect() protoreflect.Message
func (*ActorResp) Validate ¶
Validate checks the field values on ActorResp 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 (*ActorResp) ValidateAll ¶
ValidateAll checks the field values on ActorResp 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 ActorRespMultiError, or nil if none found.
type ActorRespMultiError ¶
type ActorRespMultiError []error
ActorRespMultiError is an error wrapping multiple validation errors returned by ActorResp.ValidateAll() if the designated constraints aren't met.
func (ActorRespMultiError) AllErrors ¶
func (m ActorRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ActorRespMultiError) Error ¶
func (m ActorRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ActorRespValidationError ¶
type ActorRespValidationError struct {
// contains filtered or unexported fields
}
ActorRespValidationError is the validation error returned by ActorResp.Validate if the designated constraints aren't met.
func (ActorRespValidationError) Cause ¶
func (e ActorRespValidationError) Cause() error
Cause function returns cause value.
func (ActorRespValidationError) Error ¶
func (e ActorRespValidationError) Error() string
Error satisfies the builtin error interface
func (ActorRespValidationError) ErrorName ¶
func (e ActorRespValidationError) ErrorName() string
ErrorName returns error name.
func (ActorRespValidationError) Field ¶
func (e ActorRespValidationError) Field() string
Field function returns field value.
func (ActorRespValidationError) Key ¶
func (e ActorRespValidationError) Key() bool
Key function returns key value.
func (ActorRespValidationError) Reason ¶
func (e ActorRespValidationError) Reason() string
Reason function returns reason value.
type FindActorRequest ¶
type FindActorRequest struct {
// contains filtered or unexported fields
}
func (*FindActorRequest) Descriptor
deprecated
func (*FindActorRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindActorRequest.ProtoReflect.Descriptor instead.
func (*FindActorRequest) ProtoMessage ¶
func (*FindActorRequest) ProtoMessage()
func (*FindActorRequest) ProtoReflect ¶
func (x *FindActorRequest) ProtoReflect() protoreflect.Message
func (*FindActorRequest) Reset ¶
func (x *FindActorRequest) Reset()
func (*FindActorRequest) String ¶
func (x *FindActorRequest) String() string
func (*FindActorRequest) Validate ¶
func (m *FindActorRequest) Validate() error
Validate checks the field values on FindActorRequest 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 (*FindActorRequest) ValidateAll ¶
func (m *FindActorRequest) ValidateAll() error
ValidateAll checks the field values on FindActorRequest 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 FindActorRequestMultiError, or nil if none found.
type FindActorRequestMultiError ¶
type FindActorRequestMultiError []error
FindActorRequestMultiError is an error wrapping multiple validation errors returned by FindActorRequest.ValidateAll() if the designated constraints aren't met.
func (FindActorRequestMultiError) AllErrors ¶
func (m FindActorRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindActorRequestMultiError) Error ¶
func (m FindActorRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindActorRequestValidationError ¶
type FindActorRequestValidationError struct {
// contains filtered or unexported fields
}
FindActorRequestValidationError is the validation error returned by FindActorRequest.Validate if the designated constraints aren't met.
func (FindActorRequestValidationError) Cause ¶
func (e FindActorRequestValidationError) Cause() error
Cause function returns cause value.
func (FindActorRequestValidationError) Error ¶
func (e FindActorRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FindActorRequestValidationError) ErrorName ¶
func (e FindActorRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FindActorRequestValidationError) Field ¶
func (e FindActorRequestValidationError) Field() string
Field function returns field value.
func (FindActorRequestValidationError) Key ¶
func (e FindActorRequestValidationError) Key() bool
Key function returns key value.
func (FindActorRequestValidationError) Reason ¶
func (e FindActorRequestValidationError) Reason() string
Reason function returns reason value.
type FindActorResp ¶
type FindActorResp struct { Actors []*ActorResp `protobuf:"bytes,1,rep,name=actors,proto3" json:"actors,omitempty"` // contains filtered or unexported fields }
func (*FindActorResp) Descriptor
deprecated
func (*FindActorResp) Descriptor() ([]byte, []int)
Deprecated: Use FindActorResp.ProtoReflect.Descriptor instead.
func (*FindActorResp) GetActors ¶ added in v1.0.6
func (x *FindActorResp) GetActors() []*ActorResp
func (*FindActorResp) ProtoMessage ¶
func (*FindActorResp) ProtoMessage()
func (*FindActorResp) ProtoReflect ¶
func (x *FindActorResp) ProtoReflect() protoreflect.Message
func (*FindActorResp) Reset ¶
func (x *FindActorResp) Reset()
func (*FindActorResp) String ¶
func (x *FindActorResp) String() string
func (*FindActorResp) Validate ¶
func (m *FindActorResp) Validate() error
Validate checks the field values on FindActorResp 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 (*FindActorResp) ValidateAll ¶
func (m *FindActorResp) ValidateAll() error
ValidateAll checks the field values on FindActorResp 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 FindActorRespMultiError, or nil if none found.
type FindActorRespMultiError ¶
type FindActorRespMultiError []error
FindActorRespMultiError is an error wrapping multiple validation errors returned by FindActorResp.ValidateAll() if the designated constraints aren't met.
func (FindActorRespMultiError) AllErrors ¶
func (m FindActorRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindActorRespMultiError) Error ¶
func (m FindActorRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindActorRespValidationError ¶
type FindActorRespValidationError struct {
// contains filtered or unexported fields
}
FindActorRespValidationError is the validation error returned by FindActorResp.Validate if the designated constraints aren't met.
func (FindActorRespValidationError) Cause ¶
func (e FindActorRespValidationError) Cause() error
Cause function returns cause value.
func (FindActorRespValidationError) Error ¶
func (e FindActorRespValidationError) Error() string
Error satisfies the builtin error interface
func (FindActorRespValidationError) ErrorName ¶
func (e FindActorRespValidationError) ErrorName() string
ErrorName returns error name.
func (FindActorRespValidationError) Field ¶
func (e FindActorRespValidationError) Field() string
Field function returns field value.
func (FindActorRespValidationError) Key ¶
func (e FindActorRespValidationError) Key() bool
Key function returns key value.
func (FindActorRespValidationError) Reason ¶
func (e FindActorRespValidationError) Reason() string
Reason function returns reason value.
type UnimplementedActorRemoteServiceServer ¶
type UnimplementedActorRemoteServiceServer struct { }
UnimplementedActorRemoteServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedActorRemoteServiceServer) FindGenre ¶
func (UnimplementedActorRemoteServiceServer) FindGenre(context.Context, *FindActorRequest) (*FindActorResp, error)
type UnsafeActorRemoteServiceServer ¶
type UnsafeActorRemoteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeActorRemoteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ActorRemoteServiceServer will result in compilation errors.