item

package
v0.0.0-...-63088e7 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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

func (*Item) GetDescription

func (m *Item) GetDescription() string

func (*Item) GetId

func (m *Item) GetId() string

func (*Item) GetName

func (m *Item) GetName() string

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) Reset

func (m *Item) Reset()

func (*Item) String

func (m *Item) String() string

func (*Item) Validate

func (this *Item) Validate() error

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

Jump to

Keyboard shortcuts

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