service

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Metrics statsd.ClientInterface
	DB      DB
}

type DB

type DB interface {
	metrics.Freshnesser
	metrics.Accessor

	Close() error
	SQLDB() *sql.DB
}

type Service

type Service struct {
	Conf       Conf
	StaticConf *conf.StaticConf
}

func New

func New(c Conf, sc *conf.StaticConf) (*Service, error)

func (*Service) CheckComparisons added in v0.0.2

func (s *Service) CheckComparisons() error

func (*Service) CheckFreshness

func (s *Service) CheckFreshness() error

func (*Service) Close

func (s *Service) Close() error

func (*Service) Run

func (s *Service) Run() error

Jump to

Keyboard shortcuts

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