base

package
v2.0.0-...-d37b9fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2024 License: BSD-2-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VarietyService_GetVariety_FullMethodName = "/base.VarietyService/GetVariety"
)

Variables

View Source
var File_base_variety_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (GetVarietyRequestValidationError) Error

Error satisfies the builtin error interface

func (GetVarietyRequestValidationError) ErrorName

ErrorName returns error name.

func (GetVarietyRequestValidationError) Field

Field function returns field value.

func (GetVarietyRequestValidationError) Key

Key function returns key value.

func (GetVarietyRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetVarietyResponseValidationError) Error

Error satisfies the builtin error interface

func (GetVarietyResponseValidationError) ErrorName

ErrorName returns error name.

func (GetVarietyResponseValidationError) Field

Field function returns field value.

func (GetVarietyResponseValidationError) Key

Key function returns key value.

func (GetVarietyResponseValidationError) Reason

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

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.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL