go_micro_store

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 10 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStoreEndpoints added in v2.5.0

func NewStoreEndpoints() []*api.Endpoint

func RegisterStoreHandler

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

func RegisterStoreServer added in v2.4.0

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

Types

type DatabasesRequest added in v2.5.0

type DatabasesRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DatabasesRequest) Descriptor added in v2.5.0

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

func (*DatabasesRequest) ProtoMessage added in v2.5.0

func (*DatabasesRequest) ProtoMessage()

func (*DatabasesRequest) Reset added in v2.5.0

func (m *DatabasesRequest) Reset()

func (*DatabasesRequest) String added in v2.5.0

func (m *DatabasesRequest) String() string

func (*DatabasesRequest) XXX_DiscardUnknown added in v2.5.0

func (m *DatabasesRequest) XXX_DiscardUnknown()

func (*DatabasesRequest) XXX_Marshal added in v2.5.0

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

func (*DatabasesRequest) XXX_Merge added in v2.5.0

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

func (*DatabasesRequest) XXX_Size added in v2.5.0

func (m *DatabasesRequest) XXX_Size() int

func (*DatabasesRequest) XXX_Unmarshal added in v2.5.0

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

type DatabasesResponse added in v2.5.0

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 added in v2.5.0

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

func (*DatabasesResponse) GetDatabases added in v2.5.0

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

func (*DatabasesResponse) ProtoMessage added in v2.5.0

func (*DatabasesResponse) ProtoMessage()

func (*DatabasesResponse) Reset added in v2.5.0

func (m *DatabasesResponse) Reset()

func (*DatabasesResponse) String added in v2.5.0

func (m *DatabasesResponse) String() string

func (*DatabasesResponse) XXX_DiscardUnknown added in v2.5.0

func (m *DatabasesResponse) XXX_DiscardUnknown()

func (*DatabasesResponse) XXX_Marshal added in v2.5.0

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

func (*DatabasesResponse) XXX_Merge added in v2.5.0

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

func (*DatabasesResponse) XXX_Size added in v2.5.0

func (m *DatabasesResponse) XXX_Size() int

func (*DatabasesResponse) XXX_Unmarshal added in v2.5.0

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

type DeleteOptions added in v2.3.0

type DeleteOptions struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteOptions) Descriptor added in v2.3.0

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

func (*DeleteOptions) ProtoMessage added in v2.3.0

func (*DeleteOptions) ProtoMessage()

func (*DeleteOptions) Reset added in v2.3.0

func (m *DeleteOptions) Reset()

func (*DeleteOptions) String added in v2.3.0

func (m *DeleteOptions) String() string

func (*DeleteOptions) XXX_DiscardUnknown added in v2.3.0

func (m *DeleteOptions) XXX_DiscardUnknown()

func (*DeleteOptions) XXX_Marshal added in v2.3.0

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

func (*DeleteOptions) XXX_Merge added in v2.3.0

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

func (*DeleteOptions) XXX_Size added in v2.3.0

func (m *DeleteOptions) XXX_Size() int

func (*DeleteOptions) XXX_Unmarshal added in v2.3.0

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 added in v2.3.0

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 ListOptions added in v2.3.0

type ListOptions struct {
	Prefix               string   `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Suffix               string   `protobuf:"bytes,2,opt,name=suffix,proto3" json:"suffix,omitempty"`
	Limit                uint64   `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset               uint64   `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListOptions) Descriptor added in v2.3.0

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

func (*ListOptions) GetLimit added in v2.3.0

func (m *ListOptions) GetLimit() uint64

func (*ListOptions) GetOffset added in v2.3.0

func (m *ListOptions) GetOffset() uint64

func (*ListOptions) GetPrefix added in v2.3.0

func (m *ListOptions) GetPrefix() string

func (*ListOptions) GetSuffix added in v2.3.0

func (m *ListOptions) GetSuffix() string

func (*ListOptions) ProtoMessage added in v2.3.0

func (*ListOptions) ProtoMessage()

func (*ListOptions) Reset added in v2.3.0

func (m *ListOptions) Reset()

func (*ListOptions) String added in v2.3.0

func (m *ListOptions) String() string

func (*ListOptions) XXX_DiscardUnknown added in v2.3.0

func (m *ListOptions) XXX_DiscardUnknown()

func (*ListOptions) XXX_Marshal added in v2.3.0

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

func (*ListOptions) XXX_Merge added in v2.3.0

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

func (*ListOptions) XXX_Size added in v2.3.0

func (m *ListOptions) XXX_Size() int

func (*ListOptions) XXX_Unmarshal added in v2.3.0

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 added in v2.3.0

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 added in v2.3.0

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 {
	Prefix               bool     `protobuf:"varint,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Suffix               bool     `protobuf:"varint,2,opt,name=suffix,proto3" json:"suffix,omitempty"`
	Limit                uint64   `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset               uint64   `protobuf:"varint,4,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) GetLimit added in v2.3.0

func (m *ReadOptions) GetLimit() uint64

func (*ReadOptions) GetOffset added in v2.3.0

func (m *ReadOptions) GetOffset() uint64

func (*ReadOptions) GetPrefix

func (m *ReadOptions) GetPrefix() bool

func (*ReadOptions) GetSuffix added in v2.3.0

func (m *ReadOptions) GetSuffix() bool

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) Reset

