Documentation ¶
Overview ¶
Package item is a generated protocol buffer package.
It is generated from these files:
item/item.proto
It has these top-level messages:
Item GetItemRequest ListItemsRequest ListItemsResponse
Package item is a generated protocol buffer package.
It is generated from these files:
item/item.proto
It has these top-level messages:
Item GetItemRequest ListItemsRequest ListItemsResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterItemServiceServer ¶
func RegisterItemServiceServer(s *grpc.Server, srv ItemServiceServer)
Types ¶
type GetItemRequest ¶
type GetItemRequest struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (*GetItemRequest) Descriptor ¶
func (*GetItemRequest) Descriptor() ([]byte, []int)
func (*GetItemRequest) GetId ¶
func (m *GetItemRequest) GetId() string
func (*GetItemRequest) ProtoMessage ¶
func (*GetItemRequest) ProtoMessage()
func (*GetItemRequest) Reset ¶
func (m *GetItemRequest) Reset()
func (*GetItemRequest) String ¶
func (m *GetItemRequest) String() string
func (*GetItemRequest) Validate ¶
func (this *GetItemRequest) Validate() error
type Item ¶
type Item struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` }
func (*Item) Descriptor ¶
func (*Item) GetDescription ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
type ItemServiceClient ¶
type ItemServiceClient interface { GetItem(ctx context.Context, in *GetItemRequest, opts ...grpc.CallOption) (*Item, error) ListItems(ctx context.Context, in *ListItemsRequest, opts ...grpc.CallOption) (*ListItemsResponse, error) }
func NewItemServiceClient ¶
func NewItemServiceClient(cc *grpc.ClientConn) ItemServiceClient
type ItemServiceServer ¶
type ItemServiceServer interface { GetItem(context.Context, *GetItemRequest) (*Item, error) ListItems(context.Context, *ListItemsRequest) (*ListItemsResponse, error) }
type ListItemsRequest ¶
type ListItemsRequest struct { }
func (*ListItemsRequest) Descriptor ¶
func (*ListItemsRequest) Descriptor() ([]byte, []int)
func (*ListItemsRequest) ProtoMessage ¶
func (*ListItemsRequest) ProtoMessage()
func (*ListItemsRequest) Reset ¶
func (m *ListItemsRequest) Reset()
func (*ListItemsRequest) String ¶
func (m *ListItemsRequest) String() string
func (*ListItemsRequest) Validate ¶
func (this *ListItemsRequest) Validate() error
type ListItemsResponse ¶
type ListItemsResponse struct {
Items []*Item `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}
func (*ListItemsResponse) Descriptor ¶
func (*ListItemsResponse) Descriptor() ([]byte, []int)
func (*ListItemsResponse) GetItems ¶
func (m *ListItemsResponse) GetItems() []*Item
func (*ListItemsResponse) ProtoMessage ¶
func (*ListItemsResponse) ProtoMessage()
func (*ListItemsResponse) Reset ¶
func (m *ListItemsResponse) Reset()
func (*ListItemsResponse) String ¶
func (m *ListItemsResponse) String() string
func (*ListItemsResponse) Validate ¶
func (this *ListItemsResponse) Validate() error
Click to show internal directories.
Click to hide internal directories.