Documentation ¶ Index ¶ type DBClient func NewDBClient(ctx context.Context, connString string) (*DBClient, error) func (c *DBClient) Close() func (c *DBClient) InsertResult(ctx context.Context, name string, nonce string, sha256 string, quality float64) error type Result 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 } Source Files ¶ View all Source files db.go Click to show internal directories. Click to hide internal directories.