store

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthStore        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStore          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStore = fmt.Errorf("proto: unexpected end of group")
)

Functions

func NewStoreEndpoints

func NewStoreEndpoints() []*api.Endpoint

Api Endpoints for Store service

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 {
}

func (*DatabasesRequest) Descriptor

func (*DatabasesRequest) Descriptor() ([]byte, []int)

func (*DatabasesRequest) Marshal

func (m *DatabasesRequest) Marshal() (dAtA []byte, err error)

func (*DatabasesRequest) MarshalTo

func (m *DatabasesRequest) MarshalTo(dAtA []byte) (int, error)

func (*DatabasesRequest) MarshalToSizedBuffer

func (m *DatabasesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DatabasesRequest) ProtoMessage

func (*DatabasesRequest) ProtoMessage()

func (*DatabasesRequest) Reset

func (m *DatabasesRequest) Reset()

func (*DatabasesRequest) Size

func (m *DatabasesRequest) Size() (n int)

func (*DatabasesRequest) String

func (m *DatabasesRequest) String() string

func (*DatabasesRequest) Unmarshal

func (m *DatabasesRequest) Unmarshal(dAtA []byte) error

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"`
}

func (*DatabasesResponse) Descriptor

func (*DatabasesResponse) Descriptor() ([]byte, []int)

func (*DatabasesResponse) GetDatabases

func (m *DatabasesResponse) GetDatabases() []string

func (*DatabasesResponse) Marshal

func (m *DatabasesResponse) Marshal() (dAtA []byte, err error)

func (*DatabasesResponse) MarshalTo

func (m *DatabasesResponse) MarshalTo(dAtA []byte) (int, error)

func (*DatabasesResponse) MarshalToSizedBuffer

func (m *DatabasesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DatabasesResponse) ProtoMessage

func (*DatabasesResponse) ProtoMessage()

func (*DatabasesResponse) Reset

func (m *DatabasesResponse) Reset()

func (*DatabasesResponse) Size

func (m *DatabasesResponse) Size() (n int)

func (*DatabasesResponse) String

func (m *DatabasesResponse) String() string

func (*DatabasesResponse) Unmarshal

func (m *DatabasesResponse) Unmarshal(dAtA []byte) error

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"`
}

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) Marshal

func (m *DeleteOptions) Marshal() (dAtA []byte, err error)

func (*DeleteOptions) MarshalTo

func (m *DeleteOptions) MarshalTo(dAtA []byte) (int, error)

func (*DeleteOptions) MarshalToSizedBuffer

func (m *DeleteOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteOptions) ProtoMessage

func (*DeleteOptions) ProtoMessage()

func (*DeleteOptions) Reset

func (m *DeleteOptions) Reset()

func (*DeleteOptions) Size

func (m *DeleteOptions) Size() (n int)

func (*DeleteOptions) String

func (m *DeleteOptions) String() string

func (*DeleteOptions) Unmarshal

func (m *DeleteOptions) Unmarshal(dAtA []byte) error

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"`
}

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) Marshal

func (m *DeleteRequest) Marshal() (dAtA []byte, err error)

func (*DeleteRequest) MarshalTo

func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeleteRequest) MarshalToSizedBuffer

func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset

func (m *DeleteRequest) Reset()

func (*DeleteRequest) Size

func (m *DeleteRequest) Size() (n int)

func (*DeleteRequest) String

func (m *DeleteRequest) String() string

func (*DeleteRequest) Unmarshal

func (m *DeleteRequest) Unmarshal(dAtA []byte) error

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 {
}

func (*DeleteResponse) Descriptor

func (*DeleteResponse) Descriptor() ([]byte, []int)

func (*DeleteResponse) Marshal

func (m *DeleteResponse) Marshal() (dAtA []byte, err error)

func (*DeleteResponse) MarshalTo

func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error)

func (*DeleteResponse) MarshalToSizedBuffer

