Documentation ¶
Overview ¶
Package intstore is a generated protocol buffer package.
It is generated from these files:
intstore.proto
It has these top-level messages:
Item SetResponse GetRequest Summary ListItemsRequest
Index ¶
- func RegisterIntStoreServer(s *grpc.Server, srv IntStoreServer)
- type GetRequest
- type IntStoreClient
- type IntStoreServer
- type IntStore_ListItemsClient
- type IntStore_ListItemsServer
- type IntStore_SetStreamClient
- type IntStore_SetStreamServer
- type IntStore_StreamChatClient
- type IntStore_StreamChatServer
- type Item
- type ListItemsRequest
- type SetResponse
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterIntStoreServer ¶
func RegisterIntStoreServer(s *grpc.Server, srv IntStoreServer)
Types ¶
type GetRequest ¶
type GetRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetName ¶
func (m *GetRequest) GetName() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
type IntStoreClient ¶
type IntStoreClient interface { Set(ctx context.Context, in *Item, opts ...grpc.CallOption) (*SetResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Item, error) // A server-to-client streaming RPC. ListItems(ctx context.Context, in *ListItemsRequest, opts ...grpc.CallOption) (IntStore_ListItemsClient, error) // A client-to-server streaming RPC. SetStream(ctx context.Context, opts ...grpc.CallOption) (IntStore_SetStreamClient, error) // A Bidirectional streaming RPC. StreamChat(ctx context.Context, opts ...grpc.CallOption) (IntStore_StreamChatClient, error) }
func NewIntStoreClient ¶
func NewIntStoreClient(cc *grpc.ClientConn) IntStoreClient
type IntStoreServer ¶
type IntStoreServer interface { Set(context.Context, *Item) (*SetResponse, error) Get(context.Context, *GetRequest) (*Item, error) // A server-to-client streaming RPC. ListItems(*ListItemsRequest, IntStore_ListItemsServer) error // A client-to-server streaming RPC. SetStream(IntStore_SetStreamServer) error // A Bidirectional streaming RPC. StreamChat(IntStore_StreamChatServer) error }
type IntStore_ListItemsClient ¶
type IntStore_ListItemsClient interface { Recv() (*Item, error) grpc.ClientStream }
type IntStore_ListItemsServer ¶
type IntStore_ListItemsServer interface { Send(*Item) error grpc.ServerStream }
type Item ¶
type Item struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Value int32 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"` }
func (*Item) Descriptor ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
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
type SetResponse ¶
type SetResponse struct {
PrevValue int32 `protobuf:"varint,1,opt,name=prev_value,json=prevValue" json:"prev_value,omitempty"`
}
func (*SetResponse) Descriptor ¶
func (*SetResponse) Descriptor() ([]byte, []int)
func (*SetResponse) GetPrevValue ¶
func (m *SetResponse) GetPrevValue() int32
func (*SetResponse) ProtoMessage ¶
func (*SetResponse) ProtoMessage()
func (*SetResponse) Reset ¶
func (m *SetResponse) Reset()
func (*SetResponse) String ¶
func (m *SetResponse) String() string
type Summary ¶
type Summary struct {
Count int32 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (*Summary) Descriptor ¶
func (*Summary) ProtoMessage ¶
func (*Summary) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.