Documentation ¶
Index ¶
- func RegisterOrdersServer(s *grpc.Server, srv OrdersServer)
- type AddRequest
- func (*AddRequest) Descriptor() ([]byte, []int)
- func (m *AddRequest) GetFields() *Fields
- func (*AddRequest) ProtoMessage()
- func (m *AddRequest) Reset()
- func (m *AddRequest) String() string
- func (m *AddRequest) XXX_DiscardUnknown()
- func (m *AddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddRequest) XXX_Merge(src proto.Message)
- func (m *AddRequest) XXX_Size() int
- func (m *AddRequest) XXX_Unmarshal(b []byte) error
- type AddResponse
- func (*AddResponse) Descriptor() ([]byte, []int)
- func (m *AddResponse) GetId() string
- func (*AddResponse) ProtoMessage()
- func (m *AddResponse) Reset()
- func (m *AddResponse) String() string
- func (m *AddResponse) XXX_DiscardUnknown()
- func (m *AddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddResponse) XXX_Merge(src proto.Message)
- func (m *AddResponse) XXX_Size() int
- func (m *AddResponse) XXX_Unmarshal(b []byte) error
- type Fields
- func (*Fields) Descriptor() ([]byte, []int)
- func (m *Fields) GetCompanyId() int64
- func (m *Fields) GetItems() []*Item
- func (m *Fields) GetUserId() string
- func (*Fields) ProtoMessage()
- func (m *Fields) Reset()
- func (m *Fields) String() string
- func (m *Fields) XXX_DiscardUnknown()
- func (m *Fields) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Fields) XXX_Merge(src proto.Message)
- func (m *Fields) XXX_Size() int
- func (m *Fields) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetId() string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetOrder() *Order
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) String() string
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type Item
- func (*Item) Descriptor() ([]byte, []int)
- func (m *Item) GetDesc() string
- func (m *Item) GetId() string
- func (m *Item) GetPrice() int64
- func (*Item) ProtoMessage()
- func (m *Item) Reset()
- func (m *Item) String() string
- func (m *Item) XXX_DiscardUnknown()
- func (m *Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Item) XXX_Merge(src proto.Message)
- func (m *Item) XXX_Size() int
- func (m *Item) XXX_Unmarshal(b []byte) error
- type Order
- func (*Order) Descriptor() ([]byte, []int)
- func (m *Order) GetFields() *Fields
- func (m *Order) GetId() string
- func (*Order) ProtoMessage()
- func (m *Order) Reset()
- func (m *Order) String() string
- func (m *Order) XXX_DiscardUnknown()
- func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Order) XXX_Merge(src proto.Message)
- func (m *Order) XXX_Size() int
- func (m *Order) XXX_Unmarshal(b []byte) error
- type OrdersClient
- type OrdersServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterOrdersServer ¶
func RegisterOrdersServer(s *grpc.Server, srv OrdersServer)
Types ¶
type AddRequest ¶
type AddRequest struct { Fields *Fields `protobuf:"bytes,1,opt,name=fields,proto3" json:"fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddRequest) Descriptor ¶
func (*AddRequest) Descriptor() ([]byte, []int)
func (*AddRequest) GetFields ¶
func (m *AddRequest) GetFields() *Fields
func (*AddRequest) ProtoMessage ¶
func (*AddRequest) ProtoMessage()
func (*AddRequest) Reset ¶
func (m *AddRequest) Reset()
func (*AddRequest) String ¶
func (m *AddRequest) String() string
func (*AddRequest) XXX_DiscardUnknown ¶
func (m *AddRequest) XXX_DiscardUnknown()
func (*AddRequest) XXX_Marshal ¶
func (m *AddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddRequest) XXX_Merge ¶
func (m *AddRequest) XXX_Merge(src proto.Message)
func (*AddRequest) XXX_Size ¶
func (m *AddRequest) XXX_Size() int
func (*AddRequest) XXX_Unmarshal ¶
func (m *AddRequest) XXX_Unmarshal(b []byte) error
type AddResponse ¶
type AddResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddResponse) Descriptor ¶
func (*AddResponse) Descriptor() ([]byte, []int)
func (*AddResponse) GetId ¶
func (m *AddResponse) GetId() string
func (*AddResponse) ProtoMessage ¶
func (*AddResponse) ProtoMessage()
func (*AddResponse) Reset ¶
func (m *AddResponse) Reset()
func (*AddResponse) String ¶
func (m *AddResponse) String() string
func (*AddResponse) XXX_DiscardUnknown ¶
func (m *AddResponse) XXX_DiscardUnknown()
func (*AddResponse) XXX_Marshal ¶
func (m *AddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddResponse) XXX_Merge ¶
func (m *AddResponse) XXX_Merge(src proto.Message)
func (*AddResponse) XXX_Size ¶
func (m *AddResponse) XXX_Size() int
func (*AddResponse) XXX_Unmarshal ¶
func (m *AddResponse) XXX_Unmarshal(b []byte) error
type Fields ¶
type Fields struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Items []*Item `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` CompanyId int64 `protobuf:"varint,3,opt,name=companyId,proto3" json:"companyId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Fields) Descriptor ¶
func (*Fields) GetCompanyId ¶
func (*Fields) ProtoMessage ¶
func (*Fields) ProtoMessage()
func (*Fields) XXX_DiscardUnknown ¶
func (m *Fields) XXX_DiscardUnknown()
func (*Fields) XXX_Marshal ¶
func (*Fields) XXX_Unmarshal ¶
type GetRequest ¶
type GetRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Define the request / response messages.
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetId ¶
func (m *GetRequest) GetId() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetResponse ¶
type GetResponse struct { Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetOrder ¶
func (m *GetResponse) GetOrder() *Order
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) String ¶
func (m *GetResponse) String() string
func (*GetResponse) XXX_DiscardUnknown ¶
func (m *GetResponse) XXX_DiscardUnknown()
func (*GetResponse) XXX_Marshal ¶
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetResponse) XXX_Merge ¶
func (m *GetResponse) XXX_Merge(src proto.Message)
func (*GetResponse) XXX_Size ¶
func (m *GetResponse) XXX_Size() int
func (*GetResponse) XXX_Unmarshal ¶
func (m *GetResponse) XXX_Unmarshal(b []byte) error
type Item ¶
type Item struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Item) Descriptor ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) XXX_DiscardUnknown ¶
func (m *Item) XXX_DiscardUnknown()
func (*Item) XXX_Unmarshal ¶
type Order ¶
type Order struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Fields *Fields `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Define an order.
func (*Order) Descriptor ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) XXX_DiscardUnknown ¶
func (m *Order) XXX_DiscardUnknown()
func (*Order) XXX_Marshal ¶
func (*Order) XXX_Unmarshal ¶
type OrdersClient ¶
type OrdersClient interface { Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) }
OrdersClient is the client API for Orders service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOrdersClient ¶
func NewOrdersClient(cc *grpc.ClientConn) OrdersClient
type OrdersServer ¶
type OrdersServer interface { Get(context.Context, *GetRequest) (*GetResponse, error) Add(context.Context, *AddRequest) (*AddResponse, error) }
OrdersServer is the server API for Orders service.
Click to show internal directories.
Click to hide internal directories.