miner

package
v0.0.0-...-faca2c5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the miner type in the database.
	Label = "miner"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldStateRoot holds the string denoting the state_root field in the database.
	FieldStateRoot = "state_root"
	// FieldMinerID holds the string denoting the miner_id field in the database.
	FieldMinerID = "miner_id"
	// FieldOwnerAddr holds the string denoting the owner_addr field in the database.
	FieldOwnerAddr = "owner_addr"
	// FieldWorkerAddr holds the string denoting the worker_addr field in the database.
	FieldWorkerAddr = "worker_addr"
	// FieldPeerID holds the string denoting the peer_id field in the database.
	FieldPeerID = "peer_id"
	// FieldSectorSize holds the string denoting the sector_size field in the database.
	FieldSectorSize = "sector_size"

	// Table holds the table name of the miner in the database.
	Table = "miners"
)

Variables

View Source
var (
	// MinerIDValidator is a validator for the "miner_id" field. It is called by the builders before save.
	MinerIDValidator func(string) error
	// OwnerAddrValidator is a validator for the "owner_addr" field. It is called by the builders before save.
	OwnerAddrValidator func(string) error
	// WorkerAddrValidator is a validator for the "worker_addr" field. It is called by the builders before save.
	WorkerAddrValidator func(string) error
	// SectorSizeValidator is a validator for the "sector_size" field. It is called by the builders before save.
	SectorSizeValidator func(string) error
)

Columns holds all SQL columns for miner fields.

Functions

func And

func And(predicates ...predicate.Miner) predicate.Miner

And groups list of predicates with the AND operator between them.

func ID

func ID(id int) predicate.Miner

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Miner

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Miner

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Miner

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Miner

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Miner

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Miner

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Miner

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Miner

IDNotIn applies the NotIn predicate on the ID field.

func MinerID

func MinerID(v string) predicate.Miner

MinerID applies equality check predicate on the "miner_id" field. It's identical to MinerIDEQ.

func MinerIDContains

func MinerIDContains(v string) predicate.Miner

MinerIDContains applies the Contains predicate on the "miner_id" field.

func MinerIDContainsFold

func MinerIDContainsFold(v string) predicate.Miner

MinerIDContainsFold applies the ContainsFold predicate on the "miner_id" field.

func MinerIDEQ

func MinerIDEQ(v string) predicate.Miner

MinerIDEQ applies the EQ predicate on the "miner_id" field.

func MinerIDEqualFold

func MinerIDEqualFold(v string) predicate.Miner

MinerIDEqualFold applies the EqualFold predicate on the "miner_id" field.

func MinerIDGT

func MinerIDGT(v string) predicate.Miner

MinerIDGT applies the GT predicate on the "miner_id" field.

func MinerIDGTE

func MinerIDGTE(v string) predicate.Miner

MinerIDGTE applies the GTE predicate on the "miner_id" field.

func MinerIDHasPrefix

func MinerIDHasPrefix(v string) predicate.Miner

MinerIDHasPrefix applies the HasPrefix predicate on the "miner_id" field.

func MinerIDHasSuffix

func MinerIDHasSuffix(v string) predicate.Miner

MinerIDHasSuffix applies the HasSuffix predicate on the "miner_id" field.

func MinerIDIn

func MinerIDIn(vs ...string) predicate.Miner

MinerIDIn applies the In predicate on the "miner_id" field.

func MinerIDLT

func MinerIDLT(v string) predicate.Miner

MinerIDLT applies the LT predicate on the "miner_id" field.

func MinerIDLTE

func MinerIDLTE(v string) predicate.Miner

MinerIDLTE applies the LTE predicate on the "miner_id" field.

func MinerIDNEQ

func MinerIDNEQ(v string) predicate.Miner

MinerIDNEQ applies the NEQ predicate on the "miner_id" field.

func MinerIDNotIn

func MinerIDNotIn(vs ...string) predicate.Miner

MinerIDNotIn applies the NotIn predicate on the "miner_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Miner) predicate.Miner

Or groups list of predicates with the OR operator between them.

func OwnerAddr

func OwnerAddr(v string) predicate.Miner

OwnerAddr applies equality check predicate on the "owner_addr" field. It's identical to OwnerAddrEQ.

func OwnerAddrContains

func OwnerAddrContains(v string) predicate.Miner

OwnerAddrContains applies the Contains predicate on the "owner_addr" field.

func OwnerAddrContainsFold

func OwnerAddrContainsFold(v string) predicate.Miner

OwnerAddrContainsFold applies the ContainsFold predicate on the "owner_addr" field.

func OwnerAddrEQ

func OwnerAddrEQ(v string) predicate.Miner

OwnerAddrEQ applies the EQ predicate on the "owner_addr" field.

func OwnerAddrEqualFold

func OwnerAddrEqualFold(v string) predicate.Miner

OwnerAddrEqualFold applies the EqualFold predicate on the "owner_addr" field.

func OwnerAddrGT

func OwnerAddrGT(v string) predicate.Miner

OwnerAddrGT applies the GT predicate on the "owner_addr" field.

func OwnerAddrGTE

func OwnerAddrGTE(v string) predicate.Miner

