watcher

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.0.28

type Config struct {
	Queries        []string      `envconfig:"QUERIES" default:"bitcoin,ethereum,ripple,crypto,cryptocurrenc,altcoin,BTC"`
	CleanInterval  time.Duration `envconfig:"CLEAN_INTERVAL" default:"10m"`
	TooOld         time.Duration `envconfig:"TOO_OLD" default:"9h"`
	SearchInterval time.Duration `envconfig:"SEARCH_INTERVAL" default:"1m"`
}

func GetConfig added in v0.0.28

func GetConfig() *Config

type Watcher

type Watcher interface {
	Watch(ctx context.Context)
}

func NewWatcher

func NewWatcher(config *Config, finder finder, repo repo, checker ratingChecker, doubleDelayer doubleDelayer, logger log.Logger) Watcher

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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