store

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	// ObservedUsernames specifies the Uplay usernames to track metrics for
	ObservedUsernames []string
	// InfluxClient handles the connection with the InfluxDB v2
	InfluxWriteAPI influxapi.WriteAPI
	// RefreshCron defines the interval at which the application checks for new stats
	RefreshCron string
}

type Store

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

func New

func New(api *r6api.R6API, logger *zerolog.Logger, opts Opts) (*Store, error)

func (*Store) Run added in v0.6.0

func (s *Store) Run()

Run starts the scheduler as a blocking call

func (*Store) RunAsync added in v0.6.0

func (s *Store) RunAsync()

RunAsync starts the scheduler as a non-blocking call

Jump to

Keyboard shortcuts

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