func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) Reset

func (m *DeleteResponse) Reset()

func (*DeleteResponse) Size

func (m *DeleteResponse) Size() (n int)

func (*DeleteResponse) String

func (m *DeleteResponse) String() string

func (*DeleteResponse) Unmarshal

func (m *DeleteResponse) Unmarshal(dAtA []byte) error

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"`
}

func (*Field) Descriptor

func (*Field) Descriptor() ([]byte, []int)

func (*Field) GetType

func (m *Field) GetType() string

func (*Field) GetValue

func (m *Field) GetValue() string

func (*Field) Marshal

func (m *Field) Marshal() (dAtA []byte, err error)

func (*Field) MarshalTo

func (m *Field) MarshalTo(dAtA []byte) (int, error)

func (*Field) MarshalToSizedBuffer

func (m *Field) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) Reset

func (m *Field) Reset()

func (*Field) Size

func (m *Field) Size() (n int)

func (*Field) String

func (m *Field) String() string

func (*Field) Unmarshal

func (m *Field) Unmarshal(dAtA []byte) error

func (*Field) XXX_DiscardUnknown

func (m *Field) XXX_DiscardUnknown()

func (*Field) XXX_Marshal

func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Field) XXX_Merge

func (m *Field) XXX_Merge(src proto.Message)

func (*Field) XXX_Size

func (m *Field) XXX_Size() int

func (*Field) XXX_Unmarshal

func (m *Field) XXX_Unmarshal(b []byte) error

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"`
}

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) Marshal

func (m *ListOptions) Marshal() (dAtA []byte, err error)

func (*ListOptions) MarshalTo

func (m *ListOptions) MarshalTo(dAtA []byte) (int, error)

func (*ListOptions) MarshalToSizedBuffer

func (m *ListOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListOptions) ProtoMessage

func (*ListOptions) ProtoMessage()

func (*ListOptions) Reset

func (m *ListOptions) Reset()

func (*ListOptions) Size

func (m *ListOptions) Size() (n int)

func (*ListOptions) String

func (m *ListOptions) String() string

func (*ListOptions) Unmarshal

func (m *ListOptions) Unmarshal(dAtA []byte) error

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"`
}

func (*ListRequest) Descriptor

func (*ListRequest) Descriptor() ([]byte, []int)

func (*ListRequest) GetOptions

func (m *ListRequest) GetOptions() *ListOptions

func (*ListRequest) Marshal

func (m *ListRequest) Marshal() (dAtA []byte, err error)

func (*ListRequest) MarshalTo

func (m *ListRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListRequest) MarshalToSizedBuffer

func (m *ListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset

func (m *ListRequest) Reset()

func (*ListRequest) Size

func (m *ListRequest) Size() (n int)

func (*ListRequest) String

func (m *ListRequest) String() string

func (*ListRequest) Unmarshal

func (m *ListRequest) Unmarshal(dAtA []byte) error

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"`
}

func (*ListResponse) Descriptor

func (*ListResponse) Descriptor() ([]byte, []int)

func (*ListResponse) GetKeys

func (m *ListResponse) GetKeys() []string

func (*ListResponse) Marshal

func (m *ListResponse) Marshal() (dAtA []byte, err error)

func (*ListResponse) MarshalTo

func (m *ListResponse) MarshalTo(dAtA []byte) (int, error)

func (*ListResponse) MarshalToSizedBuffer

func (m *ListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) Reset

func (m *ListResponse) Reset()

func (*ListResponse) Size

func (m *ListResponse) Size() (n int)

func (*ListResponse) String

func (m *ListResponse) String() string

func (*ListResponse) Unmarshal

func (m *ListResponse) Unmarshal(dAtA []byte) error

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"`
}

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) Marshal

func (m *ReadOptions) Marshal() (dAtA []byte, err error)

func (*ReadOptions) MarshalTo

func (m *ReadOptions) MarshalTo(dAtA []byte) (int, error)

