Documentation ¶
Index ¶
- func NewStoreEndpoints() []*api.Endpoint
- func RegisterStoreHandler(s server.Server, hdlr StoreHandler, opts ...server.HandlerOption) error
- func RegisterStoreServer(s *grpc.Server, srv StoreServer)
- type DatabasesRequest
- func (*DatabasesRequest) Descriptor() ([]byte, []int)
- func (*DatabasesRequest) ProtoMessage()
- func (m *DatabasesRequest) Reset()
- func (m *DatabasesRequest) String() string
- func (m *DatabasesRequest) XXX_DiscardUnknown()
- func (m *DatabasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DatabasesRequest) XXX_Merge(src proto.Message)
- func (m *DatabasesRequest) XXX_Size() int
- func (m *DatabasesRequest) XXX_Unmarshal(b []byte) error
- type DatabasesResponse
- func (*DatabasesResponse) Descriptor() ([]byte, []int)
- func (m *DatabasesResponse) GetDatabases() []string
- func (*DatabasesResponse) ProtoMessage()
- func (m *DatabasesResponse) Reset()
- func (m *DatabasesResponse) String() string
- func (m *DatabasesResponse) XXX_DiscardUnknown()
- func (m *DatabasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DatabasesResponse) XXX_Merge(src proto.Message)
- func (m *DatabasesResponse) XXX_Size() int
- func (m *DatabasesResponse) XXX_Unmarshal(b []byte) error
- type DeleteOptions
- func (*DeleteOptions) Descriptor() ([]byte, []int)
- func (m *DeleteOptions) GetDatabase() string
- func (m *DeleteOptions) GetTable() string
- func (*DeleteOptions) ProtoMessage()
- func (m *DeleteOptions) Reset()
- func (m *DeleteOptions) String() string
- func (m *DeleteOptions) XXX_DiscardUnknown()
- func (m *DeleteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteOptions) XXX_Merge(src proto.Message)
- func (m *DeleteOptions) XXX_Size() int
- func (m *DeleteOptions) XXX_Unmarshal(b []byte) error
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) GetKey() string
- func (m *DeleteRequest) GetOptions() *DeleteOptions
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) String() string
- func (m *DeleteRequest) XXX_DiscardUnknown()
- func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRequest) XXX_Merge(src proto.Message)
- func (m *DeleteRequest) XXX_Size() int
- func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)
- func (*DeleteResponse) ProtoMessage()
- func (m *DeleteResponse) Reset()
- func (m *DeleteResponse) String() string
- func (m *DeleteResponse) XXX_DiscardUnknown()
- func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteResponse) XXX_Merge(src proto.Message)
- func (m *DeleteResponse) XXX_Size() int
- func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
- type Field
- func (*Field) Descriptor() ([]byte, []int)
- func (m *Field) GetType() string
- func (m *Field) GetValue() string
- func (*Field) ProtoMessage()
- func (m *Field) Reset()
- func (m *Field) String() string
- func (m *Field) XXX_DiscardUnknown()
- func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Field) XXX_Merge(src proto.Message)
- func (m *Field) XXX_Size() int
- func (m *Field) XXX_Unmarshal(b []byte) error
- type ListOptions
- func (*ListOptions) Descriptor() ([]byte, []int)
- func (m *ListOptions) GetDatabase() string
- func (m *ListOptions) GetLimit() uint64
- func (m *ListOptions) GetOffset() uint64
- func (m *ListOptions) GetPrefix() string
- func (m *ListOptions) GetSuffix() string
- func (m *ListOptions) GetTable() string
- func (*ListOptions) ProtoMessage()
- func (m *ListOptions) Reset()
- func (m *ListOptions) String() string
- func (m *ListOptions) XXX_DiscardUnknown()
- func (m *ListOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListOptions) XXX_Merge(src proto.Message)
- func (m *ListOptions) XXX_Size() int
- func (m *ListOptions) XXX_Unmarshal(b []byte) error
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (m *ListRequest) GetOptions() *ListOptions
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) String() string
- func (m *ListRequest) XXX_DiscardUnknown()
- func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRequest) XXX_Merge(src proto.Message)
- func (m *ListRequest) XXX_Size() int
- func (m *ListRequest) XXX_Unmarshal(b []byte) error
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)
- func (m *ListResponse) GetKeys() []string
- func (*ListResponse) ProtoMessage()
- func (m *ListResponse) Reset()
- func (m *ListResponse) String() string
- func (m *ListResponse) XXX_DiscardUnknown()
- func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponse) XXX_Merge(src proto.Message)
- func (m *ListResponse) XXX_Size() int
- func (m *ListResponse) XXX_Unmarshal(b []byte) error
- type ReadOptions
- func (*ReadOptions) Descriptor() ([]byte, []int)
- func (m *ReadOptions) GetDatabase() string
- func (m *ReadOptions) GetLimit() uint64
- func (m *ReadOptions) GetOffset() uint64
- func (m *ReadOptions) GetPrefix() bool
- func (m *ReadOptions) GetSuffix() bool
- func (m *ReadOptions) GetTable() string
- func (*ReadOptions) ProtoMessage()
- func (m *ReadOptions) Reset()
- func (m *ReadOptions) String() string
- func (m *ReadOptions) XXX_DiscardUnknown()
- func (m *ReadOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadOptions) XXX_Merge(src proto.Message)
- func (m *ReadOptions) XXX_Size() int
- func (m *ReadOptions) XXX_Unmarshal(b []byte) error
- type ReadRequest
- func (*ReadRequest) Descriptor() ([]byte, []int)
- func (m *ReadRequest) GetKey() string
- func (m *ReadRequest) GetOptions() *ReadOptions
- func (*ReadRequest) ProtoMessage()
- func (m *ReadRequest) Reset()
- func (m *ReadRequest) String() string
- func (m *ReadRequest) XXX_DiscardUnknown()
- func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadRequest) XXX_Merge(src proto.Message)
- func (m *ReadRequest) XXX_Size() int
- func (m *ReadRequest) XXX_Unmarshal(b []byte) error
- type ReadResponse
- func (*ReadResponse) Descriptor() ([]byte, []int)
- func (m *ReadResponse) GetRecords() []*Record
- func (*ReadResponse) ProtoMessage()
- func (m *ReadResponse) Reset()
- func (m *ReadResponse) String() string
- func (m *ReadResponse) XXX_DiscardUnknown()
- func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadResponse) XXX_Merge(src proto.Message)
- func (m *ReadResponse) XXX_Size() int
- func (m *ReadResponse) XXX_Unmarshal(b []byte) error
- type Record
- func (*Record) Descriptor() ([]byte, []int)
- func (m *Record) GetExpiry() int64
- func (m *Record) GetKey() string
- func (m *Record) GetMetadata() map[string]*Field
- func (m *Record) GetValue() []byte
- func (*Record) ProtoMessage()
- func (m *Record) Reset()
- func (m *Record) String() string
- func (m *Record) XXX_DiscardUnknown()
- func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Record) XXX_Merge(src proto.Message)
- func (m *Record) XXX_Size() int
- func (m *Record) XXX_Unmarshal(b []byte) error
- type StoreClient
- type StoreHandler
- type StoreServer
- type StoreService
- type Store_ListClient
- type Store_ListServer
- type Store_ListService
- type Store_ListStream
- type TablesRequest
- func (*TablesRequest) Descriptor() ([]byte, []int)
- func (m *TablesRequest) GetDatabase() string
- func (*TablesRequest) ProtoMessage()
- func (m *TablesRequest) Reset()
- func (m *TablesRequest) String() string
- func (m *TablesRequest) XXX_DiscardUnknown()
- func (m *TablesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TablesRequest) XXX_Merge(src proto.Message)
- func (m *TablesRequest) XXX_Size() int
- func (m *TablesRequest) XXX_Unmarshal(b []byte) error
- type TablesResponse
- func (*TablesResponse) Descriptor() ([]byte, []int)
- func (m *TablesResponse) GetTables() []string
- func (*TablesResponse) ProtoMessage()
- func (m *TablesResponse) Reset()
- func (m *TablesResponse) String() string
- func (m *TablesResponse) XXX_DiscardUnknown()
- func (m *TablesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TablesResponse) XXX_Merge(src proto.Message)
- func (m *TablesResponse) XXX_Size() int
- func (m *TablesResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedStoreServer
- func (*UnimplementedStoreServer) Databases(ctx context.Context, req *DatabasesRequest) (*DatabasesResponse, error)
- func (*UnimplementedStoreServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
- func (*UnimplementedStoreServer) List(req *ListRequest, srv Store_ListServer) error
- func (*UnimplementedStoreServer) Read(ctx context.Context, req *ReadRequest) (*ReadResponse, error)
- func (*UnimplementedStoreServer) Tables(ctx context.Context, req *TablesRequest) (*TablesResponse, error)
- func (*UnimplementedStoreServer) Write(ctx context.Context, req *WriteRequest) (*WriteResponse, error)
- type WriteOptions
- func (*WriteOptions) Descriptor() ([]byte, []int)
- func (m *WriteOptions) GetDatabase() string
- func (m *WriteOptions) GetExpiry() int64
- func (m *WriteOptions) GetTable() string
- func (m *WriteOptions) GetTtl() int64
- func (*WriteOptions) ProtoMessage()
- func (m *WriteOptions) Reset()
- func (m *WriteOptions) String() string
- func (m *WriteOptions) XXX_DiscardUnknown()
- func (m *WriteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WriteOptions) XXX_Merge(src proto.Message)
- func (m *WriteOptions) XXX_Size() int
- func (m *WriteOptions) XXX_Unmarshal(b []byte) error
- type WriteRequest
- func (*WriteRequest) Descriptor() ([]byte, []int)
- func (m *WriteRequest) GetOptions() *WriteOptions
- func (m *WriteRequest) GetRecord() *Record
- func (*WriteRequest) ProtoMessage()
- func (m *WriteRequest) Reset()
- func (m *WriteRequest) String() string
- func (m *WriteRequest) XXX_DiscardUnknown()
- func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WriteRequest) XXX_Merge(src proto.Message)
- func (m *WriteRequest) XXX_Size() int
- func (m *WriteRequest) XXX_Unmarshal(b []byte) error
- type WriteResponse
- func (*WriteResponse) Descriptor() ([]byte, []int)
- func (*WriteResponse) ProtoMessage()
- func (m *WriteResponse) Reset()
- func (m *WriteResponse) String() string
- func (m *WriteResponse) XXX_DiscardUnknown()
- func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WriteResponse) XXX_Merge(src proto.Message)
- func (m *WriteResponse) XXX_Size() int
- func (m *WriteResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStoreEndpoints ¶
func RegisterStoreHandler ¶
func RegisterStoreHandler(s server.Server, hdlr StoreHandler, opts ...server.HandlerOption) error
func RegisterStoreServer ¶
func RegisterStoreServer(s *grpc.Server, srv StoreServer)
Types ¶
type DatabasesRequest ¶
type DatabasesRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DatabasesRequest) Descriptor ¶
func (*DatabasesRequest) Descriptor() ([]byte, []int)
func (*DatabasesRequest) ProtoMessage ¶
func (*DatabasesRequest) ProtoMessage()
func (*DatabasesRequest) Reset ¶
func (m *DatabasesRequest) Reset()
func (*DatabasesRequest) String ¶
func (m *DatabasesRequest) String() string
func (*DatabasesRequest) XXX_DiscardUnknown ¶
func (m *DatabasesRequest) XXX_DiscardUnknown()
func (*DatabasesRequest) XXX_Marshal ¶
func (m *DatabasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DatabasesRequest) XXX_Merge ¶
func (m *DatabasesRequest) XXX_Merge(src proto.Message)
func (*DatabasesRequest) XXX_Size ¶
func (m *DatabasesRequest) XXX_Size() int
func (*DatabasesRequest) XXX_Unmarshal ¶
func (m *DatabasesRequest) XXX_Unmarshal(b []byte) error
type DatabasesResponse ¶
type DatabasesResponse struct { Databases []string `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DatabasesResponse) Descriptor ¶
func (*DatabasesResponse) Descriptor() ([]byte, []int)
func (*DatabasesResponse) GetDatabases ¶
func (m *DatabasesResponse) GetDatabases() []string
func (*DatabasesResponse) ProtoMessage ¶
func (*DatabasesResponse) ProtoMessage()
func (*DatabasesResponse) Reset ¶
func (m *DatabasesResponse) Reset()
func (*DatabasesResponse) String ¶
func (m *DatabasesResponse) String() string
func (*DatabasesResponse) XXX_DiscardUnknown ¶
func (m *DatabasesResponse) XXX_DiscardUnknown()
func (*DatabasesResponse) XXX_Marshal ¶
func (m *DatabasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DatabasesResponse) XXX_Merge ¶
func (m *DatabasesResponse) XXX_Merge(src proto.Message)
func (*DatabasesResponse) XXX_Size ¶
func (m *DatabasesResponse) XXX_Size() int
func (*DatabasesResponse) XXX_Unmarshal ¶
func (m *DatabasesResponse) XXX_Unmarshal(b []byte) error
type DeleteOptions ¶
type DeleteOptions struct { Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteOptions) Descriptor ¶
func (*DeleteOptions) Descriptor() ([]byte, []int)
func (*DeleteOptions) GetDatabase ¶
func (m *DeleteOptions) GetDatabase() string
func (*DeleteOptions) GetTable ¶
func (m *DeleteOptions) GetTable() string
func (*DeleteOptions) ProtoMessage ¶
func (*DeleteOptions) ProtoMessage()
func (*DeleteOptions) Reset ¶
func (m *DeleteOptions) Reset()
func (*DeleteOptions) String ¶
func (m *DeleteOptions) String() string
func (*DeleteOptions) XXX_DiscardUnknown ¶
func (m *DeleteOptions) XXX_DiscardUnknown()
func (*DeleteOptions) XXX_Marshal ¶
func (m *DeleteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteOptions) XXX_Merge ¶
func (m *DeleteOptions) XXX_Merge(src proto.Message)
func (*DeleteOptions) XXX_Size ¶
func (m *DeleteOptions) XXX_Size() int
func (*DeleteOptions) XXX_Unmarshal ¶
func (m *DeleteOptions) XXX_Unmarshal(b []byte) error
type DeleteRequest ¶
type DeleteRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Options *DeleteOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetKey ¶
func (m *DeleteRequest) GetKey() string
func (*DeleteRequest) GetOptions ¶
func (m *DeleteRequest) GetOptions() *DeleteOptions
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
func (*DeleteRequest) XXX_DiscardUnknown ¶
func (m *DeleteRequest) XXX_DiscardUnknown()
func (*DeleteRequest) XXX_Marshal ¶
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRequest) XXX_Merge ¶
func (m *DeleteRequest) XXX_Merge(src proto.Message)
func (*DeleteRequest) XXX_Size ¶
func (m *DeleteRequest) XXX_Size() int
func (*DeleteRequest) XXX_Unmarshal ¶
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
type DeleteResponse ¶
type DeleteResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteResponse) Descriptor ¶
func (*DeleteResponse) Descriptor() ([]byte, []int)
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) Reset ¶
func (m *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (m *DeleteResponse) String() string
func (*DeleteResponse) XXX_DiscardUnknown ¶
func (m *DeleteResponse) XXX_DiscardUnknown()
func (*DeleteResponse) XXX_Marshal ¶
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteResponse) XXX_Merge ¶
func (m *DeleteResponse) XXX_Merge(src proto.Message)
func (*DeleteResponse) XXX_Size ¶
func (m *DeleteResponse) XXX_Size() int
func (*DeleteResponse) XXX_Unmarshal ¶
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
type Field ¶
type Field struct { // type of value e.g string, int, int64, bool, float64 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // the actual value Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Field) Descriptor ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) XXX_DiscardUnknown ¶
func (m *Field) XXX_DiscardUnknown()
func (*Field) XXX_Marshal ¶
func (*Field) XXX_Unmarshal ¶
type ListOptions ¶
type ListOptions struct { Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"` Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"` Suffix string `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"` Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` Offset uint64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListOptions) Descriptor ¶
func (*ListOptions) Descriptor() ([]byte, []int)
func (*ListOptions) GetDatabase ¶
func (m *ListOptions) GetDatabase() string
func (*ListOptions) GetLimit ¶
func (m *ListOptions) GetLimit() uint64
func (*ListOptions) GetOffset ¶
func (m *ListOptions) GetOffset() uint64
func (*ListOptions) GetPrefix ¶
func (m *ListOptions) GetPrefix() string
func (*ListOptions) GetSuffix ¶
func (m *ListOptions) GetSuffix() string
func (*ListOptions) GetTable ¶
func (m *ListOptions) GetTable() string
func (*ListOptions) ProtoMessage ¶
func (*ListOptions) ProtoMessage()
func (*ListOptions) Reset ¶
func (m *ListOptions) Reset()
func (*ListOptions) String ¶
func (m *ListOptions) String() string
func (*ListOptions) XXX_DiscardUnknown ¶
func (m *ListOptions) XXX_DiscardUnknown()
func (*ListOptions) XXX_Marshal ¶
func (m *ListOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListOptions) XXX_Merge ¶
func (m *ListOptions) XXX_Merge(src proto.Message)
func (*ListOptions) XXX_Size ¶
func (m *ListOptions) XXX_Size() int
func (*ListOptions) XXX_Unmarshal ¶
func (m *ListOptions) XXX_Unmarshal(b []byte) error
type ListRequest ¶
type ListRequest struct { Options *ListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) GetOptions ¶
func (m *ListRequest) GetOptions() *ListOptions
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) String ¶
func (m *ListRequest) String() string
func (*ListRequest) XXX_DiscardUnknown ¶
func (m *ListRequest) XXX_DiscardUnknown()
func (*ListRequest) XXX_Marshal ¶
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRequest) XXX_Merge ¶
func (m *ListRequest) XXX_Merge(src proto.Message)
func (*ListRequest) XXX_Size ¶
func (m *ListRequest) XXX_Size() int
func (*ListRequest) XXX_Unmarshal ¶
func (m *ListRequest) XXX_Unmarshal(b []byte) error
type ListResponse ¶
type ListResponse struct { Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListResponse) Descriptor ¶
func (*ListResponse) Descriptor() ([]byte, []int)
func (*ListResponse) GetKeys ¶
func (m *ListResponse) GetKeys() []string
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) Reset ¶
func (m *ListResponse) Reset()
func (*ListResponse) String ¶
func (m *ListResponse) String() string
func (*ListResponse) XXX_DiscardUnknown ¶
func (m *ListResponse) XXX_DiscardUnknown()
func (*ListResponse) XXX_Marshal ¶
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResponse) XXX_Merge ¶
func (m *ListResponse) XXX_Merge(src proto.Message)
func (*ListResponse) XXX_Size ¶
func (m *ListResponse) XXX_Size() int
func (*ListResponse) XXX_Unmarshal ¶
func (m *ListResponse) XXX_Unmarshal(b []byte) error
type ReadOptions ¶
type ReadOptions struct { Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"` Prefix bool `protobuf:"varint,3,opt,name=prefix,proto3" json:"prefix,omitempty"` Suffix bool `protobuf:"varint,4,opt,name=suffix,proto3" json:"suffix,omitempty"` Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` Offset uint64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReadOptions) Descriptor ¶
func (*ReadOptions) Descriptor() ([]byte, []int)
func (*ReadOptions) GetDatabase ¶
func (m *ReadOptions) GetDatabase() string
func (*ReadOptions) GetLimit ¶
func (m *ReadOptions) GetLimit() uint64
func (*ReadOptions) GetOffset ¶
func (m *ReadOptions) GetOffset() uint64
func (*ReadOptions) GetPrefix ¶
func (m *ReadOptions) GetPrefix() bool
func (*ReadOptions) GetSuffix ¶
func (m *ReadOptions) GetSuffix() bool
func (*ReadOptions) GetTable ¶
func (m *ReadOptions) GetTable() string
func (*ReadOptions) ProtoMessage ¶
func (*ReadOptions) ProtoMessage()
func (*ReadOptions) Reset ¶
func (m *ReadOptions) Reset()
func (*ReadOptions) String ¶
func (m *ReadOptions) String() string
func (*ReadOptions) XXX_DiscardUnknown ¶
func (m *ReadOptions) XXX_DiscardUnknown()
func (*ReadOptions) XXX_Marshal ¶
func (m *ReadOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadOptions) XXX_Merge ¶
func (m *ReadOptions) XXX_Merge(src proto.Message)
func (*ReadOptions) XXX_Size ¶
func (m *ReadOptions) XXX_Size() int
func (*ReadOptions) XXX_Unmarshal ¶
func (m *ReadOptions) XXX_Unmarshal(b []byte) error
type ReadRequest ¶
type ReadRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Options *ReadOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReadRequest) Descriptor ¶
func (*ReadRequest) Descriptor() ([]byte, []int)
func (*ReadRequest) GetKey ¶
func (m *ReadRequest) GetKey() string
func (*ReadRequest) GetOptions ¶
func (m *ReadRequest) GetOptions() *ReadOptions
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) Reset ¶
func (m *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (m *ReadRequest) String() string
func (*ReadRequest) XXX_DiscardUnknown ¶
func (m *ReadRequest) XXX_DiscardUnknown()
func (*ReadRequest) XXX_Marshal ¶
func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadRequest) XXX_Merge ¶
func (m *ReadRequest) XXX_Merge(src proto.Message)
func (*ReadRequest) XXX_Size ¶
func (m *ReadRequest) XXX_Size() int
func (*ReadRequest) XXX_Unmarshal ¶
func (m *ReadRequest) XXX_Unmarshal(b []byte) error
type ReadResponse ¶
type ReadResponse struct { Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReadResponse) Descriptor ¶
func (*ReadResponse) Descriptor() ([]byte, []int)
func (*ReadResponse) GetRecords ¶
func (m *ReadResponse) GetRecords() []*Record
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) Reset ¶
func (m *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (m *ReadResponse) String() string
func (*ReadResponse) XXX_DiscardUnknown ¶
func (m *ReadResponse) XXX_DiscardUnknown()
func (*ReadResponse) XXX_Marshal ¶
func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadResponse) XXX_Merge ¶
func (m *ReadResponse) XXX_Merge(src proto.Message)
func (*ReadResponse) XXX_Size ¶
func (m *ReadResponse) XXX_Size() int
func (*ReadResponse) XXX_Unmarshal ¶
func (m *ReadResponse) XXX_Unmarshal(b []byte) error
type Record ¶
type Record struct { // key of the record Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // value in the record Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // time.Duration (signed int64 nanoseconds) Expiry int64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` // the associated metadata Metadata map[string]*Field `` /* 157-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Record) Descriptor ¶
func (*Record) GetMetadata ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) XXX_DiscardUnknown ¶
func (m *Record) XXX_DiscardUnknown()
func (*Record) XXX_Marshal ¶
func (*Record) XXX_Unmarshal ¶
type StoreClient ¶
type StoreClient interface { Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (Store_ListClient, error) Databases(ctx context.Context, in *DatabasesRequest, opts ...grpc.CallOption) (*DatabasesResponse, error) Tables(ctx context.Context, in *TablesRequest, opts ...grpc.CallOption) (*TablesResponse, error) }
StoreClient is the client API for Store service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStoreClient ¶
func NewStoreClient(cc *grpc.ClientConn) StoreClient
type StoreHandler ¶
type StoreHandler interface { Read(context.Context, *ReadRequest, *ReadResponse) error Write(context.Context, *WriteRequest, *WriteResponse) error Delete(context.Context, *DeleteRequest, *DeleteResponse) error List(context.Context, *ListRequest, Store_ListStream) error Databases(context.Context, *DatabasesRequest, *DatabasesResponse) error Tables(context.Context, *TablesRequest, *TablesResponse) error }
type StoreServer ¶
type StoreServer interface { Read(context.Context, *ReadRequest) (*ReadResponse, error) Write(context.Context, *WriteRequest) (*WriteResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) List(*ListRequest, Store_ListServer) error Databases(context.Context, *DatabasesRequest) (*DatabasesResponse, error) Tables(context.Context, *TablesRequest) (*TablesResponse, error) }
StoreServer is the server API for Store service.
type StoreService ¶
type StoreService interface { Read(ctx context.Context, in *ReadRequest, opts ...client.CallOption) (*ReadResponse, error) Write(ctx context.Context, in *WriteRequest, opts ...client.CallOption) (*WriteResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error) List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (Store_ListService, error) Databases(ctx context.Context, in *DatabasesRequest, opts ...client.CallOption) (*DatabasesResponse, error) Tables(ctx context.Context, in *TablesRequest, opts ...client.CallOption) (*TablesResponse, error) }
func NewStoreService ¶
func NewStoreService(name string, c client.Client) StoreService
type Store_ListClient ¶
type Store_ListClient interface { Recv() (*ListResponse, error) grpc.ClientStream }
type Store_ListServer ¶
type Store_ListServer interface { Send(*ListResponse) error grpc.ServerStream }
type Store_ListService ¶
type Store_ListStream ¶
type TablesRequest ¶
type TablesRequest struct { Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TablesRequest) Descriptor ¶
func (*TablesRequest) Descriptor() ([]byte, []int)
func (*TablesRequest) GetDatabase ¶
func (m *TablesRequest) GetDatabase() string
func (*TablesRequest) ProtoMessage ¶
func (*TablesRequest) ProtoMessage()
func (*TablesRequest) Reset ¶
func (m *TablesRequest) Reset()
func (*TablesRequest) String ¶
func (m *TablesRequest) String() string
func (*TablesRequest) XXX_DiscardUnknown ¶
func (m *TablesRequest) XXX_DiscardUnknown()
func (*TablesRequest) XXX_Marshal ¶
func (m *TablesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TablesRequest) XXX_Merge ¶
func (m *TablesRequest) XXX_Merge(src proto.Message)
func (*TablesRequest) XXX_Size ¶
func (m *TablesRequest) XXX_Size() int
func (*TablesRequest) XXX_Unmarshal ¶
func (m *TablesRequest) XXX_Unmarshal(b []byte) error
type TablesResponse ¶
type TablesResponse struct { Tables []string `protobuf:"bytes,1,rep,name=tables,proto3" json:"tables,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TablesResponse) Descriptor ¶
func (*TablesResponse) Descriptor() ([]byte, []int)
func (*TablesResponse) GetTables ¶
func (m *TablesResponse) GetTables() []string
func (*TablesResponse) ProtoMessage ¶
func (*TablesResponse) ProtoMessage()
func (*TablesResponse) Reset ¶
func (m *TablesResponse) Reset()
func (*TablesResponse) String ¶
func (m *TablesResponse) String() string
func (*TablesResponse) XXX_DiscardUnknown ¶
func (m *TablesResponse) XXX_DiscardUnknown()
func (*TablesResponse) XXX_Marshal ¶
func (m *TablesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TablesResponse) XXX_Merge ¶
func (m *TablesResponse) XXX_Merge(src proto.Message)
func (*TablesResponse) XXX_Size ¶
func (m *TablesResponse) XXX_Size() int
func (*TablesResponse) XXX_Unmarshal ¶
func (m *TablesResponse) XXX_Unmarshal(b []byte) error
type UnimplementedStoreServer ¶
type UnimplementedStoreServer struct { }
UnimplementedStoreServer can be embedded to have forward compatible implementations.
func (*UnimplementedStoreServer) Databases ¶
func (*UnimplementedStoreServer) Databases(ctx context.Context, req *DatabasesRequest) (*DatabasesResponse, error)
func (*UnimplementedStoreServer) Delete ¶
func (*UnimplementedStoreServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
func (*UnimplementedStoreServer) List ¶
func (*UnimplementedStoreServer) List(req *ListRequest, srv Store_ListServer) error
func (*UnimplementedStoreServer) Read ¶
func (*UnimplementedStoreServer) Read(ctx context.Context, req *ReadRequest) (*ReadResponse, error)
func (*UnimplementedStoreServer) Tables ¶
func (*UnimplementedStoreServer) Tables(ctx context.Context, req *TablesRequest) (*TablesResponse, error)
func (*UnimplementedStoreServer) Write ¶
func (*UnimplementedStoreServer) Write(ctx context.Context, req *WriteRequest) (*WriteResponse, error)
type WriteOptions ¶
type WriteOptions struct { Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"` // time.Time Expiry int64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` // time.Duration Ttl int64 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WriteOptions) Descriptor ¶
func (*WriteOptions) Descriptor() ([]byte, []int)
func (*WriteOptions) GetDatabase ¶
func (m *WriteOptions) GetDatabase() string
func (*WriteOptions) GetExpiry ¶
func (m *WriteOptions) GetExpiry() int64
func (*WriteOptions) GetTable ¶
func (m *WriteOptions) GetTable() string
func (*WriteOptions) GetTtl ¶
func (m *WriteOptions) GetTtl() int64
func (*WriteOptions) ProtoMessage ¶
func (*WriteOptions) ProtoMessage()
func (*WriteOptions) Reset ¶
func (m *WriteOptions) Reset()
func (*WriteOptions) String ¶
func (m *WriteOptions) String() string
func (*WriteOptions) XXX_DiscardUnknown ¶
func (m *WriteOptions) XXX_DiscardUnknown()
func (*WriteOptions) XXX_Marshal ¶
func (m *WriteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WriteOptions) XXX_Merge ¶
func (m *WriteOptions) XXX_Merge(src proto.Message)
func (*WriteOptions) XXX_Size ¶
func (m *WriteOptions) XXX_Size() int
func (*WriteOptions) XXX_Unmarshal ¶
func (m *WriteOptions) XXX_Unmarshal(b []byte) error
type WriteRequest ¶
type WriteRequest struct { Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"` Options *WriteOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WriteRequest) Descriptor ¶
func (*WriteRequest) Descriptor() ([]byte, []int)
func (*WriteRequest) GetOptions ¶
func (m *WriteRequest) GetOptions() *WriteOptions
func (*WriteRequest) GetRecord ¶
func (m *WriteRequest) GetRecord() *Record
func (*WriteRequest) ProtoMessage ¶
func (*WriteRequest) ProtoMessage()
func (*WriteRequest) Reset ¶
func (m *WriteRequest) Reset()
func (*WriteRequest) String ¶
func (m *WriteRequest) String() string
func (*WriteRequest) XXX_DiscardUnknown ¶
func (m *WriteRequest) XXX_DiscardUnknown()
func (*WriteRequest) XXX_Marshal ¶
func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WriteRequest) XXX_Merge ¶
func (m *WriteRequest) XXX_Merge(src proto.Message)
func (*WriteRequest) XXX_Size ¶
func (m *WriteRequest) XXX_Size() int
func (*WriteRequest) XXX_Unmarshal ¶
func (m *WriteRequest) XXX_Unmarshal(b []byte) error
type WriteResponse ¶
type WriteResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WriteResponse) Descriptor ¶
func (*WriteResponse) Descriptor() ([]byte, []int)
func (*WriteResponse) ProtoMessage ¶
func (*WriteResponse) ProtoMessage()
func (*WriteResponse) Reset ¶
func (m *WriteResponse) Reset()
func (*WriteResponse) String ¶
func (m *WriteResponse) String() string
func (*WriteResponse) XXX_DiscardUnknown ¶
func (m *WriteResponse) XXX_DiscardUnknown()
func (*WriteResponse) XXX_Marshal ¶
func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WriteResponse) XXX_Merge ¶
func (m *WriteResponse) XXX_Merge(src proto.Message)
func (*WriteResponse) XXX_Size ¶
func (m *WriteResponse) XXX_Size() int
func (*WriteResponse) XXX_Unmarshal ¶
func (m *WriteResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.