OwnerAddrGTE applies the GTE predicate on the "owner_addr" field.

func OwnerAddrHasPrefix

func OwnerAddrHasPrefix(v string) predicate.Miner

OwnerAddrHasPrefix applies the HasPrefix predicate on the "owner_addr" field.

func OwnerAddrHasSuffix

func OwnerAddrHasSuffix(v string) predicate.Miner

OwnerAddrHasSuffix applies the HasSuffix predicate on the "owner_addr" field.

func OwnerAddrIn

func OwnerAddrIn(vs ...string) predicate.Miner

OwnerAddrIn applies the In predicate on the "owner_addr" field.

func OwnerAddrLT

func OwnerAddrLT(v string) predicate.Miner

OwnerAddrLT applies the LT predicate on the "owner_addr" field.

func OwnerAddrLTE

func OwnerAddrLTE(v string) predicate.Miner

OwnerAddrLTE applies the LTE predicate on the "owner_addr" field.

func OwnerAddrNEQ

func OwnerAddrNEQ(v string) predicate.Miner

OwnerAddrNEQ applies the NEQ predicate on the "owner_addr" field.

func OwnerAddrNotIn

func OwnerAddrNotIn(vs ...string) predicate.Miner

OwnerAddrNotIn applies the NotIn predicate on the "owner_addr" field.

func PeerID

func PeerID(v string) predicate.Miner

PeerID applies equality check predicate on the "peer_id" field. It's identical to PeerIDEQ.

func PeerIDContains

func PeerIDContains(v string) predicate.Miner

PeerIDContains applies the Contains predicate on the "peer_id" field.

func PeerIDContainsFold

func PeerIDContainsFold(v string) predicate.Miner

PeerIDContainsFold applies the ContainsFold predicate on the "peer_id" field.

func PeerIDEQ

func PeerIDEQ(v string) predicate.Miner

PeerIDEQ applies the EQ predicate on the "peer_id" field.

func PeerIDEqualFold

func PeerIDEqualFold(v string) predicate.Miner

PeerIDEqualFold applies the EqualFold predicate on the "peer_id" field.

func PeerIDGT

func PeerIDGT(v string) predicate.Miner

PeerIDGT applies the GT predicate on the "peer_id" field.

func PeerIDGTE

func PeerIDGTE(v string) predicate.Miner

PeerIDGTE applies the GTE predicate on the "peer_id" field.

func PeerIDHasPrefix

func PeerIDHasPrefix(v string) predicate.Miner

PeerIDHasPrefix applies the HasPrefix predicate on the "peer_id" field.

func PeerIDHasSuffix

func PeerIDHasSuffix(v string) predicate.Miner

PeerIDHasSuffix applies the HasSuffix predicate on the "peer_id" field.

func PeerIDIn

func PeerIDIn(vs ...string) predicate.Miner

PeerIDIn applies the In predicate on the "peer_id" field.

func PeerIDLT

func PeerIDLT(v string) predicate.Miner

PeerIDLT applies the LT predicate on the "peer_id" field.

func PeerIDLTE

func PeerIDLTE(v string) predicate.Miner

PeerIDLTE applies the LTE predicate on the "peer_id" field.

func PeerIDNEQ

func PeerIDNEQ(v string) predicate.Miner

PeerIDNEQ applies the NEQ predicate on the "peer_id" field.

func PeerIDNotIn

func PeerIDNotIn(vs ...string) predicate.Miner

PeerIDNotIn applies the NotIn predicate on the "peer_id" field.

func SectorSize

func SectorSize(v string) predicate.Miner

SectorSize applies equality check predicate on the "sector_size" field. It's identical to SectorSizeEQ.

func SectorSizeContains

func SectorSizeContains(v string) predicate.Miner

SectorSizeContains applies the Contains predicate on the "sector_size" field.

func SectorSizeContainsFold

func SectorSizeContainsFold(v string) predicate.Miner

SectorSizeContainsFold applies the ContainsFold predicate on the "sector_size" field.

func SectorSizeEQ

func SectorSizeEQ(v string) predicate.Miner

SectorSizeEQ applies the EQ predicate on the "sector_size" field.

func SectorSizeEqualFold

func SectorSizeEqualFold(v string) predicate.Miner

SectorSizeEqualFold applies the EqualFold predicate on the "sector_size" field.

func SectorSizeGT

func SectorSizeGT(v string) predicate.Miner

SectorSizeGT applies the GT predicate on the "sector_size" field.

func SectorSizeGTE

func SectorSizeGTE(v string) predicate.Miner

SectorSizeGTE applies the GTE predicate on the "sector_size" field.

func SectorSizeHasPrefix

func SectorSizeHasPrefix(v string) predicate.Miner

SectorSizeHasPrefix applies the HasPrefix predicate on the "sector_size" field.

func SectorSizeHasSuffix

func SectorSizeHasSuffix(v string) predicate.Miner

SectorSizeHasSuffix applies the HasSuffix predicate on the "sector_size" field.

func SectorSizeIn

func SectorSizeIn(vs ...string) predicate.Miner

SectorSizeIn applies the In predicate on the "sector_size" field.

