postgresstore

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func NewDriver

func NewDriver(db *sql.DB) *Driver

func (*Driver) AddConfig

func (d *Driver) AddConfig(ctx context.Context, rc structures.RunConfig) (err error)

func (*Driver) GetConfigs

func (d *Driver) GetConfigs(ctx context.Context, runID uuid.UUID) (rcs []structures.RunConfig, err error)

func (*Driver) GetLatest

func (d *Driver) GetLatest(ctx context.Context, kind, network, chainID, version string) (lRec structures.LatestRecord, err error)

func (*Driver) MarkRunning

func (d *Driver) MarkRunning(ctx context.Context, runID, configID uuid.UUID) error

func (*Driver) SetLatest

func (d *Driver) SetLatest(ctx context.Context, kind, network, chainID, version string, lRec structures.LatestRecord) (err error)

Jump to

Keyboard shortcuts

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