store

package
v3.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_store_store_proto protoreflect.FileDescriptor

Functions

func NewBlobStoreEndpoints

func NewBlobStoreEndpoints() []*api.Endpoint

func NewStoreEndpoints

func NewStoreEndpoints() []*api.Endpoint

func RegisterBlobStoreHandler

func RegisterBlobStoreHandler(s server.Server, hdlr BlobStoreHandler, opts ...server.HandlerOption) error

func RegisterBlobStoreServer added in v3.8.3

func RegisterBlobStoreServer(s *grpc.Server, srv BlobStoreServer)

func RegisterStoreHandler

func RegisterStoreHandler(s server.Server, hdlr StoreHandler, opts ...server.HandlerOption) error

func RegisterStoreServer added in v3.8.3

func RegisterStoreServer(s *grpc.Server, srv StoreServer)

Types

type BlobDeleteRequest

type BlobDeleteRequest struct {
	Key     string       `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Options *BlobOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*BlobDeleteRequest) Descriptor deprecated

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

Deprecated: Use BlobDeleteRequest.ProtoReflect.Descriptor instead.

func (*BlobDeleteRequest) GetKey

func (x *BlobDeleteRequest) GetKey() string

func (*BlobDeleteRequest) GetOptions

func (x *BlobDeleteRequest) GetOptions() *BlobOptions

func (*BlobDeleteRequest) ProtoMessage

func (*BlobDeleteRequest) ProtoMessage()

func (*BlobDeleteRequest) ProtoReflect

func (x *BlobDeleteRequest) ProtoReflect() protoreflect.Message

func (*BlobDeleteRequest) Reset

func (x *BlobDeleteRequest) Reset()

func (*BlobDeleteRequest) String

func (x *BlobDeleteRequest) String() string

type BlobDeleteResponse

type BlobDeleteResponse struct {
	// contains filtered or unexported fields
}

func (*BlobDeleteResponse) Descriptor deprecated

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

Deprecated: Use BlobDeleteResponse.ProtoReflect.Descriptor instead.

func (*BlobDeleteResponse) ProtoMessage

func (*BlobDeleteResponse) ProtoMessage()

func (*BlobDeleteResponse) ProtoReflect

func (x *BlobDeleteResponse) ProtoReflect() protoreflect.Message

func (*BlobDeleteResponse) Reset

func (x *BlobDeleteResponse) Reset()

func (*BlobDeleteResponse) String

func (x *BlobDeleteResponse) String() string

type BlobListOptions added in v3.8.4

type BlobListOptions struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Prefix    string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// contains filtered or unexported fields
}

func (*BlobListOptions) Descriptor deprecated added in v3.8.4

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

Deprecated: Use BlobListOptions.ProtoReflect.Descriptor instead.

func (*BlobListOptions) GetNamespace added in v3.8.4

func (x *BlobListOptions) GetNamespace() string

func (*BlobListOptions) GetPrefix added in v3.8.4

func (x *BlobListOptions) GetPrefix() string

func (*BlobListOptions) ProtoMessage added in v3.8.4

func (*BlobListOptions) ProtoMessage()

func (*BlobListOptions) ProtoReflect added in v3.8.4

func (x *BlobListOptions) ProtoReflect() protoreflect.Message

func (*BlobListOptions) Reset added in v3.8.4

func (x *BlobListOptions) Reset()

func (*BlobListOptions) String added in v3.8.4

func (x *BlobListOptions) String() string

type BlobListRequest added in v3.8.4

type BlobListRequest struct {
	Options *BlobListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*BlobListRequest) Descriptor deprecated added in v3.8.4

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

Deprecated: Use BlobListRequest.ProtoReflect.Descriptor instead.

func (*BlobListRequest) GetOptions added in v3.8.4

func (x *BlobListRequest) GetOptions() *BlobListOptions

func (*BlobListRequest) ProtoMessage added in v3.8.4

func (*BlobListRequest) ProtoMessage()

func (*BlobListRequest) ProtoReflect added in v3.8.4

func (x *BlobListRequest) ProtoReflect() protoreflect.Message

func (*BlobListRequest) Reset added in v3.8.4

func (x *BlobListRequest) Reset()

func (*BlobListRequest) String added in v3.8.4

func (x *BlobListRequest) String() string

type BlobListResponse added in v3.8.4

type BlobListResponse struct {
	Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*BlobListResponse) Descriptor deprecated added in v3.8.4

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

Deprecated: Use BlobListResponse.ProtoReflect.Descriptor instead.

func (*BlobListResponse) GetKeys added in v3.8.4

func (x *BlobListResponse) GetKeys() []string

func (*BlobListResponse) ProtoMessage added in v3.8.4

func (*BlobListResponse) ProtoMessage()

func (*BlobListResponse) ProtoReflect added in v3.8.4

func (x *BlobListResponse) ProtoReflect() protoreflect.Message

func (*BlobListResponse) Reset added in v3.8.4

func (x *BlobListResponse) Reset()

func (*BlobListResponse) String added in v3.8.4

func (x *BlobListResponse) String() string

type BlobOptions

type BlobOptions struct {
	Namespace   string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Public      bool   `protobuf:"varint,2,opt,name=public,proto3" json:"public,omitempty"`
	ContentType string `protobuf:"bytes,3,opt,name=contentType,proto3" json:"contentType,omitempty"`
	// contains filtered or unexported fields
}

func (*BlobOptions) Descriptor deprecated

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

Deprecated: Use BlobOptions.ProtoReflect.Descriptor instead.

func (*BlobOptions) GetContentType

func (x *BlobOptions) GetContentType() string

func (*BlobOptions) GetNamespace

func (x *BlobOptions) GetNamespace() string

func (*BlobOptions) GetPublic

func (x *BlobOptions) GetPublic() bool

func (*BlobOptions) ProtoMessage

func (*BlobOptions) ProtoMessage()

func (*BlobOptions) ProtoReflect

func (x *BlobOptions) ProtoReflect() protoreflect.Message

func (*BlobOptions) Reset

func (x *BlobOptions) Reset()

func (*BlobOptions) String

func (x *BlobOptions) String() string

type BlobReadRequest

type BlobReadRequest struct {
	Key     string       `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Options *BlobOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*BlobReadRequest) Descriptor deprecated

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

