Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterQuoteServiceServer(s grpc.ServiceRegistrar, srv QuoteServiceServer)
- type GetQuoteRequest
- type GetQuoteResponse
- func (*GetQuoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetQuoteResponse) GetAuthor() string
- func (x *GetQuoteResponse) GetQuote() string
- func (x *GetQuoteResponse) GetSource() string
- func (*GetQuoteResponse) ProtoMessage()
- func (x *GetQuoteResponse) ProtoReflect() protoreflect.Message
- func (x *GetQuoteResponse) Reset()
- func (x *GetQuoteResponse) String() string
- type QuoteServiceClient
- type QuoteServiceServer
- type UnimplementedQuoteServiceServer
- type UnsafeQuoteServiceServer
Constants ¶
const (
QuoteService_GetQuote_FullMethodName = "/quote.v1.QuoteService/GetQuote"
)
Variables ¶
var File_quote_v1_quote_proto protoreflect.FileDescriptor
var QuoteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "quote.v1.QuoteService", HandlerType: (*QuoteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetQuote", Handler: _QuoteService_GetQuote_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "quote/v1/quote.proto", }
QuoteService_ServiceDesc is the grpc.ServiceDesc for QuoteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterQuoteServiceServer ¶
func RegisterQuoteServiceServer(s grpc.ServiceRegistrar, srv QuoteServiceServer)
Types ¶
type GetQuoteRequest ¶
type GetQuoteRequest struct {
// contains filtered or unexported fields
}
func (*GetQuoteRequest) Descriptor
deprecated
func (*GetQuoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetQuoteRequest.ProtoReflect.Descriptor instead.
func (*GetQuoteRequest) ProtoMessage ¶
func (*GetQuoteRequest) ProtoMessage()
func (*GetQuoteRequest) ProtoReflect ¶
func (x *GetQuoteRequest) ProtoReflect() protoreflect.Message
func (*GetQuoteRequest) Reset ¶
func (x *GetQuoteRequest) Reset()
func (*GetQuoteRequest) String ¶
func (x *GetQuoteRequest) String() string
type GetQuoteResponse ¶
type GetQuoteResponse struct { Quote string `protobuf:"bytes,1,opt,name=quote,proto3" json:"quote,omitempty"` Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` // contains filtered or unexported fields }
func (*GetQuoteResponse) Descriptor
deprecated
func (*GetQuoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetQuoteResponse.ProtoReflect.Descriptor instead.
func (*GetQuoteResponse) GetAuthor ¶
func (x *GetQuoteResponse) GetAuthor() string
func (*GetQuoteResponse) GetQuote ¶
func (x *GetQuoteResponse) GetQuote() string
func (*GetQuoteResponse) GetSource ¶
func (x *GetQuoteResponse) GetSource() string
func (*GetQuoteResponse) ProtoMessage ¶
func (*GetQuoteResponse) ProtoMessage()
func (*GetQuoteResponse) ProtoReflect ¶
func (x *GetQuoteResponse) ProtoReflect() protoreflect.Message
func (*GetQuoteResponse) Reset ¶
func (x *GetQuoteResponse) Reset()
func (*GetQuoteResponse) String ¶
func (x *GetQuoteResponse) String() string
type QuoteServiceClient ¶
type QuoteServiceClient interface {
GetQuote(ctx context.Context, in *GetQuoteRequest, opts ...grpc.CallOption) (*GetQuoteResponse, error)
}
QuoteServiceClient is the client API for QuoteService 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 NewQuoteServiceClient ¶
func NewQuoteServiceClient(cc grpc.ClientConnInterface) QuoteServiceClient
type QuoteServiceServer ¶
type QuoteServiceServer interface { GetQuote(context.Context, *GetQuoteRequest) (*GetQuoteResponse, error) // contains filtered or unexported methods }
QuoteServiceServer is the server API for QuoteService service. All implementations must embed UnimplementedQuoteServiceServer for forward compatibility
type UnimplementedQuoteServiceServer ¶
type UnimplementedQuoteServiceServer struct { }
UnimplementedQuoteServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedQuoteServiceServer) GetQuote ¶
func (UnimplementedQuoteServiceServer) GetQuote(context.Context, *GetQuoteRequest) (*GetQuoteResponse, error)
type UnsafeQuoteServiceServer ¶
type UnsafeQuoteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeQuoteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QuoteServiceServer will result in compilation errors.