func (*ReadOptions) MarshalToSizedBuffer

func (m *ReadOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReadOptions) ProtoMessage

func (*ReadOptions) ProtoMessage()

func (*ReadOptions) Reset

func (m *ReadOptions) Reset()

func (*ReadOptions) Size

func (m *ReadOptions) Size() (n int)

func (*ReadOptions) String

func (m *ReadOptions) String() string

func (*ReadOptions) Unmarshal

func (m *ReadOptions) Unmarshal(dAtA []byte) error

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"`
}

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) Marshal

func (m *ReadRequest) Marshal() (dAtA []byte, err error)

func (*ReadRequest) MarshalTo

func (m *ReadRequest) MarshalTo(dAtA []byte) (int, error)

func (*ReadRequest) MarshalToSizedBuffer

func (m *ReadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) Reset

func (m *ReadRequest) Reset()

func (*ReadRequest) Size

func (m *ReadRequest) Size() (n int)

func (*ReadRequest) String

func (m *ReadRequest) String() string

func (*ReadRequest) Unmarshal

func (m *ReadRequest) Unmarshal(dAtA []byte) error

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"`
}

func (*ReadResponse) Descriptor

func (*ReadResponse) Descriptor() ([]byte, []int)

func (*ReadResponse) GetRecords

func (m *ReadResponse) GetRecords() []*Record

func (*ReadResponse) Marshal

func (m *ReadResponse) Marshal() (dAtA []byte, err error)

func (*ReadResponse) MarshalTo

func (m *ReadResponse) MarshalTo(dAtA []byte) (int, error)

func (*ReadResponse) MarshalToSizedBuffer

func (m *ReadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) Reset

func (m *ReadResponse) Reset()

func (*ReadResponse) Size

func (m *ReadResponse) Size() (n int)

func (*ReadResponse) String

func (m *ReadResponse) String() string

func (*ReadResponse) Unmarshal

func (m *ReadResponse) Unmarshal(dAtA []byte) error

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 */
}

func (*Record) Descriptor

func (*Record) Descriptor() ([]byte, []int)

func (*Record) GetExpiry

func (m *Record) GetExpiry() int64

func (*Record) GetKey

func (m *Record) GetKey() string

func (*Record) GetMetadata

func (m *Record) GetMetadata() map[string]*Field

func (*Record) GetValue

func (m *Record) GetValue() []byte

func (*Record) Marshal

func (m *Record) Marshal() (dAtA []byte, err error)

func (*Record) MarshalTo

func (m *Record) MarshalTo(dAtA []byte) (int, error)

func (*Record) MarshalToSizedBuffer

func (m *Record) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) Reset

func (m *Record) Reset()

func (*Record) Size

func (m *Record) Size() (n int)

func (*Record) String

func (m *Record) String() string

func (*Record) Unmarshal

func (m *Record) Unmarshal(dAtA []byte) error

func (*Record) XXX_DiscardUnknown

func (m *Record) XXX_DiscardUnknown()

func (*Record) XXX_Marshal

func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Record) XXX_Merge

func (m *Record) XXX_Merge(src proto.Message)

func (*Record) XXX_Size

func (m *Record) XXX_Size() int

func (*Record) XXX_Unmarshal

func (m *Record) XXX_Unmarshal(b []byte) error

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 StoreServer

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)
}

Client API for Store service

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_ListService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*ListResponse, error)
}

type Store_ListStream

type Store_ListStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*ListResponse) error
}

type TablesRequest

type TablesRequest struct {
	Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
}

func (*TablesRequest) Descriptor

func (*TablesRequest) Descriptor() ([]byte, []int)

func (*TablesRequest) GetDatabase

func (m *TablesRequest) GetDatabase() string

func (*TablesRequest) Marshal

func (m *TablesRequest) Marshal() (dAtA []byte, err error)

func (*TablesRequest) MarshalTo