Deprecated: Use BlobReadRequest.ProtoReflect.Descriptor instead.

func (*BlobReadRequest) GetKey

func (x *BlobReadRequest) GetKey() string

func (*BlobReadRequest) GetOptions

func (x *BlobReadRequest) GetOptions() *BlobOptions

func (*BlobReadRequest) ProtoMessage

func (*BlobReadRequest) ProtoMessage()

func (*BlobReadRequest) ProtoReflect

func (x *BlobReadRequest) ProtoReflect() protoreflect.Message

func (*BlobReadRequest) Reset

func (x *BlobReadRequest) Reset()

func (*BlobReadRequest) String

func (x *BlobReadRequest) String() string

type BlobReadResponse

type BlobReadResponse struct {
	Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"`
	// contains filtered or unexported fields
}

func (*BlobReadResponse) Descriptor deprecated

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

Deprecated: Use BlobReadResponse.ProtoReflect.Descriptor instead.

func (*BlobReadResponse) GetBlob

func (x *BlobReadResponse) GetBlob() []byte

func (*BlobReadResponse) ProtoMessage

func (*BlobReadResponse) ProtoMessage()

func (*BlobReadResponse) ProtoReflect

func (x *BlobReadResponse) ProtoReflect() protoreflect.Message

func (*BlobReadResponse) Reset

func (x *BlobReadResponse) Reset()

func (*BlobReadResponse) String

func (x *BlobReadResponse) String() string

type BlobStoreClient added in v3.8.3

type BlobStoreClient interface {
	Read(ctx context.Context, in *BlobReadRequest, opts ...grpc.CallOption) (BlobStore_ReadClient, error)
	Write(ctx context.Context, opts ...grpc.CallOption) (BlobStore_WriteClient, error)
	Delete(ctx context.Context, in *BlobDeleteRequest, opts ...grpc.CallOption) (*BlobDeleteResponse, error)
	List(ctx context.Context, in *BlobListRequest, opts ...grpc.CallOption) (*BlobListResponse, error)
}

BlobStoreClient is the client API for BlobStore service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBlobStoreClient added in v3.8.3

func NewBlobStoreClient(cc grpc.ClientConnInterface) BlobStoreClient

type BlobStoreServer added in v3.8.3

BlobStoreServer is the server API for BlobStore service.

type BlobStore_ReadClient added in v3.8.3

type BlobStore_ReadClient interface {
	Recv() (*BlobReadResponse, error)
	grpc.ClientStream
}

type BlobStore_ReadServer added in v3.8.3

type BlobStore_ReadServer interface {
	Send(*BlobReadResponse) error
	grpc.ServerStream
}

type BlobStore_ReadService

type BlobStore_ReadService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*BlobReadResponse, error)
}

