mock

package
v0.0.0-...-251e415 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mock abstracts the storage layer and provides a simple mock storage.

Index

Constants

View Source
const (
	Parallelism = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New() *Store

func (*Store) AggregateStats

func (s *Store) AggregateStats(time.Time) error

func (*Store) Events

func (s *Store) Events() <-chan model.Event

func (*Store) LatestDailyStats

func (s *Store) LatestDailyStats() (model.Stats, error)

func (*Store) Run

func (s *Store) Run() error

func (*Store) Search

func (s *Store) Search(filter string) ([]model.Event, error)

func (*Store) Stats

func (*Store) Stop

func (s *Store) Stop() error

func (*Store) TxInfo

func (s *Store) TxInfo(id string) (model.TxInfo, error)

Jump to

Keyboard shortcuts

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