intstore

package
v0.26.0 Latest Latest
Warning

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

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

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

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 IntStore_SetStreamClient

type IntStore_SetStreamClient interface {
	Send(*Item) error
	CloseAndRecv() (*Summary, error)
	grpc.ClientStream
}

type IntStore_SetStreamServer

type IntStore_SetStreamServer interface {
	SendAndClose(*Summary) error
	Recv() (*Item, error)
	grpc.ServerStream
}

type IntStore_StreamChatClient

type IntStore_StreamChatClient interface {
	Send(*Item) error
	Recv() (*Item, error)
	grpc.ClientStream
}

type IntStore_StreamChatServer

type IntStore_StreamChatServer interface {
	Send(*Item) error
	Recv() (*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) Descriptor() ([]byte, []int)

func (*Item) GetName

func (m *Item) GetName() string

func (*Item) GetValue

func (m *Item) GetValue() int32

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) Reset

func (m *Item) Reset()

func (*Item) String

func (m *Item) String() string

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

func (*Summary) GetCount

func (m *Summary) GetCount() int32

func (*Summary) ProtoMessage

func (*Summary) ProtoMessage()

func (*Summary) Reset

func (m *Summary) Reset()

func (*Summary) String

func (m *Summary) String() string

Jump to

Keyboard shortcuts

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