repository

package
v0.0.0-...-374ba1d Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Bucket string = "metric"

Variables

This section is empty.

Functions

func NewBoltRepo

func NewBoltRepo(dbfile string) (*btRepo, error)

func NewSQLite3Repo

func NewSQLite3Repo(dbfile string) (*dbRepo, error)

Types

type InMemoryRepo

type InMemoryRepo struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewInmemoryRepo

func NewInmemoryRepo() (*InMemoryRepo, error)

func (*InMemoryRepo) Add

func (in *InMemoryRepo) Add(m models.Metric) error

func (*InMemoryRepo) GetMetricsFromString

func (in *InMemoryRepo) GetMetricsFromString(day string) ([]models.Metric, error)

Jump to

Keyboard shortcuts

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