db

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBClient

type DBClient struct {
	Pool *pgxpool.Pool
}

func NewDBClient

func NewDBClient(ctx context.Context, connString string) (*DBClient, error)

func (*DBClient) Close

func (c *DBClient) Close()

func (*DBClient) InsertResult

func (c *DBClient) InsertResult(
	ctx context.Context,
	name string,
	nonce string,
	sha256 string,
	quality float64,
) error

type Result

type Result struct {
	Name    string
	Nonce   int
	Sha256  string
	Quality float64
}

Jump to

Keyboard shortcuts

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