Documentation
¶
Index ¶
- Constants
- func DestroyStore() error
- func EnvironmentBucket() string
- func Path() string
- type BoltStore
- func (s *BoltStore) Close() error
- func (s *BoltStore) CreateAndSetBucket(id string) (string, error)
- func (s *BoltStore) CreateBucket(id string) error
- func (s *BoltStore) Delete(key string) error
- func (s *BoltStore) DeleteBucket(id string) error
- func (s *BoltStore) Get(key string) (string, error)
- func (s *BoltStore) GetAll() (map[string]string, error)
- func (s *BoltStore) GetKeys() ([]string, error)
- func (s *BoltStore) Set(key, value string) error
- type Store
Constants ¶
View Source
const ( BucketEnv = "FLOW_PROCESS_BUCKET" RootBucket = "root" )
Variables ¶
This section is empty.
Functions ¶
func DestroyStore ¶
func DestroyStore() error
func EnvironmentBucket ¶
func EnvironmentBucket() string
Types ¶
type BoltStore ¶
type BoltStore struct {
// contains filtered or unexported fields
}
func (*BoltStore) CreateAndSetBucket ¶
CreateAndSetBucket creates a temporary bucket for the process and returns the bucket's name
func (*BoltStore) CreateBucket ¶
CreateBucket creates a bucket with a given id if it doesn't exist
func (*BoltStore) DeleteBucket ¶
DeleteBucket deletes a bucket by its id
type Store ¶
Click to show internal directories.
Click to hide internal directories.