type BlobStore_ReadStream

type BlobStore_ReadStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*BlobReadResponse) error
}

type BlobStore_WriteClient added in v3.8.3

type BlobStore_WriteClient interface {
	Send(*BlobWriteRequest) error
	CloseAndRecv() (*BlobWriteResponse, error)
	grpc.ClientStream
}

type BlobStore_WriteServer added in v3.8.3

type BlobStore_WriteServer interface {
	SendAndClose(*BlobWriteResponse) error
	Recv() (*BlobWriteRequest, error)
	grpc.ServerStream
}

type BlobStore_WriteService

type BlobStore_WriteService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	CloseAndRecv() (*BlobWriteResponse, error)
	Send(*BlobWriteRequest) error
}

type BlobStore_WriteStream

type BlobStore_WriteStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	SendAndClose(*BlobWriteResponse) error
	Recv() (*BlobWriteRequest, error)
}

type BlobWriteRequest

type BlobWriteRequest struct {
	Key     string       `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Options *BlobOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	Blob    []byte       `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"`
	// contains filtered or unexported fields
}

func (*BlobWriteRequest) Descriptor deprecated

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

Deprecated: Use BlobWriteRequest.ProtoReflect.Descriptor instead.

func (*BlobWriteRequest) GetBlob

func (x *BlobWriteRequest) GetBlob() []byte

func (*BlobWriteRequest) GetKey

func (x *BlobWriteRequest) GetKey() string

func (*BlobWriteRequest) GetOptions

func (x *BlobWriteRequest) GetOptions() *BlobOptions

func (*BlobWriteRequest) ProtoMessage

func (*BlobWriteRequest) ProtoMessage()

func (*BlobWriteRequest) ProtoReflect

func (x *BlobWriteRequest) ProtoReflect() protoreflect.Message

func (*BlobWriteRequest) Reset

func (x *BlobWriteRequest) Reset()

func (*BlobWriteRequest) String

func (x *BlobWriteRequest) String() string

type BlobWriteResponse

type BlobWriteResponse struct {
	// contains filtered or unexported fields
}

func (*BlobWriteResponse) Descriptor deprecated

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

Deprecated: Use BlobWriteResponse.ProtoReflect.Descriptor instead.

func (*BlobWriteResponse) ProtoMessage

func (*BlobWriteResponse) ProtoMessage()

func (*BlobWriteResponse) ProtoReflect

func (x *BlobWriteResponse) ProtoReflect() protoreflect.Message

func (*BlobWriteResponse) Reset

func (x *BlobWriteResponse) Reset()

func (*BlobWriteResponse) String

func (x *BlobWriteResponse) String() string

type DatabasesRequest

type DatabasesRequest struct {
	// contains filtered or unexported fields
}

func (*DatabasesRequest) Descriptor deprecated

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

Deprecated: Use DatabasesRequest.ProtoReflect.Descriptor instead.

func (*DatabasesRequest) ProtoMessage

func (*DatabasesRequest) ProtoMessage()

func (*DatabasesRequest) ProtoReflect

func (x *DatabasesRequest) ProtoReflect() protoreflect.Message

func (*DatabasesRequest) Reset

func (x *DatabasesRequest) Reset()

func (*DatabasesRequest) String

func (x *DatabasesRequest) String() string

type DatabasesResponse

type DatabasesResponse struct {
	Databases []string `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
	// contains filtered or unexported fields
}

func (*DatabasesResponse) Descriptor deprecated

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

Deprecated: Use DatabasesResponse.ProtoReflect.Descriptor instead.

func (*DatabasesResponse) GetDatabases

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

func (*DatabasesResponse) ProtoMessage

func (*DatabasesResponse) ProtoMessage()

func (*DatabasesResponse) ProtoReflect

func (x *DatabasesResponse) ProtoReflect() protoreflect.Message

func (*DatabasesResponse) Reset

func (x *DatabasesResponse) Reset()

func (*DatabasesResponse) String

func (x *DatabasesResponse) String() string

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"`
	// contains filtered or unexported fields
}

func (*DeleteOptions) Descriptor deprecated

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

Deprecated: Use DeleteOptions.ProtoReflect.Descriptor instead.

func (*DeleteOptions) GetDatabase

func (x *DeleteOptions) GetDatabase() string

func (*DeleteOptions) GetTable

func (x *DeleteOptions) GetTable() string

func (*DeleteOptions) ProtoMessage

func (*DeleteOptions) ProtoMessage()

func (*DeleteOptions) ProtoReflect

