data

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TxStatusPending   = "pending"
	TxStatusCompleted = "completed"
	TxStatusFailed    = "failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Airdrop added in v0.2.0

type Airdrop struct {
	ID        string    `db:"id"`
	Nullifier string    `db:"nullifier"`
	Address   string    `db:"address"`
	TxHash    *string   `db:"tx_hash"`
	Amount    string    `db:"amount"`
	Status    string    `db:"status"`
	CreatedAt time.Time `db:"created_at"`
	UpdatedAt time.Time `db:"updated_at"`
}

type AirdropsQ added in v0.2.0

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

func NewAirdropsQ added in v0.2.0

func NewAirdropsQ(db *pgdb.DB) *AirdropsQ

func (*AirdropsQ) Delete added in v0.2.0

func (q *AirdropsQ) Delete(id string) error

func (*AirdropsQ) FilterByNullifier added in v0.2.0

func (q *AirdropsQ) FilterByNullifier(nullifier string) *AirdropsQ

func (*AirdropsQ) FilterByStatus added in v0.2.0

func (q *AirdropsQ) FilterByStatus(status string) *AirdropsQ

func (*AirdropsQ) Get added in v0.2.0

func (q *AirdropsQ) Get() (*Airdrop, error)

func (*AirdropsQ) Insert added in v0.2.0

func (q *AirdropsQ) Insert(p Airdrop) (*Airdrop, error)

func (*AirdropsQ) Limit added in v0.2.0

func (q *AirdropsQ) Limit(limit uint64) *AirdropsQ

func (*AirdropsQ) New added in v0.2.0

func (q *AirdropsQ) New() *AirdropsQ

func (*AirdropsQ) Select added in v0.2.0

func (q *AirdropsQ) Select() ([]Airdrop, error)

func (*AirdropsQ) Transaction added in v0.2.0

func (q *AirdropsQ) Transaction(fn func() error) error

func (*AirdropsQ) Update added in v0.2.0

func (q *AirdropsQ) Update(id string, values map[string]any) error

Jump to

Keyboard shortcuts

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