Documentation ¶
Index ¶
- Constants
- func GetEndRangeValue(value string) string
- type BoltDoc
- type BoltDocService
- func (s *BoltDocService) Delete(ctx context.Context, req *keyvaluepb.KeyValueDeleteRequest) (*keyvaluepb.KeyValueDeleteResponse, error)
- func (s *BoltDocService) Get(ctx context.Context, req *keyvaluepb.KeyValueGetRequest) (*keyvaluepb.KeyValueGetResponse, error)
- func (s *BoltDocService) Set(ctx context.Context, req *keyvaluepb.KeyValueSetRequest) (*keyvaluepb.KeyValueSetResponse, 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) Delete ¶
func (s *BoltDocService) Delete(ctx context.Context, req *keyvaluepb.KeyValueDeleteRequest) (*keyvaluepb.KeyValueDeleteResponse, error)
func (*BoltDocService) Get ¶
func (s *BoltDocService) Get(ctx context.Context, req *keyvaluepb.KeyValueGetRequest) (*keyvaluepb.KeyValueGetResponse, error)
func (*BoltDocService) Set ¶
func (s *BoltDocService) Set(ctx context.Context, req *keyvaluepb.KeyValueSetRequest) (*keyvaluepb.KeyValueSetResponse, error)
Click to show internal directories.
Click to hide internal directories.