func (x *DeleteOptions) ProtoReflect() protoreflect.Message

func (*DeleteOptions) Reset

func (x *DeleteOptions) Reset()

func (*DeleteOptions) String

func (x *DeleteOptions) String() string

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"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetKey

func (x *DeleteRequest) GetKey() string

func (*DeleteRequest) GetOptions

func (x *DeleteRequest) GetOptions() *DeleteOptions

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

func (x *DeleteRequest) ProtoReflect() protoreflect.Message

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

type DeleteResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

func (x *DeleteResponse) ProtoReflect() protoreflect.Message

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

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"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

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

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetType

func (x *Field) GetType() string

func (*Field) GetValue

func (x *Field) GetValue() string

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

func (x *Field) ProtoReflect() protoreflect.Message

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

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"`
	Order    string `protobuf:"bytes,7,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOptions) Descriptor deprecated

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

Deprecated: Use ListOptions.ProtoReflect.Descriptor instead.

func (*ListOptions) GetDatabase

func (x *ListOptions) GetDatabase() string

func (*ListOptions) GetLimit

func (x *ListOptions) GetLimit() uint64

func (*ListOptions) GetOffset

func (x *ListOptions) GetOffset() uint64

func (*ListOptions) GetOrder

func (x *ListOptions) GetOrder() string

func (*ListOptions) GetPrefix

func (x *ListOptions) GetPrefix() string

func (*ListOptions) GetSuffix

func (x *ListOptions) GetSuffix() string

func (*ListOptions) GetTable

func (x *ListOptions) GetTable() string

func (*ListOptions) ProtoMessage

func (*ListOptions) ProtoMessage()

func (*ListOptions) ProtoReflect

func (x *ListOptions) ProtoReflect() protoreflect.Message

func (*ListOptions) Reset

func (x *ListOptions) Reset()

func (*ListOptions) String

func (x *ListOptions) String() string

type ListRequest

type ListRequest struct {
	Options *ListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetOptions

func (x *ListRequest) GetOptions() *ListOptions

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

func (x *ListRequest) ProtoReflect() protoreflect.Message

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {
	Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetKeys

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

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

func (x *ListResponse) ProtoReflect() protoreflect.Message

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

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"`
	Order    string `protobuf:"bytes,7,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadOptions) Descriptor deprecated

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

Deprecated: Use ReadOptions.ProtoReflect.Descriptor instead.

func (*ReadOptions) GetDatabase

func (x *ReadOptions) GetDatabase() string

func (*ReadOptions) GetLimit

func (x *ReadOptions) GetLimit() uint64

func (*ReadOptions) GetOffset

func (x *ReadOptions) GetOffset() uint64

func (*ReadOptions) GetOrder

func (x *ReadOptions) GetOrder() string

func (*ReadOptions) GetPrefix

func (x *ReadOptions) GetPrefix() bool

func (*ReadOptions) GetSuffix

func (x *ReadOptions) GetSuffix() bool

func (*ReadOptions) GetTable

func (x *ReadOptions) GetTable() string

func (*ReadOptions) ProtoMessage

func (*ReadOptions) ProtoMessage()

func (*ReadOptions) ProtoReflect

func (x *ReadOptions) ProtoReflect() protoreflect.Message

func (*ReadOptions) Reset

func (x *ReadOptions) Reset()

func (*ReadOptions) String

func (x *ReadOptions) String() string

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"`
	// contains filtered or unexported fields
}

func (*ReadRequest) Descriptor deprecated

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

Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.

func (*ReadRequest) GetKey

func (x *ReadRequest) GetKey() string

func (*ReadRequest) GetOptions

func (x *ReadRequest) GetOptions() *ReadOptions

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) ProtoReflect

func (x *ReadRequest) ProtoReflect() protoreflect.Message

func (*ReadRequest) Reset

func (x *ReadRequest) Reset()

func (*ReadRequest) String

func (x *ReadRequest) String() string

type ReadResponse

type ReadResponse struct {
	Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadResponse) Descriptor deprecated

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

Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.

func (*ReadResponse) GetRecords

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

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) ProtoReflect

func (x *ReadResponse) ProtoReflect() protoreflect.Message

func (*ReadResponse) Reset

func (x *ReadResponse) Reset()

func (*ReadResponse) String

func (x *ReadResponse) String() string

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 */
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetExpiry

func (x *Record) GetExpiry() int64

func (*Record) GetKey

func (x *Record) GetKey() string

func (*Record) GetMetadata

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

func (*Record) GetValue

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

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

