persistence

package
v0.0.0-...-d40ee67 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RequestsStored    = make(map[model.Parameters]int)
	AddParametersChan chan model.Parameters
)

Functions

func Add

func Add(p model.Parameters) error

func AddInDB

func AddInDB(p model.Parameters) error

func AddInMemory

func AddInMemory(p model.Parameters)

func DeleteStatsDB

func DeleteStatsDB() error

func GetMostFrequent

func GetMostFrequent() (model.Parameters, int)

func GetMostFrequentDB

func GetMostFrequentDB() (model.Parameters, error)

func GetMostFrequentMemory

func GetMostFrequentMemory() (model.Parameters, int)

Types

type Pair

type Pair struct {
	P model.Parameters
	V int
}

type Pairlist

type Pairlist []Pair

func (Pairlist) Len

func (p Pairlist) Len() int

func (Pairlist) Less

func (p Pairlist) Less(i, j int) bool

func (Pairlist) Swap

func (p Pairlist) Swap(i, j int)

Jump to

Keyboard shortcuts

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