service

package
v0.0.0-...-4dd3280 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 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 Service

type Service interface {
	Init() error
	GetLast(indexes []h3.H3Index) map[h3.H3Index]models.HexData
	GetWithTimestamp(indexes []h3.H3Index, ts int64) map[h3.H3Index]models.HexData
	IncInfected(index h3.H3Index, ts int64) error
	DecInfected(index h3.H3Index, ts int64) error
	IncHealthy(index h3.H3Index, ts int64) error
	DecHealthy(index h3.H3Index, ts int64) error
}

func New

func New(cfg *config.Config, provider *nats_provider.NATSProvider) Service

Jump to

Keyboard shortcuts

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