data

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claim added in v0.3.4

type Claim struct {
	ID           uuid.UUID `db:"id" structs:"id"`
	UserDID      string    `db:"user_did" structs:"user_did"`
	IssuerDID    string    `db:"issuer_did" structs:"issuer_did"`
	DocumentHash string    `db:"document_hash" structs:"document_hash"`
	CreatedAt    time.Time `db:"created_at" structs:"-"`
}

type ClaimQ added in v0.3.4

type ClaimQ interface {
	New() ClaimQ
	Insert(value Claim) error
	FilterBy(column string, value any) ClaimQ
	Get() (*Claim, error)
	Select() ([]Claim, error)
	DeleteByID(id uuid.UUID) error
	ForUpdate() ClaimQ
	ResetFilter() ClaimQ
}

type MasterQ added in v0.3.4

type MasterQ interface {
	New() MasterQ

	Claim() ClaimQ

	Transaction(fn func(db MasterQ) error) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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