func (m *TablesRequest) MarshalTo(dAtA []byte) (int, error)

func (*TablesRequest) MarshalToSizedBuffer

func (m *TablesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TablesRequest) ProtoMessage

func (*TablesRequest) ProtoMessage()

func (*TablesRequest) Reset

func (m *TablesRequest) Reset()

func (*TablesRequest) Size

func (m *TablesRequest) Size() (n int)

func (*TablesRequest) String

func (m *TablesRequest) String() string

func (*TablesRequest) Unmarshal

func (m *TablesRequest) Unmarshal(dAtA []byte) error

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"`
}

func (*TablesResponse) Descriptor

func (*TablesResponse) Descriptor() ([]byte, []int)

func (*TablesResponse) GetTables

func (m *TablesResponse) GetTables() []string

func (*TablesResponse) Marshal

func (m *TablesResponse) Marshal() (dAtA []byte, err error)

func (*TablesResponse) MarshalTo

func (m *TablesResponse) MarshalTo(dAtA []byte) (int, error)

func (*TablesResponse) MarshalToSizedBuffer

func (m *TablesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TablesResponse) ProtoMessage

func (*TablesResponse) ProtoMessage()

func (*TablesResponse) Reset

func (m *TablesResponse) Reset()

func (*TablesResponse) Size

func (m *TablesResponse) Size() (n int)

func (*TablesResponse) String

func (m *TablesResponse) String() string

func (*TablesResponse) Unmarshal

func (m *TablesResponse) Unmarshal(dAtA []byte) error

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) Delete

func (*UnimplementedStoreServer) List

func (*UnimplementedStoreServer) Read

func (*UnimplementedStoreServer) Tables

func (*UnimplementedStoreServer) Write

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"`
}

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) Marshal

func (m *WriteOptions) Marshal() (dAtA []byte, err error)

func (*WriteOptions) MarshalTo

func (m *WriteOptions) MarshalTo(dAtA []byte) (int, error)

func (*WriteOptions) MarshalToSizedBuffer

func (m *WriteOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WriteOptions) ProtoMessage

func (*WriteOptions) ProtoMessage()

func (*WriteOptions) Reset

func (m *WriteOptions) Reset()

func (*WriteOptions) Size

func (m *WriteOptions) Size() (n int)

func (*WriteOptions) String

func (m *WriteOptions) String() string

func (*WriteOptions) Unmarshal

func (m *WriteOptions) Unmarshal(dAtA []byte) error

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"`
}

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) Marshal

func (m *WriteRequest) Marshal() (dAtA []byte, err error)

func (*WriteRequest) MarshalTo

func (m *WriteRequest) MarshalTo(dAtA []byte) (int, error)

func (*WriteRequest) MarshalToSizedBuffer

func (m *WriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) Reset

func (m *WriteRequest) Reset()

func (*WriteRequest) Size

func (m *WriteRequest) Size() (n int)

func (*WriteRequest) String

func (m *WriteRequest) String() string

func (*WriteRequest) Unmarshal

func (m *WriteRequest) Unmarshal(dAtA []byte) error

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 {
}

func (*WriteResponse) Descriptor

func (*WriteResponse) Descriptor() ([]byte, []int)

func (*WriteResponse) Marshal

func (m *WriteResponse) Marshal() (dAtA []byte, err error)

func (*WriteResponse) MarshalTo

func (m *WriteResponse) MarshalTo(dAtA []byte) (int, error)

func (*WriteResponse) MarshalToSizedBuffer

func (m *WriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) Reset

func (m *WriteResponse) Reset()

func (*WriteResponse) Size

func (m *WriteResponse) Size() (n int)

func (*WriteResponse) String

func (m *WriteResponse) String() string

func (*WriteResponse) Unmarshal

func (m *WriteResponse) Unmarshal(dAtA []byte) error

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

Jump to

Keyboard shortcuts

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