history

package
v0.0.85 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Historizer

type Historizer interface {
	SaveSuccessfulQuery(ctx context.Context, cypher, sql string, duration time.Duration) error
	SaveFailedQuery(ctx context.Context, cypher, sql string, err error) error
}

type NoopHistorizer added in v0.0.74

type NoopHistorizer struct{}

func (*NoopHistorizer) SaveFailedQuery added in v0.0.74

func (h *NoopHistorizer) SaveFailedQuery(ctx context.Context, cypher, sql string, err error) error

func (*NoopHistorizer) SaveSuccessfulQuery added in v0.0.74

func (h *NoopHistorizer) SaveSuccessfulQuery(ctx context.Context, cypher, sql string, duration time.Duration) error

type Status

type Status int
const (
	Success Status = iota
	Failure Status = iota
)

Jump to

Keyboard shortcuts

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