storage

package
v0.0.0-...-b9ee388 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gravedigger

type Gravedigger interface {
	// Bury stores the given functions
	Bury(functions []string) error
	// Dig returns the functions which were never invoked
	Dig() (functions []string, err error)
}

Gravedigger provides methods for inserting and fetching functions from a storage

type NoopGravedigger

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

func (*NoopGravedigger) Bury

func (g *NoopGravedigger) Bury(funcs []string) error

Bury buries the given funcs

func (*NoopGravedigger) Dig

func (g *NoopGravedigger) Dig() ([]string, error)

Dig returns all buried funcs

type Postgres

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

func NewPostgres

func NewPostgres(dsn string, table string) (*Postgres, error)

func (*Postgres) Bury

func (p *Postgres) Bury(funcs []string) error

func (*Postgres) Dig

func (p *Postgres) Dig() ([]string, error)

Jump to

Keyboard shortcuts

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