poets

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(db sql.Executor, ref types.PoetProofRef, poet, serviceID []byte, roundID string) error

Add adds a poet for a given ref.

func Get

func Get(db sql.Executor, ref types.PoetProofRef) (poet []byte, err error)

Get gets a PoET for a given ref.

func GetRef

func GetRef(db sql.Executor, poetID []byte, roundID string) (ref types.PoetProofRef, err error)

GetRef gets a PoET ref for a given service ID and round ID.

func Has

func Has(db sql.Executor, ref types.PoetProofRef) (bool, error)

Has checks if a PoET exists by the given ref.

Types

This section is empty.

Jump to

Keyboard shortcuts

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