Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterVarietyServiceServer(s grpc.ServiceRegistrar, srv VarietyServiceServer)
- type GetVarietyRequest
- func (*GetVarietyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetVarietyRequest) GetSymbol() string
- func (*GetVarietyRequest) ProtoMessage()
- func (x *GetVarietyRequest) ProtoReflect() protoreflect.Message
- func (x *GetVarietyRequest) Reset()
- func (x *GetVarietyRequest) String() string
- func (m *GetVarietyRequest) Validate() error
- func (m *GetVarietyRequest) ValidateAll() error
- type GetVarietyRequestMultiError
- type GetVarietyRequestValidationError
- func (e GetVarietyRequestValidationError) Cause() error
- func (e GetVarietyRequestValidationError) Error() string
- func (e GetVarietyRequestValidationError) ErrorName() string
- func (e GetVarietyRequestValidationError) Field() string
- func (e GetVarietyRequestValidationError) Key() bool
- func (e GetVarietyRequestValidationError) Reason() string
- type GetVarietyResponse
- func (*GetVarietyResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetVarietyResponse) ProtoMessage()
- func (x *GetVarietyResponse) ProtoReflect() protoreflect.Message
- func (x *GetVarietyResponse) Reset()
- func (x *GetVarietyResponse) String() string
- func (m *GetVarietyResponse) Validate() error
- func (m *GetVarietyResponse) ValidateAll() error
- type GetVarietyResponseMultiError
- type GetVarietyResponseValidationError
- func (e GetVarietyResponseValidationError) Cause() error
- func (e GetVarietyResponseValidationError) Error() string
- func (e GetVarietyResponseValidationError) ErrorName() string
- func (e GetVarietyResponseValidationError) Field() string
- func (e GetVarietyResponseValidationError) Key() bool
- func (e GetVarietyResponseValidationError) Reason() string
- type UnimplementedVarietyServiceServer
- type UnsafeVarietyServiceServer
- type VarietyServiceClient
- type VarietyServiceServer
Constants ¶
const (
VarietyService_GetVariety_FullMethodName = "/base.VarietyService/GetVariety"
)
Variables ¶
var File_base_variety_proto protoreflect.FileDescriptor
var VarietyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "base.VarietyService", HandlerType: (*VarietyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVariety", Handler: _VarietyService_GetVariety_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "base/variety.proto", }
VarietyService_ServiceDesc is the grpc.ServiceDesc for VarietyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVarietyServiceServer ¶
func RegisterVarietyServiceServer(s grpc.ServiceRegistrar, srv VarietyServiceServer)
Types ¶
type GetVarietyRequest ¶
type GetVarietyRequest struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` // contains filtered or unexported fields }
func (*GetVarietyRequest) Descriptor
deprecated
func (*GetVarietyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetVarietyRequest.ProtoReflect.Descriptor instead.
func (*GetVarietyRequest) GetSymbol ¶
func (x *GetVarietyRequest) GetSymbol() string
func (*GetVarietyRequest) ProtoMessage ¶
func (*GetVarietyRequest) ProtoMessage()
func (*GetVarietyRequest) ProtoReflect ¶
func (x *GetVarietyRequest) ProtoReflect() protoreflect.Message
func (*GetVarietyRequest) Reset ¶
func (x *GetVarietyRequest) Reset()
func (*GetVarietyRequest) String ¶
func (x *GetVarietyRequest) String() string
func (*GetVarietyRequest) Validate ¶
func (m *GetVarietyRequest) Validate() error
Validate checks the field values on GetVarietyRequest 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 (*GetVarietyRequest) ValidateAll ¶
func (m *GetVarietyRequest) ValidateAll() error
ValidateAll checks the field values on GetVarietyRequest 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 GetVarietyRequestMultiError, or nil if none found.
type GetVarietyRequestMultiError ¶
type GetVarietyRequestMultiError []error
GetVarietyRequestMultiError is an error wrapping multiple validation errors returned by GetVarietyRequest.ValidateAll() if the designated constraints aren't met.
func (GetVarietyRequestMultiError) AllErrors ¶
func (m GetVarietyRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetVarietyRequestMultiError) Error ¶
func (m GetVarietyRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetVarietyRequestValidationError ¶
type GetVarietyRequestValidationError struct {
// contains filtered or unexported fields
}
GetVarietyRequestValidationError is the validation error returned by GetVarietyRequest.Validate if the designated constraints aren't met.
func (GetVarietyRequestValidationError) Cause ¶
func (e GetVarietyRequestValidationError) Cause() error
Cause function returns cause value.
func (GetVarietyRequestValidationError) Error ¶
func (e GetVarietyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetVarietyRequestValidationError) ErrorName ¶
func (e GetVarietyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetVarietyRequestValidationError) Field ¶
func (e GetVarietyRequestValidationError) Field() string
Field function returns field value.
func (GetVarietyRequestValidationError) Key ¶
func (e GetVarietyRequestValidationError) Key() bool
Key function returns key value.
func (GetVarietyRequestValidationError) Reason ¶
func (e GetVarietyRequestValidationError) Reason() string
Reason function returns reason value.
type GetVarietyResponse ¶
type GetVarietyResponse struct {
// contains filtered or unexported fields
}
func (*GetVarietyResponse) Descriptor
deprecated
func (*GetVarietyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetVarietyResponse.ProtoReflect.Descriptor instead.
func (*GetVarietyResponse) ProtoMessage ¶
func (*GetVarietyResponse) ProtoMessage()
func (*GetVarietyResponse) ProtoReflect ¶
func (x *GetVarietyResponse) ProtoReflect() protoreflect.Message
func (*GetVarietyResponse) Reset ¶
func (x *GetVarietyResponse) Reset()
func (*GetVarietyResponse) String ¶
func (x *GetVarietyResponse) String() string
func (*GetVarietyResponse) Validate ¶
func (m *GetVarietyResponse) Validate() error
Validate checks the field values on GetVarietyResponse 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 (*GetVarietyResponse) ValidateAll ¶
func (m *GetVarietyResponse) ValidateAll() error
ValidateAll checks the field values on GetVarietyResponse 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 GetVarietyResponseMultiError, or nil if none found.
type GetVarietyResponseMultiError ¶
type GetVarietyResponseMultiError []error
GetVarietyResponseMultiError is an error wrapping multiple validation errors returned by GetVarietyResponse.ValidateAll() if the designated constraints aren't met.
func (GetVarietyResponseMultiError) AllErrors ¶
func (m GetVarietyResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetVarietyResponseMultiError) Error ¶
func (m GetVarietyResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetVarietyResponseValidationError ¶
type GetVarietyResponseValidationError struct {
// contains filtered or unexported fields
}
GetVarietyResponseValidationError is the validation error returned by GetVarietyResponse.Validate if the designated constraints aren't met.
func (GetVarietyResponseValidationError) Cause ¶
func (e GetVarietyResponseValidationError) Cause() error
Cause function returns cause value.
func (GetVarietyResponseValidationError) Error ¶
func (e GetVarietyResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetVarietyResponseValidationError) ErrorName ¶
func (e GetVarietyResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetVarietyResponseValidationError) Field ¶
func (e GetVarietyResponseValidationError) Field() string
Field function returns field value.
func (GetVarietyResponseValidationError) Key ¶
func (e GetVarietyResponseValidationError) Key() bool
Key function returns key value.
func (GetVarietyResponseValidationError) Reason ¶
func (e GetVarietyResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedVarietyServiceServer ¶
type UnimplementedVarietyServiceServer struct{}
UnimplementedVarietyServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedVarietyServiceServer) GetVariety ¶
func (UnimplementedVarietyServiceServer) GetVariety(context.Context, *GetVarietyRequest) (*GetVarietyResponse, error)
type UnsafeVarietyServiceServer ¶
type UnsafeVarietyServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVarietyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VarietyServiceServer will result in compilation errors.
type VarietyServiceClient ¶
type VarietyServiceClient interface {
GetVariety(ctx context.Context, in *GetVarietyRequest, opts ...grpc.CallOption) (*GetVarietyResponse, error)
}
VarietyServiceClient is the client API for VarietyService 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 NewVarietyServiceClient ¶
func NewVarietyServiceClient(cc grpc.ClientConnInterface) VarietyServiceClient
type VarietyServiceServer ¶
type VarietyServiceServer interface { GetVariety(context.Context, *GetVarietyRequest) (*GetVarietyResponse, error) // contains filtered or unexported methods }
VarietyServiceServer is the server API for VarietyService service. All implementations must embed UnimplementedVarietyServiceServer for forward compatibility.