func (x *Record) ProtoReflect() protoreflect.Message

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type StoreClient added in v3.8.3

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 added in v3.8.3

func NewStoreClient(cc grpc.ClientConnInterface) StoreClient

type StoreServer added in v3.8.3

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 added in v3.8.3

type Store_ListClient interface {
	Recv() (*ListResponse, error)
	grpc.ClientStream
}

type Store_ListServer added in v3.8.3

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"`
	// contains filtered or unexported fields
}

func (*TablesRequest) Descriptor deprecated

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

Deprecated: Use TablesRequest.ProtoReflect.Descriptor instead.

func (*TablesRequest) GetDatabase

func (x *TablesRequest) GetDatabase() string

func (*TablesRequest) ProtoMessage

func (*TablesRequest) ProtoMessage()

func (*TablesRequest) ProtoReflect

func (x *TablesRequest) ProtoReflect() protoreflect.Message

func (*TablesRequest) Reset

func (x *TablesRequest) Reset()

func (*TablesRequest) String

func (x *TablesRequest) String() string

type TablesResponse

type TablesResponse struct {
	Tables []string `protobuf:"bytes,1,rep,name=tables,proto3" json:"tables,omitempty"`
	// contains filtered or unexported fields
}

func (*TablesResponse) Descriptor deprecated

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

Deprecated: Use TablesResponse.ProtoReflect.Descriptor instead.

func (*TablesResponse) GetTables

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

func (*TablesResponse) ProtoMessage

func (*TablesResponse) ProtoMessage()

func (*TablesResponse) ProtoReflect

func (x *TablesResponse) ProtoReflect() protoreflect.Message

func (*TablesResponse) Reset

func (x *TablesResponse) Reset()

func (*TablesResponse) String

func (x *TablesResponse) String() string

type UnimplementedBlobStoreServer added in v3.8.3

type UnimplementedBlobStoreServer struct {
}

UnimplementedBlobStoreServer can be embedded to have forward compatible implementations.

func (*UnimplementedBlobStoreServer) Delete added in v3.8.3

func (*UnimplementedBlobStoreServer) List added in v3.8.4

func (*UnimplementedBlobStoreServer) Read added in v3.8.3

func (*UnimplementedBlobStoreServer) Write added in v3.8.3

type UnimplementedStoreServer added in v3.8.3

type UnimplementedStoreServer struct {
}

UnimplementedStoreServer can be embedded to have forward compatible implementations.

func (*UnimplementedStoreServer) Databases added in v3.8.3

func (*UnimplementedStoreServer) Delete added in v3.8.3

func (*UnimplementedStoreServer) List added in v3.8.3

func (*UnimplementedStoreServer) Read added in v3.8.3

func (*UnimplementedStoreServer) Tables added in v3.8.3

func (*UnimplementedStoreServer) Write added in v3.8.3

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"`
	// contains filtered or unexported fields
}

func (*WriteOptions) Descriptor deprecated

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

Deprecated: Use WriteOptions.ProtoReflect.Descriptor instead.

func (*WriteOptions) GetDatabase

func (x *WriteOptions) GetDatabase() string

func (*WriteOptions) GetTable

func (x *WriteOptions) GetTable() string

func (*WriteOptions) ProtoMessage

func (*WriteOptions) ProtoMessage()

func (*WriteOptions) ProtoReflect

func (x *WriteOptions) ProtoReflect() protoreflect.Message

func (*WriteOptions) Reset

func (x *WriteOptions) Reset()

func (*WriteOptions) String

func (x *WriteOptions) String() string

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"`
	// contains filtered or unexported fields
}

func (*WriteRequest) Descriptor deprecated

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

Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.

func (*WriteRequest) GetOptions

func (x *WriteRequest) GetOptions() *WriteOptions

func (*WriteRequest) GetRecord

func (x *WriteRequest) GetRecord() *Record

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) ProtoReflect

func (x *WriteRequest) ProtoReflect() protoreflect.Message

func (*WriteRequest) Reset

func (x *WriteRequest) Reset()

func (*WriteRequest) String

func (x *WriteRequest) String() string

type WriteResponse

type WriteResponse struct {
	// contains filtered or unexported fields
}

func (*WriteResponse) Descriptor deprecated

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

Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) ProtoReflect

func (x *WriteResponse) ProtoReflect() protoreflect.Message

func (*WriteResponse) Reset

func (x *WriteResponse) Reset()

func (*WriteResponse) String

func (x *WriteResponse) String() string

Jump to

Keyboard shortcuts

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