func SectorSizeLT

func SectorSizeLT(v string) predicate.Miner

SectorSizeLT applies the LT predicate on the "sector_size" field.

func SectorSizeLTE

func SectorSizeLTE(v string) predicate.Miner

SectorSizeLTE applies the LTE predicate on the "sector_size" field.

func SectorSizeNEQ

func SectorSizeNEQ(v string) predicate.Miner

SectorSizeNEQ applies the NEQ predicate on the "sector_size" field.

func SectorSizeNotIn

func SectorSizeNotIn(vs ...string) predicate.Miner

SectorSizeNotIn applies the NotIn predicate on the "sector_size" field.

func StateRoot

func StateRoot(v string) predicate.Miner

StateRoot applies equality check predicate on the "state_root" field. It's identical to StateRootEQ.

func StateRootContains

func StateRootContains(v string) predicate.Miner

StateRootContains applies the Contains predicate on the "state_root" field.

func StateRootContainsFold

func StateRootContainsFold(v string) predicate.Miner

StateRootContainsFold applies the ContainsFold predicate on the "state_root" field.

func StateRootEQ

func StateRootEQ(v string) predicate.Miner

StateRootEQ applies the EQ predicate on the "state_root" field.

func StateRootEqualFold

func StateRootEqualFold(v string) predicate.Miner

StateRootEqualFold applies the EqualFold predicate on the "state_root" field.

func StateRootGT

func StateRootGT(v string) predicate.Miner

StateRootGT applies the GT predicate on the "state_root" field.

func StateRootGTE

func StateRootGTE(v string) predicate.Miner

StateRootGTE applies the GTE predicate on the "state_root" field.

func StateRootHasPrefix

func StateRootHasPrefix(v string) predicate.Miner

StateRootHasPrefix applies the HasPrefix predicate on the "state_root" field.

func StateRootHasSuffix

func StateRootHasSuffix(v string) predicate.Miner

StateRootHasSuffix applies the HasSuffix predicate on the "state_root" field.

func StateRootIn

func StateRootIn(vs ...string) predicate.Miner

StateRootIn applies the In predicate on the "state_root" field.

func StateRootLT

func StateRootLT(v string) predicate.Miner

StateRootLT applies the LT predicate on the "state_root" field.

func StateRootLTE

func StateRootLTE(v string) predicate.Miner

StateRootLTE applies the LTE predicate on the "state_root" field.

func StateRootNEQ

func StateRootNEQ(v string) predicate.Miner

StateRootNEQ applies the NEQ predicate on the "state_root" field.

func StateRootNotIn

func StateRootNotIn(vs ...string) predicate.Miner

StateRootNotIn applies the NotIn predicate on the "state_root" field.

func WorkerAddr

func WorkerAddr(v string) predicate.Miner

WorkerAddr applies equality check predicate on the "worker_addr" field. It's identical to WorkerAddrEQ.

func WorkerAddrContains

func WorkerAddrContains(v string) predicate.Miner

WorkerAddrContains applies the Contains predicate on the "worker_addr" field.

func WorkerAddrContainsFold

func WorkerAddrContainsFold(v string) predicate.Miner

WorkerAddrContainsFold applies the ContainsFold predicate on the "worker_addr" field.

func WorkerAddrEQ

func WorkerAddrEQ(v string) predicate.Miner

WorkerAddrEQ applies the EQ predicate on the "worker_addr" field.

func WorkerAddrEqualFold

func WorkerAddrEqualFold(v string) predicate.Miner

WorkerAddrEqualFold applies the EqualFold predicate on the "worker_addr" field.

func WorkerAddrGT

func WorkerAddrGT(v string) predicate.Miner

WorkerAddrGT applies the GT predicate on the "worker_addr" field.

func WorkerAddrGTE

func WorkerAddrGTE(v string) predicate.Miner

WorkerAddrGTE applies the GTE predicate on the "worker_addr" field.

func WorkerAddrHasPrefix

func WorkerAddrHasPrefix(v string) predicate.Miner

WorkerAddrHasPrefix applies the HasPrefix predicate on the "worker_addr" field.

func WorkerAddrHasSuffix

func WorkerAddrHasSuffix(v string) predicate.Miner

WorkerAddrHasSuffix applies the HasSuffix predicate on the "worker_addr" field.

func WorkerAddrIn

func WorkerAddrIn(vs ...string) predicate.Miner

WorkerAddrIn applies the In predicate on the "worker_addr" field.

func WorkerAddrLT

func WorkerAddrLT(v string) predicate.Miner

WorkerAddrLT applies the LT predicate on the "worker_addr" field.

func WorkerAddrLTE

func WorkerAddrLTE(v string) predicate.Miner

WorkerAddrLTE applies the LTE predicate on the "worker_addr" field.

func WorkerAddrNEQ

func WorkerAddrNEQ(v string) predicate.Miner

WorkerAddrNEQ applies the NEQ predicate on the "worker_addr" field.

func WorkerAddrNotIn

func WorkerAddrNotIn(vs ...string) predicate.Miner

WorkerAddrNotIn applies the NotIn predicate on the "worker_addr" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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