pg

package
v0.0.0-...-a196282 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Overview

Package pg abstracts the storage layer and provides a simple interface to work with.

Index

Constants

This section is empty.

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(dsn string) (*Store, error)

func (*Store) Events

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

func (*Store) Run

func (s *Store) Run() error

func (*Store) Search

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

func (*Store) Stats

func (s *Store) Stats(r model.StatsRange) (model.Stats, error)

Stats returns stats for the given time range.

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