Documentation
¶
Index ¶
- Constants
- func NewEtcdStateStore(endpoints []string, prefix string, timeout time.Duration) (hermod.StateStore, error)
- func NewMemoryStore() hermod.StateStore
- func NewRedisStateStore(addr, password string, db int, prefix string, ttl time.Duration) hermod.StateStore
- func NewSQLiteStateStore(path string) (hermod.StateStore, error)
- func NewStateStore(cfg Config) (hermod.StateStore, error)
- type Config
- type EtcdStateStore
- type RedisStateStore
- type SQLiteStateStore
Constants ¶
View Source
const ( QueryInitTable = "InitTable" QueryGet = "Get" QuerySet = "Set" QueryDelete = "Delete" )
Variables ¶
This section is empty.
Functions ¶
func NewEtcdStateStore ¶
func NewMemoryStore ¶
func NewMemoryStore() hermod.StateStore
func NewRedisStateStore ¶
func NewSQLiteStateStore ¶
func NewSQLiteStateStore(path string) (hermod.StateStore, error)
func NewStateStore ¶
func NewStateStore(cfg Config) (hermod.StateStore, error)
Types ¶
type EtcdStateStore ¶
type EtcdStateStore struct {
// contains filtered or unexported fields
}
func (*EtcdStateStore) Close ¶
func (s *EtcdStateStore) Close() error
func (*EtcdStateStore) Delete ¶
func (s *EtcdStateStore) Delete(ctx context.Context, key string) error
type RedisStateStore ¶
type RedisStateStore struct {
// contains filtered or unexported fields
}
func (*RedisStateStore) Delete ¶
func (s *RedisStateStore) Delete(ctx context.Context, key string) error
type SQLiteStateStore ¶
type SQLiteStateStore struct {
// contains filtered or unexported fields
}
func (*SQLiteStateStore) Close ¶
func (s *SQLiteStateStore) Close() error
func (*SQLiteStateStore) Delete ¶
func (s *SQLiteStateStore) Delete(ctx context.Context, key string) error
Click to show internal directories.
Click to hide internal directories.