counter

package
v0.0.0-...-80b2b3e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveCounterFor

func SaveCounterFor(kind string, repo OpRepo, cntRepo CounterRepo) error

func SaveCounters

func SaveCounters(repo OpRepo, cntRepo CounterRepo) error

Types

type Counter

type Counter struct {
}

func New

func New() Counter

type CounterRepo

type CounterRepo interface {
	Create(cntr models.OperationCounter) (id int64, err error)
}

type OpRepo

type OpRepo interface {
	Count(ids, kinds, inBlocks, accountIDs []string, maxOperationID int64) (count int64, err error)
	Last() (operation models.Operation, err error)
}

Jump to

Keyboard shortcuts

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