proto

package
v0.0.0-...-8b501b0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Quote) GetPrice

func (m *Quote) GetPrice() float64

func (*Quote) GetVendor

func (m *Quote) GetVendor() string

func (*Quote) ProtoMessage

func (*Quote) ProtoMessage()

func (*Quote) Reset

func (m *Quote) Reset()

func (*Quote) String

func (m *Quote) String() string

func (*Quote) XXX_DiscardUnknown

func (m *Quote) XXX_DiscardUnknown()

func (*Quote) XXX_Marshal

func (m *Quote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Quote) XXX_Merge

func (m *Quote) XXX_Merge(src proto.Message)

func (*Quote) XXX_Size

func (m *Quote) XXX_Size() int

func (*Quote) XXX_Unmarshal

func (m *Quote) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

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