store

package
v0.0.0-...-66e7bdd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisStore

type RedisStore struct {
	// contains filtered or unexported fields
}

func NewRedisStore

func NewRedisStore(config *configs.Config) (*RedisStore, error)

func (*RedisStore) GetNextRun

func (s *RedisStore) GetNextRun(feed *configs.FeedConfig) (time.Time, error)

func (*RedisStore) GetValues

func (s *RedisStore) GetValues() (map[string]map[string]interface{}, error)

func (*RedisStore) SetNextRun

func (s *RedisStore) SetNextRun(feed *configs.FeedConfig, nextRun time.Time) error

func (*RedisStore) SetValues

func (s *RedisStore) SetValues(feed *configs.FeedConfig, values map[string]gjson.Result) error

func (*RedisStore) StringOrVar

func (s *RedisStore) StringOrVar(value string) string

type Store

type Store interface {
	StringOrVar(value string) string
	GetNextRun(feed *configs.FeedConfig) (time.Time, error)
	SetNextRun(feed *configs.FeedConfig, nextRun time.Time) error
	GetValues() (map[string]map[string]interface{}, error)
	SetValues(feed *configs.FeedConfig, values map[string]gjson.Result) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL