deps

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHealthCheckIntervalSecs = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Config *config.Config

	// Backends
	CacheBackend cache.ICache
	RedisBackend *redis.Client

	// Services
	BusService        bus.IBus
	NotifyService     notify.INotifier
	MetricsService    metrics.IMetrics
	StoreService      store.IStore
	CmdService        cmd.ICmd
	KVService         kv.IKV
	PubSubService     pubsub.IPubSub
	EncryptionService encryption.IEncryption
	Health            health.IHealth
	ShutdownContext   context.Context
	ShutdownFunc      context.CancelFunc
	Telemetry         statsd.Statter
}

func New

func New(cfg *config.Config) (*Dependencies, error)

func (*Dependencies) RunUptimeTelemetry added in v0.0.10

func (d *Dependencies) RunUptimeTelemetry()

RunUptimeTelemetry sends a gauge metric to the telemetry backend every minute

Jump to

Keyboard shortcuts

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