Documentation ¶
Index ¶
- Constants
- func GetEndRangeValue(value string) string
- type BoltDoc
- type BoltDocService
- func (s *BoltDocService) DeleteKey(ctx context.Context, req *kvstorepb.KvStoreDeleteKeyRequest) (*kvstorepb.KvStoreDeleteKeyResponse, error)
- func (s *BoltDocService) GetValue(ctx context.Context, req *kvstorepb.KvStoreGetValueRequest) (*kvstorepb.KvStoreGetValueResponse, error)
- func (s *BoltDocService) ScanKeys(req *kvstorepb.KvStoreScanKeysRequest, stream kvstorepb.KvStore_ScanKeysServer) error
- func (s *BoltDocService) SetValue(ctx context.Context, req *kvstorepb.KvStoreSetValueRequest) (*kvstorepb.KvStoreSetValueResponse, error)
Constants ¶
View Source
const DEV_SUB_DIR_COLL = "./kv/"
Variables ¶
This section is empty.
Functions ¶
func GetEndRangeValue ¶
GetEndRangeValue - Get end range value to implement "startsWith" expression operator using where clause. For example with sdk.Expression("pk", "startsWith", "Customer#") this translates to: WHERE pk >= {startRangeValue} AND pk < {endRangeValue} WHERE pk >= "Customer#" AND pk < "Customer!"
Types ¶
type BoltDoc ¶
type BoltDocService ¶
type BoltDocService struct {
// contains filtered or unexported fields
}
func NewBoltService ¶
func NewBoltService() (*BoltDocService, error)
New - Create a new dev KV plugin
func (*BoltDocService) DeleteKey ¶ added in v1.36.0
func (s *BoltDocService) DeleteKey(ctx context.Context, req *kvstorepb.KvStoreDeleteKeyRequest) (*kvstorepb.KvStoreDeleteKeyResponse, error)
func (*BoltDocService) GetValue ¶ added in v1.36.0
func (s *BoltDocService) GetValue(ctx context.Context, req *kvstorepb.KvStoreGetValueRequest) (*kvstorepb.KvStoreGetValueResponse, error)
func (*BoltDocService) ScanKeys ¶ added in v1.36.0
func (s *BoltDocService) ScanKeys(req *kvstorepb.KvStoreScanKeysRequest, stream kvstorepb.KvStore_ScanKeysServer) error
func (*BoltDocService) SetValue ¶ added in v1.36.0
func (s *BoltDocService) SetValue(ctx context.Context, req *kvstorepb.KvStoreSetValueRequest) (*kvstorepb.KvStoreSetValueResponse, error)
Click to show internal directories.
Click to hide internal directories.