Documentation ¶
Index ¶
- func RegisterQuoteServiceServer(s *grpc.Server, srv QuoteServiceServer)
- type Quote
- func (*Quote) Descriptor() ([]byte, []int)
- func (m *Quote) GetPrice() float64
- func (m *Quote) GetVendor() string
- func (*Quote) ProtoMessage()
- func (m *Quote) Reset()
- func (m *Quote) String() string
- func (m *Quote) XXX_DiscardUnknown()
- func (m *Quote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Quote) XXX_Merge(src proto.Message)
- func (m *Quote) XXX_Size() int
- func (m *Quote) XXX_Unmarshal(b []byte) error
- type QuoteServiceClient
- type QuoteServiceServer
- type QuotesRequest
- func (*QuotesRequest) Descriptor() ([]byte, []int)
- func (m *QuotesRequest) GetSKU() string
- func (*QuotesRequest) ProtoMessage()
- func (m *QuotesRequest) Reset()
- func (m *QuotesRequest) String() string
- func (m *QuotesRequest) XXX_DiscardUnknown()
- func (m *QuotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuotesRequest) XXX_Merge(src proto.Message)
- func (m *QuotesRequest) XXX_Size() int
- func (m *QuotesRequest) XXX_Unmarshal(b []byte) error
- type QuotesResponse
- func (*QuotesResponse) Descriptor() ([]byte, []int)
- func (m *QuotesResponse) GetQuotes() []*Quote
- func (*QuotesResponse) ProtoMessage()
- func (m *QuotesResponse) Reset()
- func (m *QuotesResponse) String() string
- func (m *QuotesResponse) XXX_DiscardUnknown()
- func (m *QuotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuotesResponse) XXX_Merge(src proto.Message)
- func (m *QuotesResponse) XXX_Size() int
- func (m *QuotesResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedQuoteServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterQuoteServiceServer ¶
func RegisterQuoteServiceServer(s *grpc.Server, srv QuoteServiceServer)
Types ¶
type Quote ¶
type Quote struct { Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` Price float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Quote) Descriptor ¶
func (*Quote) ProtoMessage ¶
func (*Quote) ProtoMessage()
func (*Quote) XXX_DiscardUnknown ¶
func (m *Quote) XXX_DiscardUnknown()
func (*Quote) XXX_Marshal ¶
func (*Quote) XXX_Unmarshal ¶
type QuoteServiceClient ¶
type QuoteServiceClient interface {
GetQuote(ctx context.Context, in *QuotesRequest, opts ...grpc.CallOption) (*QuotesResponse, error)
}
QuoteServiceClient is the client API for QuoteService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQuoteServiceClient ¶
func NewQuoteServiceClient(cc *grpc.ClientConn) QuoteServiceClient
type QuoteServiceServer ¶
type QuoteServiceServer interface {
GetQuote(context.Context, *QuotesRequest) (*QuotesResponse, error)
}
QuoteServiceServer is the server API for QuoteService service.
type QuotesRequest ¶
type QuotesRequest struct { SKU string `protobuf:"bytes,1,opt,name=SKU,proto3" json:"SKU,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QuotesRequest) Descriptor ¶
func (*QuotesRequest) Descriptor() ([]byte, []int)
func (*QuotesRequest) GetSKU ¶
func (m *QuotesRequest) GetSKU() string
func (*QuotesRequest) ProtoMessage ¶
func (*QuotesRequest) ProtoMessage()
func (*QuotesRequest) Reset ¶
func (m *QuotesRequest) Reset()
func (*QuotesRequest) String ¶
func (m *QuotesRequest) String() string
func (*QuotesRequest) XXX_DiscardUnknown ¶
func (m *QuotesRequest) XXX_DiscardUnknown()
func (*QuotesRequest) XXX_Marshal ¶
func (m *QuotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuotesRequest) XXX_Merge ¶
func (m *QuotesRequest) XXX_Merge(src proto.Message)
func (*QuotesRequest) XXX_Size ¶
func (m *QuotesRequest) XXX_Size() int
func (*QuotesRequest) XXX_Unmarshal ¶
func (m *QuotesRequest) XXX_Unmarshal(b []byte) error
type QuotesResponse ¶
type QuotesResponse struct { Quotes []*Quote `protobuf:"bytes,1,rep,name=quotes,proto3" json:"quotes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QuotesResponse) Descriptor ¶
func (*QuotesResponse) Descriptor() ([]byte, []int)
func (*QuotesResponse) GetQuotes ¶
func (m *QuotesResponse) GetQuotes() []*Quote
func (*QuotesResponse) ProtoMessage ¶
func (*QuotesResponse) ProtoMessage()
func (*QuotesResponse) Reset ¶
func (m *QuotesResponse) Reset()
func (*QuotesResponse) String ¶
func (m *QuotesResponse) String() string
func (*QuotesResponse) XXX_DiscardUnknown ¶
func (m *QuotesResponse) XXX_DiscardUnknown()
func (*QuotesResponse) XXX_Marshal ¶
func (m *QuotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuotesResponse) XXX_Merge ¶
func (m *QuotesResponse) XXX_Merge(src proto.Message)
func (*QuotesResponse) XXX_Size ¶
func (m *QuotesResponse) XXX_Size() int
func (*QuotesResponse) XXX_Unmarshal ¶
func (m *QuotesResponse) XXX_Unmarshal(b []byte) error
type UnimplementedQuoteServiceServer ¶
type UnimplementedQuoteServiceServer struct { }
UnimplementedQuoteServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedQuoteServiceServer) GetQuote ¶
func (*UnimplementedQuoteServiceServer) GetQuote(ctx context.Context, req *QuotesRequest) (*QuotesResponse, error)
Click to show internal directories.
Click to hide internal directories.