Documentation ¶
Index ¶
- func RegisterCacheServer(s *grpc.Server, srv CacheServer)
- func RegisterCounterServer(s *grpc.Server, srv CounterServer)
- func RegisterFlagServer(s *grpc.Server, srv FlagServer)
- func RegisterKVServer(s *grpc.Server, srv KVServer)
- func RegisterSetServer(s *grpc.Server, srv SetServer)
- type CacheClient
- type CacheGetRequest
- func (*CacheGetRequest) Descriptor() ([]byte, []int)
- func (m *CacheGetRequest) GetKey() string
- func (*CacheGetRequest) ProtoMessage()
- func (m *CacheGetRequest) Reset()
- func (m *CacheGetRequest) String() string
- func (m *CacheGetRequest) XXX_DiscardUnknown()
- func (m *CacheGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CacheGetRequest) XXX_Merge(src proto.Message)
- func (m *CacheGetRequest) XXX_Size() int
- func (m *CacheGetRequest) XXX_Unmarshal(b []byte) error
- type CacheGetResponse
- func (*CacheGetResponse) Descriptor() ([]byte, []int)
- func (m *CacheGetResponse) GetValue() string
- func (*CacheGetResponse) ProtoMessage()
- func (m *CacheGetResponse) Reset()
- func (m *CacheGetResponse) String() string
- func (m *CacheGetResponse) XXX_DiscardUnknown()
- func (m *CacheGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CacheGetResponse) XXX_Merge(src proto.Message)
- func (m *CacheGetResponse) XXX_Size() int
- func (m *CacheGetResponse) XXX_Unmarshal(b []byte) error
- type CacheItem
- func (*CacheItem) Descriptor() ([]byte, []int)
- func (m *CacheItem) GetTtl() int32
- func (m *CacheItem) GetValue() string
- func (*CacheItem) ProtoMessage()
- func (m *CacheItem) Reset()
- func (m *CacheItem) String() string
- func (m *CacheItem) XXX_DiscardUnknown()
- func (m *CacheItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CacheItem) XXX_Merge(src proto.Message)
- func (m *CacheItem) XXX_Size() int
- func (m *CacheItem) XXX_Unmarshal(b []byte) error
- type CacheServer
- type CacheSetRequest
- func (*CacheSetRequest) Descriptor() ([]byte, []int)
- func (m *CacheSetRequest) GetItem() *CacheItem
- func (m *CacheSetRequest) GetKey() string
- func (*CacheSetRequest) ProtoMessage()
- func (m *CacheSetRequest) Reset()
- func (m *CacheSetRequest) String() string
- func (m *CacheSetRequest) XXX_DiscardUnknown()
- func (m *CacheSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CacheSetRequest) XXX_Merge(src proto.Message)
- func (m *CacheSetRequest) XXX_Size() int
- func (m *CacheSetRequest) XXX_Unmarshal(b []byte) error
- type CounterClient
- type CounterServer
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type FlagClient
- type FlagGetRequest
- func (*FlagGetRequest) Descriptor() ([]byte, []int)
- func (m *FlagGetRequest) GetKey() string
- func (*FlagGetRequest) ProtoMessage()
- func (m *FlagGetRequest) Reset()
- func (m *FlagGetRequest) String() string
- func (m *FlagGetRequest) XXX_DiscardUnknown()
- func (m *FlagGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FlagGetRequest) XXX_Merge(src proto.Message)
- func (m *FlagGetRequest) XXX_Size() int
- func (m *FlagGetRequest) XXX_Unmarshal(b []byte) error
- type FlagResponse
- func (*FlagResponse) Descriptor() ([]byte, []int)
- func (m *FlagResponse) GetValue() bool
- func (*FlagResponse) ProtoMessage()
- func (m *FlagResponse) Reset()
- func (m *FlagResponse) String() string
- func (m *FlagResponse) XXX_DiscardUnknown()
- func (m *FlagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FlagResponse) XXX_Merge(src proto.Message)
- func (m *FlagResponse) XXX_Size() int
- func (m *FlagResponse) XXX_Unmarshal(b []byte) error
- type FlagServer
- type FlagSetRequest
- func (*FlagSetRequest) Descriptor() ([]byte, []int)
- func (m *FlagSetRequest) GetKey() string
- func (m *FlagSetRequest) GetValue() bool
- func (*FlagSetRequest) ProtoMessage()
- func (m *FlagSetRequest) Reset()
- func (m *FlagSetRequest) String() string
- func (m *FlagSetRequest) XXX_DiscardUnknown()
- func (m *FlagSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FlagSetRequest) XXX_Merge(src proto.Message)
- func (m *FlagSetRequest) XXX_Size() int
- func (m *FlagSetRequest) XXX_Unmarshal(b []byte) error
- type GetCounterRequest
- func (*GetCounterRequest) Descriptor() ([]byte, []int)
- func (m *GetCounterRequest) GetKey() string
- func (*GetCounterRequest) ProtoMessage()
- func (m *GetCounterRequest) Reset()
- func (m *GetCounterRequest) String() string
- func (m *GetCounterRequest) XXX_DiscardUnknown()
- func (m *GetCounterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCounterRequest) XXX_Merge(src proto.Message)
- func (m *GetCounterRequest) XXX_Size() int
- func (m *GetCounterRequest) XXX_Unmarshal(b []byte) error
- type GetCounterResponse
- func (*GetCounterResponse) Descriptor() ([]byte, []int)
- func (m *GetCounterResponse) GetValue() int64
- func (*GetCounterResponse) ProtoMessage()
- func (m *GetCounterResponse) Reset()
- func (m *GetCounterResponse) String() string
- func (m *GetCounterResponse) XXX_DiscardUnknown()
- func (m *GetCounterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCounterResponse) XXX_Merge(src proto.Message)
- func (m *GetCounterResponse) XXX_Size() int
- func (m *GetCounterResponse) XXX_Unmarshal(b []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetValue() *Value
- 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 GetSetRequest
- func (*GetSetRequest) Descriptor() ([]byte, []int)
- func (m *GetSetRequest) GetSet() string
- func (*GetSetRequest) ProtoMessage()
- func (m *GetSetRequest) Reset()
- func (m *GetSetRequest) String() string
- func (m *GetSetRequest) XXX_DiscardUnknown()
- func (m *GetSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSetRequest) XXX_Merge(src proto.Message)
- func (m *GetSetRequest) XXX_Size() int
- func (m *GetSetRequest) XXX_Unmarshal(b []byte) error
- type IncrementCounterRequest
- func (*IncrementCounterRequest) Descriptor() ([]byte, []int)
- func (m *IncrementCounterRequest) GetAmount() int64
- func (m *IncrementCounterRequest) GetKey() string
- func (*IncrementCounterRequest) ProtoMessage()
- func (m *IncrementCounterRequest) Reset()
- func (m *IncrementCounterRequest) String() string
- func (m *IncrementCounterRequest) XXX_DiscardUnknown()
- func (m *IncrementCounterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IncrementCounterRequest) XXX_Merge(src proto.Message)
- func (m *IncrementCounterRequest) XXX_Size() int
- func (m *IncrementCounterRequest) XXX_Unmarshal(b []byte) error
- type KVClient
- type KVServer
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (m *Location) GetKey() string
- func (*Location) ProtoMessage()
- func (m *Location) Reset()
- func (m *Location) String() string
- func (m *Location) XXX_DiscardUnknown()
- func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Location) XXX_Merge(src proto.Message)
- func (m *Location) XXX_Size() int
- func (m *Location) XXX_Unmarshal(b []byte) error
- type ModifySetRequest
- func (*ModifySetRequest) Descriptor() ([]byte, []int)
- func (m *ModifySetRequest) GetItem() string
- func (m *ModifySetRequest) GetSet() string
- func (*ModifySetRequest) ProtoMessage()
- func (m *ModifySetRequest) Reset()
- func (m *ModifySetRequest) String() string
- func (m *ModifySetRequest) XXX_DiscardUnknown()
- func (m *ModifySetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModifySetRequest) XXX_Merge(src proto.Message)
- func (m *ModifySetRequest) XXX_Size() int
- func (m *ModifySetRequest) XXX_Unmarshal(b []byte) error
- type PutRequest
- func (*PutRequest) Descriptor() ([]byte, []int)
- func (m *PutRequest) GetLocation() *Location
- func (m *PutRequest) GetValue() *Value
- func (*PutRequest) ProtoMessage()
- func (m *PutRequest) Reset()
- func (m *PutRequest) String() string
- func (m *PutRequest) XXX_DiscardUnknown()
- func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PutRequest) XXX_Merge(src proto.Message)
- func (m *PutRequest) XXX_Size() int
- func (m *PutRequest) XXX_Unmarshal(b []byte) error
- type SetClient
- type SetResponse
- func (*SetResponse) Descriptor() ([]byte, []int)
- func (m *SetResponse) GetItems() []string
- func (*SetResponse) ProtoMessage()
- func (m *SetResponse) Reset()
- func (m *SetResponse) String() string
- func (m *SetResponse) XXX_DiscardUnknown()
- func (m *SetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetResponse) XXX_Merge(src proto.Message)
- func (m *SetResponse) XXX_Size() int
- func (m *SetResponse) XXX_Unmarshal(b []byte) error
- type SetServer
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) GetContent() []byte
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) String() string
- func (m *Value) XXX_DiscardUnknown()
- func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value) XXX_Merge(src proto.Message)
- func (m *Value) XXX_Size() int
- func (m *Value) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCacheServer ¶
func RegisterCacheServer(s *grpc.Server, srv CacheServer)
func RegisterCounterServer ¶
func RegisterCounterServer(s *grpc.Server, srv CounterServer)
func RegisterFlagServer ¶
func RegisterFlagServer(s *grpc.Server, srv FlagServer)
func RegisterKVServer ¶
func RegisterSetServer ¶
Types ¶
type CacheClient ¶
type CacheClient interface { CacheGet(ctx context.Context, in *CacheGetRequest, opts ...grpc.CallOption) (*CacheGetResponse, error) CacheSet(ctx context.Context, in *CacheSetRequest, opts ...grpc.CallOption) (*Empty, error) }
CacheClient is the client API for Cache service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCacheClient ¶
func NewCacheClient(cc *grpc.ClientConn) CacheClient
type CacheGetRequest ¶
type CacheGetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CacheGetRequest) Descriptor ¶
func (*CacheGetRequest) Descriptor() ([]byte, []int)
func (*CacheGetRequest) GetKey ¶
func (m *CacheGetRequest) GetKey() string
func (*CacheGetRequest) ProtoMessage ¶
func (*CacheGetRequest) ProtoMessage()
func (*CacheGetRequest) Reset ¶
func (m *CacheGetRequest) Reset()
func (*CacheGetRequest) String ¶
func (m *CacheGetRequest) String() string
func (*CacheGetRequest) XXX_DiscardUnknown ¶
func (m *CacheGetRequest) XXX_DiscardUnknown()
func (*CacheGetRequest) XXX_Marshal ¶
func (m *CacheGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CacheGetRequest) XXX_Merge ¶
func (m *CacheGetRequest) XXX_Merge(src proto.Message)
func (*CacheGetRequest) XXX_Size ¶
func (m *CacheGetRequest) XXX_Size() int
func (*CacheGetRequest) XXX_Unmarshal ¶
func (m *CacheGetRequest) XXX_Unmarshal(b []byte) error
type CacheGetResponse ¶
type CacheGetResponse struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CacheGetResponse) Descriptor ¶
func (*CacheGetResponse) Descriptor() ([]byte, []int)
func (*CacheGetResponse) GetValue ¶
func (m *CacheGetResponse) GetValue() string
func (*CacheGetResponse) ProtoMessage ¶
func (*CacheGetResponse) ProtoMessage()
func (*CacheGetResponse) Reset ¶
func (m *CacheGetResponse) Reset()
func (*CacheGetResponse) String ¶
func (m *CacheGetResponse) String() string
func (*CacheGetResponse) XXX_DiscardUnknown ¶
func (m *CacheGetResponse) XXX_DiscardUnknown()
func (*CacheGetResponse) XXX_Marshal ¶
func (m *CacheGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CacheGetResponse) XXX_Merge ¶
func (m *CacheGetResponse) XXX_Merge(src proto.Message)
func (*CacheGetResponse) XXX_Size ¶
func (m *CacheGetResponse) XXX_Size() int
func (*CacheGetResponse) XXX_Unmarshal ¶
func (m *CacheGetResponse) XXX_Unmarshal(b []byte) error
type CacheItem ¶
type CacheItem struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Ttl int32 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CacheItem) Descriptor ¶
func (*CacheItem) ProtoMessage ¶
func (*CacheItem) ProtoMessage()
func (*CacheItem) XXX_DiscardUnknown ¶
func (m *CacheItem) XXX_DiscardUnknown()
func (*CacheItem) XXX_Marshal ¶
func (*CacheItem) XXX_Unmarshal ¶
type CacheServer ¶
type CacheServer interface { CacheGet(context.Context, *CacheGetRequest) (*CacheGetResponse, error) CacheSet(context.Context, *CacheSetRequest) (*Empty, error) }
CacheServer is the server API for Cache service.
type CacheSetRequest ¶
type CacheSetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Item *CacheItem `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CacheSetRequest) Descriptor ¶
func (*CacheSetRequest) Descriptor() ([]byte, []int)
func (*CacheSetRequest) GetItem ¶
func (m *CacheSetRequest) GetItem() *CacheItem
func (*CacheSetRequest) GetKey ¶
func (m *CacheSetRequest) GetKey() string
func (*CacheSetRequest) ProtoMessage ¶
func (*CacheSetRequest) ProtoMessage()
func (*CacheSetRequest) Reset ¶
func (m *CacheSetRequest) Reset()
func (*CacheSetRequest) String ¶
func (m *CacheSetRequest) String() string
func (*CacheSetRequest) XXX_DiscardUnknown ¶
func (m *CacheSetRequest) XXX_DiscardUnknown()
func (*CacheSetRequest) XXX_Marshal ¶
func (m *CacheSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CacheSetRequest) XXX_Merge ¶
func (m *CacheSetRequest) XXX_Merge(src proto.Message)
func (*CacheSetRequest) XXX_Size ¶
func (m *CacheSetRequest) XXX_Size() int
func (*CacheSetRequest) XXX_Unmarshal ¶
func (m *CacheSetRequest) XXX_Unmarshal(b []byte) error
type CounterClient ¶
type CounterClient interface { CounterGet(ctx context.Context, in *GetCounterRequest, opts ...grpc.CallOption) (*GetCounterResponse, error) CounterIncrement(ctx context.Context, in *IncrementCounterRequest, opts ...grpc.CallOption) (*GetCounterResponse, error) }
CounterClient is the client API for Counter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCounterClient ¶
func NewCounterClient(cc *grpc.ClientConn) CounterClient
type CounterServer ¶
type CounterServer interface { CounterGet(context.Context, *GetCounterRequest) (*GetCounterResponse, error) CounterIncrement(context.Context, *IncrementCounterRequest) (*GetCounterResponse, error) }
CounterServer is the server API for Counter service.
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type FlagClient ¶
type FlagClient interface { FlagGet(ctx context.Context, in *FlagGetRequest, opts ...grpc.CallOption) (*FlagResponse, error) FlagSet(ctx context.Context, in *FlagSetRequest, opts ...grpc.CallOption) (*Empty, error) }
FlagClient is the client API for Flag service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewFlagClient ¶
func NewFlagClient(cc *grpc.ClientConn) FlagClient
type FlagGetRequest ¶
type FlagGetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FlagGetRequest) Descriptor ¶
func (*FlagGetRequest) Descriptor() ([]byte, []int)
func (*FlagGetRequest) GetKey ¶
func (m *FlagGetRequest) GetKey() string
func (*FlagGetRequest) ProtoMessage ¶
func (*FlagGetRequest) ProtoMessage()
func (*FlagGetRequest) Reset ¶
func (m *FlagGetRequest) Reset()
func (*FlagGetRequest) String ¶
func (m *FlagGetRequest) String() string
func (*FlagGetRequest) XXX_DiscardUnknown ¶
func (m *FlagGetRequest) XXX_DiscardUnknown()
func (*FlagGetRequest) XXX_Marshal ¶
func (m *FlagGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FlagGetRequest) XXX_Merge ¶
func (m *FlagGetRequest) XXX_Merge(src proto.Message)
func (*FlagGetRequest) XXX_Size ¶
func (m *FlagGetRequest) XXX_Size() int
func (*FlagGetRequest) XXX_Unmarshal ¶
func (m *FlagGetRequest) XXX_Unmarshal(b []byte) error
type FlagResponse ¶
type FlagResponse struct { Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FlagResponse) Descriptor ¶
func (*FlagResponse) Descriptor() ([]byte, []int)
func (*FlagResponse) GetValue ¶
func (m *FlagResponse) GetValue() bool
func (*FlagResponse) ProtoMessage ¶
func (*FlagResponse) ProtoMessage()
func (*FlagResponse) Reset ¶
func (m *FlagResponse) Reset()
func (*FlagResponse) String ¶
func (m *FlagResponse) String() string
func (*FlagResponse) XXX_DiscardUnknown ¶
func (m *FlagResponse) XXX_DiscardUnknown()
func (*FlagResponse) XXX_Marshal ¶
func (m *FlagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FlagResponse) XXX_Merge ¶
func (m *FlagResponse) XXX_Merge(src proto.Message)
func (*FlagResponse) XXX_Size ¶
func (m *FlagResponse) XXX_Size() int
func (*FlagResponse) XXX_Unmarshal ¶
func (m *FlagResponse) XXX_Unmarshal(b []byte) error
type FlagServer ¶
type FlagServer interface { FlagGet(context.Context, *FlagGetRequest) (*FlagResponse, error) FlagSet(context.Context, *FlagSetRequest) (*Empty, error) }
FlagServer is the server API for Flag service.
type FlagSetRequest ¶
type FlagSetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value bool `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FlagSetRequest) Descriptor ¶
func (*FlagSetRequest) Descriptor() ([]byte, []int)
func (*FlagSetRequest) GetKey ¶
func (m *FlagSetRequest) GetKey() string
func (*FlagSetRequest) GetValue ¶
func (m *FlagSetRequest) GetValue() bool
func (*FlagSetRequest) ProtoMessage ¶
func (*FlagSetRequest) ProtoMessage()
func (*FlagSetRequest) Reset ¶
func (m *FlagSetRequest) Reset()
func (*FlagSetRequest) String ¶
func (m *FlagSetRequest) String() string
func (*FlagSetRequest) XXX_DiscardUnknown ¶
func (m *FlagSetRequest) XXX_DiscardUnknown()
func (*FlagSetRequest) XXX_Marshal ¶
func (m *FlagSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FlagSetRequest) XXX_Merge ¶
func (m *FlagSetRequest) XXX_Merge(src proto.Message)
func (*FlagSetRequest) XXX_Size ¶
func (m *FlagSetRequest) XXX_Size() int
func (*FlagSetRequest) XXX_Unmarshal ¶
func (m *FlagSetRequest) XXX_Unmarshal(b []byte) error
type GetCounterRequest ¶
type GetCounterRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCounterRequest) Descriptor ¶
func (*GetCounterRequest) Descriptor() ([]byte, []int)
func (*GetCounterRequest) GetKey ¶
func (m *GetCounterRequest) GetKey() string
func (*GetCounterRequest) ProtoMessage ¶
func (*GetCounterRequest) ProtoMessage()
func (*GetCounterRequest) Reset ¶
func (m *GetCounterRequest) Reset()
func (*GetCounterRequest) String ¶
func (m *GetCounterRequest) String() string
func (*GetCounterRequest) XXX_DiscardUnknown ¶
func (m *GetCounterRequest) XXX_DiscardUnknown()
func (*GetCounterRequest) XXX_Marshal ¶
func (m *GetCounterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCounterRequest) XXX_Merge ¶
func (m *GetCounterRequest) XXX_Merge(src proto.Message)
func (*GetCounterRequest) XXX_Size ¶
func (m *GetCounterRequest) XXX_Size() int
func (*GetCounterRequest) XXX_Unmarshal ¶
func (m *GetCounterRequest) XXX_Unmarshal(b []byte) error
type GetCounterResponse ¶
type GetCounterResponse struct { Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCounterResponse) Descriptor ¶
func (*GetCounterResponse) Descriptor() ([]byte, []int)
func (*GetCounterResponse) GetValue ¶
func (m *GetCounterResponse) GetValue() int64
func (*GetCounterResponse) ProtoMessage ¶
func (*GetCounterResponse) ProtoMessage()
func (*GetCounterResponse) Reset ¶
func (m *GetCounterResponse) Reset()
func (*GetCounterResponse) String ¶
func (m *GetCounterResponse) String() string
func (*GetCounterResponse) XXX_DiscardUnknown ¶
func (m *GetCounterResponse) XXX_DiscardUnknown()
func (*GetCounterResponse) XXX_Marshal ¶
func (m *GetCounterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCounterResponse) XXX_Merge ¶
func (m *GetCounterResponse) XXX_Merge(src proto.Message)
func (*GetCounterResponse) XXX_Size ¶
func (m *GetCounterResponse) XXX_Size() int
func (*GetCounterResponse) XXX_Unmarshal ¶
func (m *GetCounterResponse) XXX_Unmarshal(b []byte) error
type GetResponse ¶
type GetResponse struct { Value *Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetValue ¶
func (m *GetResponse) GetValue() *Value
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 GetSetRequest ¶
type GetSetRequest struct { Set string `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetSetRequest) Descriptor ¶
func (*GetSetRequest) Descriptor() ([]byte, []int)
func (*GetSetRequest) GetSet ¶
func (m *GetSetRequest) GetSet() string
func (*GetSetRequest) ProtoMessage ¶
func (*GetSetRequest) ProtoMessage()
func (*GetSetRequest) Reset ¶
func (m *GetSetRequest) Reset()
func (*GetSetRequest) String ¶
func (m *GetSetRequest) String() string
func (*GetSetRequest) XXX_DiscardUnknown ¶
func (m *GetSetRequest) XXX_DiscardUnknown()
func (*GetSetRequest) XXX_Marshal ¶
func (m *GetSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSetRequest) XXX_Merge ¶
func (m *GetSetRequest) XXX_Merge(src proto.Message)
func (*GetSetRequest) XXX_Size ¶
func (m *GetSetRequest) XXX_Size() int
func (*GetSetRequest) XXX_Unmarshal ¶
func (m *GetSetRequest) XXX_Unmarshal(b []byte) error
type IncrementCounterRequest ¶
type IncrementCounterRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IncrementCounterRequest) Descriptor ¶
func (*IncrementCounterRequest) Descriptor() ([]byte, []int)
func (*IncrementCounterRequest) GetAmount ¶
func (m *IncrementCounterRequest) GetAmount() int64
func (*IncrementCounterRequest) GetKey ¶
func (m *IncrementCounterRequest) GetKey() string
func (*IncrementCounterRequest) ProtoMessage ¶
func (*IncrementCounterRequest) ProtoMessage()
func (*IncrementCounterRequest) Reset ¶
func (m *IncrementCounterRequest) Reset()
func (*IncrementCounterRequest) String ¶
func (m *IncrementCounterRequest) String() string
func (*IncrementCounterRequest) XXX_DiscardUnknown ¶
func (m *IncrementCounterRequest) XXX_DiscardUnknown()
func (*IncrementCounterRequest) XXX_Marshal ¶
func (m *IncrementCounterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IncrementCounterRequest) XXX_Merge ¶
func (m *IncrementCounterRequest) XXX_Merge(src proto.Message)
func (*IncrementCounterRequest) XXX_Size ¶
func (m *IncrementCounterRequest) XXX_Size() int
func (*IncrementCounterRequest) XXX_Unmarshal ¶
func (m *IncrementCounterRequest) XXX_Unmarshal(b []byte) error
type KVClient ¶
type KVClient interface { KVGet(ctx context.Context, in *Location, opts ...grpc.CallOption) (*GetResponse, error) KVPut(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*Empty, error) KVDelete(ctx context.Context, in *Location, opts ...grpc.CallOption) (*Empty, error) }
KVClient is the client API for KV service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewKVClient ¶
func NewKVClient(cc *grpc.ClientConn) KVClient
type KVServer ¶
type KVServer interface { KVGet(context.Context, *Location) (*GetResponse, error) KVPut(context.Context, *PutRequest) (*Empty, error) KVDelete(context.Context, *Location) (*Empty, error) }
KVServer is the server API for KV service.
type Location ¶
type Location struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Location) Descriptor ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) XXX_DiscardUnknown ¶
func (m *Location) XXX_DiscardUnknown()
func (*Location) XXX_Marshal ¶
func (*Location) XXX_Unmarshal ¶
type ModifySetRequest ¶
type ModifySetRequest struct { Set string `protobuf:"bytes,1,opt,name=set,proto3" json:"set,omitempty"` Item string `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ModifySetRequest) Descriptor ¶
func (*ModifySetRequest) Descriptor() ([]byte, []int)
func (*ModifySetRequest) GetItem ¶
func (m *ModifySetRequest) GetItem() string
func (*ModifySetRequest) GetSet ¶
func (m *ModifySetRequest) GetSet() string
func (*ModifySetRequest) ProtoMessage ¶
func (*ModifySetRequest) ProtoMessage()
func (*ModifySetRequest) Reset ¶
func (m *ModifySetRequest) Reset()
func (*ModifySetRequest) String ¶
func (m *ModifySetRequest) String() string
func (*ModifySetRequest) XXX_DiscardUnknown ¶
func (m *ModifySetRequest) XXX_DiscardUnknown()
func (*ModifySetRequest) XXX_Marshal ¶
func (m *ModifySetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModifySetRequest) XXX_Merge ¶
func (m *ModifySetRequest) XXX_Merge(src proto.Message)
func (*ModifySetRequest) XXX_Size ¶
func (m *ModifySetRequest) XXX_Size() int
func (*ModifySetRequest) XXX_Unmarshal ¶
func (m *ModifySetRequest) XXX_Unmarshal(b []byte) error
type PutRequest ¶
type PutRequest struct { Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PutRequest) Descriptor ¶
func (*PutRequest) Descriptor() ([]byte, []int)
func (*PutRequest) GetLocation ¶
func (m *PutRequest) GetLocation() *Location
func (*PutRequest) GetValue ¶
func (m *PutRequest) GetValue() *Value
func (*PutRequest) ProtoMessage ¶
func (*PutRequest) ProtoMessage()
func (*PutRequest) Reset ¶
func (m *PutRequest) Reset()
func (*PutRequest) String ¶
func (m *PutRequest) String() string
func (*PutRequest) XXX_DiscardUnknown ¶
func (m *PutRequest) XXX_DiscardUnknown()
func (*PutRequest) XXX_Marshal ¶
func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PutRequest) XXX_Merge ¶
func (m *PutRequest) XXX_Merge(src proto.Message)
func (*PutRequest) XXX_Size ¶
func (m *PutRequest) XXX_Size() int
func (*PutRequest) XXX_Unmarshal ¶
func (m *PutRequest) XXX_Unmarshal(b []byte) error
type SetClient ¶
type SetClient interface { SetGet(ctx context.Context, in *GetSetRequest, opts ...grpc.CallOption) (*SetResponse, error) SetAdd(ctx context.Context, in *ModifySetRequest, opts ...grpc.CallOption) (*SetResponse, error) SetRemove(ctx context.Context, in *ModifySetRequest, opts ...grpc.CallOption) (*SetResponse, error) }
SetClient is the client API for Set service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSetClient ¶
func NewSetClient(cc *grpc.ClientConn) SetClient
type SetResponse ¶
type SetResponse struct { Items []string `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetResponse) Descriptor ¶
func (*SetResponse) Descriptor() ([]byte, []int)
func (*SetResponse) GetItems ¶
func (m *SetResponse) GetItems() []string
func (*SetResponse) ProtoMessage ¶
func (*SetResponse) ProtoMessage()
func (*SetResponse) Reset ¶
func (m *SetResponse) Reset()
func (*SetResponse) String ¶
func (m *SetResponse) String() string
func (*SetResponse) XXX_DiscardUnknown ¶
func (m *SetResponse) XXX_DiscardUnknown()
func (*SetResponse) XXX_Marshal ¶
func (m *SetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetResponse) XXX_Merge ¶
func (m *SetResponse) XXX_Merge(src proto.Message)
func (*SetResponse) XXX_Size ¶
func (m *SetResponse) XXX_Size() int
func (*SetResponse) XXX_Unmarshal ¶
func (m *SetResponse) XXX_Unmarshal(b []byte) error
type SetServer ¶
type SetServer interface { SetGet(context.Context, *GetSetRequest) (*SetResponse, error) SetAdd(context.Context, *ModifySetRequest) (*SetResponse, error) SetRemove(context.Context, *ModifySetRequest) (*SetResponse, error) }
SetServer is the server API for Set service.
type Value ¶
type Value struct { Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Value) Descriptor ¶
func (*Value) GetContent ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) XXX_DiscardUnknown ¶
func (m *Value) XXX_DiscardUnknown()