func (m *Record) Reset()

func (*Record) String

func (m *Record) String() string

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 added in v2.4.0

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 v2.4.0

func NewStoreClient(cc *grpc.ClientConn) StoreClient

type StoreServer added in v2.4.0

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 v2.4.0

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

type Store_ListServer added in v2.4.0

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 added in v2.5.0

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 added in v2.5.0

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

func (*TablesRequest) GetDatabase added in v2.5.0

func (m *TablesRequest) GetDatabase() string

func (*TablesRequest) ProtoMessage added in v2.5.0

func (*TablesRequest) ProtoMessage()

func (*TablesRequest) Reset added in v2.5.0

func (m *TablesRequest) Reset()

func (*TablesRequest) String added in v2.5.0

func (m *TablesRequest) String() string

func (*TablesRequest) XXX_DiscardUnknown added in v2.5.0

func (m *TablesRequest) XXX_DiscardUnknown()

func (*TablesRequest) XXX_Marshal added in v2.5.0

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

func (*TablesRequest) XXX_Merge added in v2.5.0

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

func (*TablesRequest) XXX_Size added in v2.5.0

func (m *TablesRequest) XXX_Size() int

func (*TablesRequest) XXX_Unmarshal added in v2.5.0

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

type TablesResponse added in v2.5.0

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 added in v2.5.0

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

func (*TablesResponse) GetTables added in v2.5.0

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

func (*TablesResponse) ProtoMessage added in v2.5.0

func (*TablesResponse) ProtoMessage()

func (*TablesResponse) Reset added in v2.5.0

func (m *TablesResponse) Reset()

func (*TablesResponse) String added in v2.5.0

func (m *TablesResponse) String() string

func (*TablesResponse) XXX_DiscardUnknown added in v2.5.0

func (m *TablesResponse) XXX_DiscardUnknown()

func (*TablesResponse) XXX_Marshal added in v2.5.0

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

func (*TablesResponse) XXX_Merge added in v2.5.0

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

func (*TablesResponse) XXX_Size added in v2.5.0

func (m *TablesResponse) XXX_Size() int

func (*TablesResponse) XXX_Unmarshal added in v2.5.0

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

type UnimplementedStoreServer added in v2.4.0

type UnimplementedStoreServer struct {
}

UnimplementedStoreServer can be embedded to have forward compatible implementations.

func (*UnimplementedStoreServer) Databases added in v2.5.0

func (*UnimplementedStoreServer) Delete added in v2.4.0

func (*UnimplementedStoreServer) List added in v2.4.0

func (*UnimplementedStoreServer) Read added in v2.4.0

func (*UnimplementedStoreServer) Tables added in v2.5.0

func (*UnimplementedStoreServer) Write added in v2.4.0

type WriteOptions added in v2.3.0

type WriteOptions struct {
	// time.Time
	Expiry int64 `protobuf:"varint,1,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// time.Duration
	Ttl                  int64    `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WriteOptions) Descriptor added in v2.3.0

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

func (*WriteOptions) GetExpiry added in v2.3.0

func (m *WriteOptions) GetExpiry() int64

func (*WriteOptions) GetTtl added in v2.3.0

func (m *WriteOptions) GetTtl() int64

func (*WriteOptions) ProtoMessage added in v2.3.0

func (*WriteOptions) ProtoMessage()

func (*WriteOptions) Reset added in v2.3.0

func (m *WriteOptions) Reset()

func (*WriteOptions) String added in v2.3.0

func (m *WriteOptions) String() string

func (*WriteOptions) XXX_DiscardUnknown added in v2.3.0

func (m *WriteOptions) XXX_DiscardUnknown()

func (*WriteOptions) XXX_Marshal added in v2.3.0

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

func (*WriteOptions) XXX_Merge added in v2.3.0

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

func (*WriteOptions) XXX_Size added in v2.3.0

func (m *WriteOptions) XXX_Size() int

func (*WriteOptions) XXX_Unmarshal added in v2.3.0

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 added in v2.3.0

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

Jump to

Keyboard shortcuts

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