Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStudioRemoteServiceHTTPServer(s *http.Server, srv StudioRemoteServiceHTTPServer)
- func RegisterStudioRemoteServiceServer(s grpc.ServiceRegistrar, srv StudioRemoteServiceServer)
- type FindStudioRequest
- func (*FindStudioRequest) Descriptor() ([]byte, []int)deprecated
- func (*FindStudioRequest) ProtoMessage()
- func (x *FindStudioRequest) ProtoReflect() protoreflect.Message
- func (x *FindStudioRequest) Reset()
- func (x *FindStudioRequest) String() string
- func (m *FindStudioRequest) Validate() error
- func (m *FindStudioRequest) ValidateAll() error
- type FindStudioRequestMultiError
- type FindStudioRequestValidationError
- func (e FindStudioRequestValidationError) Cause() error
- func (e FindStudioRequestValidationError) Error() string
- func (e FindStudioRequestValidationError) ErrorName() string
- func (e FindStudioRequestValidationError) Field() string
- func (e FindStudioRequestValidationError) Key() bool
- func (e FindStudioRequestValidationError) Reason() string
- type FindStudioResp
- func (*FindStudioResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindStudioResp) GetStudios() []*StudioResp
- func (*FindStudioResp) ProtoMessage()
- func (x *FindStudioResp) ProtoReflect() protoreflect.Message
- func (x *FindStudioResp) Reset()
- func (x *FindStudioResp) String() string
- func (m *FindStudioResp) Validate() error
- func (m *FindStudioResp) ValidateAll() error
- type FindStudioRespMultiError
- type FindStudioRespValidationError
- func (e FindStudioRespValidationError) Cause() error
- func (e FindStudioRespValidationError) Error() string
- func (e FindStudioRespValidationError) ErrorName() string
- func (e FindStudioRespValidationError) Field() string
- func (e FindStudioRespValidationError) Key() bool
- func (e FindStudioRespValidationError) Reason() string
- type StudioRemoteServiceClient
- type StudioRemoteServiceHTTPClient
- type StudioRemoteServiceHTTPClientImpl
- type StudioRemoteServiceHTTPServer
- type StudioRemoteServiceServer
- type StudioResp
- func (*StudioResp) Descriptor() ([]byte, []int)deprecated
- func (x *StudioResp) GetCountry() string
- func (x *StudioResp) GetId() int64
- func (x *StudioResp) GetLogo() string
- func (x *StudioResp) GetName() string
- func (*StudioResp) ProtoMessage()
- func (x *StudioResp) ProtoReflect() protoreflect.Message
- func (x *StudioResp) Reset()
- func (x *StudioResp) String() string
- func (m *StudioResp) Validate() error
- func (m *StudioResp) ValidateAll() error
- type StudioRespMultiError
- type StudioRespValidationError
- type UnimplementedStudioRemoteServiceServer
- type UnsafeStudioRemoteServiceServer
Constants ¶
const OperationStudioRemoteServiceFindGenre = "/gnboot.StudioRemoteService/FindGenre"
const (
StudioRemoteService_FindGenre_FullMethodName = "/gnboot.StudioRemoteService/FindGenre"
)
Variables ¶
var File_proto_studio_proto protoreflect.FileDescriptor
var StudioRemoteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gnboot.StudioRemoteService", HandlerType: (*StudioRemoteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindGenre", Handler: _StudioRemoteService_FindGenre_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/studio.proto", }
StudioRemoteService_ServiceDesc is the grpc.ServiceDesc for StudioRemoteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStudioRemoteServiceHTTPServer ¶
func RegisterStudioRemoteServiceHTTPServer(s *http.Server, srv StudioRemoteServiceHTTPServer)
func RegisterStudioRemoteServiceServer ¶
func RegisterStudioRemoteServiceServer(s grpc.ServiceRegistrar, srv StudioRemoteServiceServer)
Types ¶
type FindStudioRequest ¶
type FindStudioRequest struct {
// contains filtered or unexported fields
}
func (*FindStudioRequest) Descriptor
deprecated
func (*FindStudioRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindStudioRequest.ProtoReflect.Descriptor instead.
func (*FindStudioRequest) ProtoMessage ¶
func (*FindStudioRequest) ProtoMessage()
func (*FindStudioRequest) ProtoReflect ¶
func (x *FindStudioRequest) ProtoReflect() protoreflect.Message
func (*FindStudioRequest) Reset ¶
func (x *FindStudioRequest) Reset()
func (*FindStudioRequest) String ¶
func (x *FindStudioRequest) String() string
func (*FindStudioRequest) Validate ¶
func (m *FindStudioRequest) Validate() error
Validate checks the field values on FindStudioRequest 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 (*FindStudioRequest) ValidateAll ¶
func (m *FindStudioRequest) ValidateAll() error
ValidateAll checks the field values on FindStudioRequest 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 FindStudioRequestMultiError, or nil if none found.
type FindStudioRequestMultiError ¶
type FindStudioRequestMultiError []error
FindStudioRequestMultiError is an error wrapping multiple validation errors returned by FindStudioRequest.ValidateAll() if the designated constraints aren't met.
func (FindStudioRequestMultiError) AllErrors ¶
func (m FindStudioRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindStudioRequestMultiError) Error ¶
func (m FindStudioRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindStudioRequestValidationError ¶
type FindStudioRequestValidationError struct {
// contains filtered or unexported fields
}
FindStudioRequestValidationError is the validation error returned by FindStudioRequest.Validate if the designated constraints aren't met.
func (FindStudioRequestValidationError) Cause ¶
func (e FindStudioRequestValidationError) Cause() error
Cause function returns cause value.
func (FindStudioRequestValidationError) Error ¶
func (e FindStudioRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FindStudioRequestValidationError) ErrorName ¶
func (e FindStudioRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FindStudioRequestValidationError) Field ¶
func (e FindStudioRequestValidationError) Field() string
Field function returns field value.
func (FindStudioRequestValidationError) Key ¶
func (e FindStudioRequestValidationError) Key() bool
Key function returns key value.
func (FindStudioRequestValidationError) Reason ¶
func (e FindStudioRequestValidationError) Reason() string
Reason function returns reason value.
type FindStudioResp ¶
type FindStudioResp struct { Studios []*StudioResp `protobuf:"bytes,1,rep,name=studios,proto3" json:"studios,omitempty"` // contains filtered or unexported fields }
func (*FindStudioResp) Descriptor
deprecated
func (*FindStudioResp) Descriptor() ([]byte, []int)
Deprecated: Use FindStudioResp.ProtoReflect.Descriptor instead.
func (*FindStudioResp) GetStudios ¶ added in v1.0.6
func (x *FindStudioResp) GetStudios() []*StudioResp
func (*FindStudioResp) ProtoMessage ¶
func (*FindStudioResp) ProtoMessage()
func (*FindStudioResp) ProtoReflect ¶
func (x *FindStudioResp) ProtoReflect() protoreflect.Message
func (*FindStudioResp) Reset ¶
func (x *FindStudioResp) Reset()
func (*FindStudioResp) String ¶
func (x *FindStudioResp) String() string
func (*FindStudioResp) Validate ¶
func (m *FindStudioResp) Validate() error
Validate checks the field values on FindStudioResp 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 (*FindStudioResp) ValidateAll ¶
func (m *FindStudioResp) ValidateAll() error
ValidateAll checks the field values on FindStudioResp 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 FindStudioRespMultiError, or nil if none found.
type FindStudioRespMultiError ¶
type FindStudioRespMultiError []error
FindStudioRespMultiError is an error wrapping multiple validation errors returned by FindStudioResp.ValidateAll() if the designated constraints aren't met.
func (FindStudioRespMultiError) AllErrors ¶
func (m FindStudioRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindStudioRespMultiError) Error ¶
func (m FindStudioRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindStudioRespValidationError ¶
type FindStudioRespValidationError struct {
// contains filtered or unexported fields
}
FindStudioRespValidationError is the validation error returned by FindStudioResp.Validate if the designated constraints aren't met.
func (FindStudioRespValidationError) Cause ¶
func (e FindStudioRespValidationError) Cause() error
Cause function returns cause value.
func (FindStudioRespValidationError) Error ¶
func (e FindStudioRespValidationError) Error() string
Error satisfies the builtin error interface
func (FindStudioRespValidationError) ErrorName ¶
func (e FindStudioRespValidationError) ErrorName() string
ErrorName returns error name.
func (FindStudioRespValidationError) Field ¶
func (e FindStudioRespValidationError) Field() string
Field function returns field value.
func (FindStudioRespValidationError) Key ¶
func (e FindStudioRespValidationError) Key() bool
Key function returns key value.
func (FindStudioRespValidationError) Reason ¶
func (e FindStudioRespValidationError) Reason() string
Reason function returns reason value.
type StudioRemoteServiceClient ¶
type StudioRemoteServiceClient interface {
FindGenre(ctx context.Context, in *FindStudioRequest, opts ...grpc.CallOption) (*FindStudioResp, error)
}
StudioRemoteServiceClient is the client API for StudioRemoteService 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 NewStudioRemoteServiceClient ¶
func NewStudioRemoteServiceClient(cc grpc.ClientConnInterface) StudioRemoteServiceClient
type StudioRemoteServiceHTTPClient ¶
type StudioRemoteServiceHTTPClient interface {
FindGenre(ctx context.Context, req *FindStudioRequest, opts ...http.CallOption) (rsp *FindStudioResp, err error)
}
func NewStudioRemoteServiceHTTPClient ¶
func NewStudioRemoteServiceHTTPClient(client *http.Client) StudioRemoteServiceHTTPClient
type StudioRemoteServiceHTTPClientImpl ¶
type StudioRemoteServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*StudioRemoteServiceHTTPClientImpl) FindGenre ¶
func (c *StudioRemoteServiceHTTPClientImpl) FindGenre(ctx context.Context, in *FindStudioRequest, opts ...http.CallOption) (*FindStudioResp, error)
type StudioRemoteServiceHTTPServer ¶
type StudioRemoteServiceHTTPServer interface {
FindGenre(context.Context, *FindStudioRequest) (*FindStudioResp, error)
}
type StudioRemoteServiceServer ¶
type StudioRemoteServiceServer interface { FindGenre(context.Context, *FindStudioRequest) (*FindStudioResp, error) // contains filtered or unexported methods }
StudioRemoteServiceServer is the server API for StudioRemoteService service. All implementations must embed UnimplementedStudioRemoteServiceServer for forward compatibility
type StudioResp ¶
type StudioResp 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"` Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"` Logo string `protobuf:"bytes,4,opt,name=logo,proto3" json:"logo,omitempty"` // contains filtered or unexported fields }
func (*StudioResp) Descriptor
deprecated
func (*StudioResp) Descriptor() ([]byte, []int)
Deprecated: Use StudioResp.ProtoReflect.Descriptor instead.
func (*StudioResp) GetCountry ¶
func (x *StudioResp) GetCountry() string
func (*StudioResp) GetId ¶
func (x *StudioResp) GetId() int64
func (*StudioResp) GetLogo ¶
func (x *StudioResp) GetLogo() string
func (*StudioResp) GetName ¶
func (x *StudioResp) GetName() string
func (*StudioResp) ProtoMessage ¶
func (*StudioResp) ProtoMessage()
func (*StudioResp) ProtoReflect ¶
func (x *StudioResp) ProtoReflect() protoreflect.Message
func (*StudioResp) Reset ¶
func (x *StudioResp) Reset()
func (*StudioResp) String ¶
func (x *StudioResp) String() string
func (*StudioResp) Validate ¶
func (m *StudioResp) Validate() error
Validate checks the field values on StudioResp 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 (*StudioResp) ValidateAll ¶
func (m *StudioResp) ValidateAll() error
ValidateAll checks the field values on StudioResp 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 StudioRespMultiError, or nil if none found.
type StudioRespMultiError ¶
type StudioRespMultiError []error
StudioRespMultiError is an error wrapping multiple validation errors returned by StudioResp.ValidateAll() if the designated constraints aren't met.
func (StudioRespMultiError) AllErrors ¶
func (m StudioRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StudioRespMultiError) Error ¶
func (m StudioRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StudioRespValidationError ¶
type StudioRespValidationError struct {
// contains filtered or unexported fields
}
StudioRespValidationError is the validation error returned by StudioResp.Validate if the designated constraints aren't met.
func (StudioRespValidationError) Cause ¶
func (e StudioRespValidationError) Cause() error
Cause function returns cause value.
func (StudioRespValidationError) Error ¶
func (e StudioRespValidationError) Error() string
Error satisfies the builtin error interface
func (StudioRespValidationError) ErrorName ¶
func (e StudioRespValidationError) ErrorName() string
ErrorName returns error name.
func (StudioRespValidationError) Field ¶
func (e StudioRespValidationError) Field() string
Field function returns field value.
func (StudioRespValidationError) Key ¶
func (e StudioRespValidationError) Key() bool
Key function returns key value.
func (StudioRespValidationError) Reason ¶
func (e StudioRespValidationError) Reason() string
Reason function returns reason value.
type UnimplementedStudioRemoteServiceServer ¶
type UnimplementedStudioRemoteServiceServer struct { }
UnimplementedStudioRemoteServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStudioRemoteServiceServer) FindGenre ¶
func (UnimplementedStudioRemoteServiceServer) FindGenre(context.Context, *FindStudioRequest) (*FindStudioResp, error)
type UnsafeStudioRemoteServiceServer ¶
type UnsafeStudioRemoteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStudioRemoteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StudioRemoteServiceServer will result in compilation errors.