Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
Options is a alias type for https://godoc.org/github.com/go-redis/redis#Options
type RedisStore ¶
RedisStore is a simple redis storage implementing the Storage interface.
func NewRedisStore ¶
func NewRedisStore(cfg *Options) (*RedisStore, error)
NewRedisStore create a new redis store
func (*RedisStore) DelPolicy ¶
func (s *RedisStore) DelPolicy(id string) error
DelPolicy delete the policy with the given identifier.
func (*RedisStore) GetPolicy ¶
func (s *RedisStore) GetPolicy(id string) (*policy.Policy, error)
GetPolicy returns the policy with the given identifier.
func (*RedisStore) ScrollPolicy ¶
func (s *RedisStore) ScrollPolicy(opts *storage.ScrollOptions) ([]*policy.Policy, string, error)
Click to show internal directories.
Click to hide internal directories.