Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Miner) predicate.Miner
- func ID(id int) predicate.Miner
- func IDEQ(id int) predicate.Miner
- func IDGT(id int) predicate.Miner
- func IDGTE(id int) predicate.Miner
- func IDIn(ids ...int) predicate.Miner
- func IDLT(id int) predicate.Miner
- func IDLTE(id int) predicate.Miner
- func IDNEQ(id int) predicate.Miner
- func IDNotIn(ids ...int) predicate.Miner
- func MinerID(v string) predicate.Miner
- func MinerIDContains(v string) predicate.Miner
- func MinerIDContainsFold(v string) predicate.Miner
- func MinerIDEQ(v string) predicate.Miner
- func MinerIDEqualFold(v string) predicate.Miner
- func MinerIDGT(v string) predicate.Miner
- func MinerIDGTE(v string) predicate.Miner
- func MinerIDHasPrefix(v string) predicate.Miner
- func MinerIDHasSuffix(v string) predicate.Miner
- func MinerIDIn(vs ...string) predicate.Miner
- func MinerIDLT(v string) predicate.Miner
- func MinerIDLTE(v string) predicate.Miner
- func MinerIDNEQ(v string) predicate.Miner
- func MinerIDNotIn(vs ...string) predicate.Miner
- func Not(p predicate.Miner) predicate.Miner
- func Or(predicates ...predicate.Miner) predicate.Miner
- func OwnerAddr(v string) predicate.Miner
- func OwnerAddrContains(v string) predicate.Miner
- func OwnerAddrContainsFold(v string) predicate.Miner
- func OwnerAddrEQ(v string) predicate.Miner
- func OwnerAddrEqualFold(v string) predicate.Miner
- func OwnerAddrGT(v string) predicate.Miner
- func OwnerAddrGTE(v string) predicate.Miner
- func OwnerAddrHasPrefix(v string) predicate.Miner
- func OwnerAddrHasSuffix(v string) predicate.Miner
- func OwnerAddrIn(vs ...string) predicate.Miner
- func OwnerAddrLT(v string) predicate.Miner
- func OwnerAddrLTE(v string) predicate.Miner
- func OwnerAddrNEQ(v string) predicate.Miner
- func OwnerAddrNotIn(vs ...string) predicate.Miner
- func PeerID(v string) predicate.Miner
- func PeerIDContains(v string) predicate.Miner
- func PeerIDContainsFold(v string) predicate.Miner
- func PeerIDEQ(v string) predicate.Miner
- func PeerIDEqualFold(v string) predicate.Miner
- func PeerIDGT(v string) predicate.Miner
- func PeerIDGTE(v string) predicate.Miner
- func PeerIDHasPrefix(v string) predicate.Miner
- func PeerIDHasSuffix(v string) predicate.Miner
- func PeerIDIn(vs ...string) predicate.Miner
- func PeerIDLT(v string) predicate.Miner
- func PeerIDLTE(v string) predicate.Miner
- func PeerIDNEQ(v string) predicate.Miner
- func PeerIDNotIn(vs ...string) predicate.Miner
- func SectorSize(v string) predicate.Miner
- func SectorSizeContains(v string) predicate.Miner
- func SectorSizeContainsFold(v string) predicate.Miner
- func SectorSizeEQ(v string) predicate.Miner
- func SectorSizeEqualFold(v string) predicate.Miner
- func SectorSizeGT(v string) predicate.Miner
- func SectorSizeGTE(v string) predicate.Miner
- func SectorSizeHasPrefix(v string) predicate.Miner
- func SectorSizeHasSuffix(v string) predicate.Miner
- func SectorSizeIn(vs ...string) predicate.Miner
- func SectorSizeLT(v string) predicate.Miner
- func SectorSizeLTE(v string) predicate.Miner
- func SectorSizeNEQ(v string) predicate.Miner
- func SectorSizeNotIn(vs ...string) predicate.Miner
- func StateRoot(v string) predicate.Miner
- func StateRootContains(v string) predicate.Miner
- func StateRootContainsFold(v string) predicate.Miner
- func StateRootEQ(v string) predicate.Miner
- func StateRootEqualFold(v string) predicate.Miner
- func StateRootGT(v string) predicate.Miner
- func StateRootGTE(v string) predicate.Miner
- func StateRootHasPrefix(v string) predicate.Miner
- func StateRootHasSuffix(v string) predicate.Miner
- func StateRootIn(vs ...string) predicate.Miner
- func StateRootLT(v string) predicate.Miner
- func StateRootLTE(v string) predicate.Miner
- func StateRootNEQ(v string) predicate.Miner
- func StateRootNotIn(vs ...string) predicate.Miner
- func WorkerAddr(v string) predicate.Miner
- func WorkerAddrContains(v string) predicate.Miner
- func WorkerAddrContainsFold(v string) predicate.Miner
- func WorkerAddrEQ(v string) predicate.Miner
- func WorkerAddrEqualFold(v string) predicate.Miner
- func WorkerAddrGT(v string) predicate.Miner
- func WorkerAddrGTE(v string) predicate.Miner
- func WorkerAddrHasPrefix(v string) predicate.Miner
- func WorkerAddrHasSuffix(v string) predicate.Miner
- func WorkerAddrIn(vs ...string) predicate.Miner
- func WorkerAddrLT(v string) predicate.Miner
- func WorkerAddrLTE(v string) predicate.Miner
- func WorkerAddrNEQ(v string) predicate.Miner
- func WorkerAddrNotIn(vs ...string) predicate.Miner
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldStateRoot, FieldMinerID, FieldOwnerAddr, FieldWorkerAddr, FieldPeerID, FieldSectorSize, }
Columns holds all SQL columns for miner fields.
Functions ¶
func MinerID ¶
MinerID applies equality check predicate on the "miner_id" field. It's identical to MinerIDEQ.
func MinerIDContains ¶
MinerIDContains applies the Contains predicate on the "miner_id" field.
func MinerIDContainsFold ¶
MinerIDContainsFold applies the ContainsFold predicate on the "miner_id" field.
func MinerIDEqualFold ¶
MinerIDEqualFold applies the EqualFold predicate on the "miner_id" field.
func MinerIDGTE ¶
MinerIDGTE applies the GTE predicate on the "miner_id" field.
func MinerIDHasPrefix ¶
MinerIDHasPrefix applies the HasPrefix predicate on the "miner_id" field.
func MinerIDHasSuffix ¶
MinerIDHasSuffix applies the HasSuffix predicate on the "miner_id" field.
func MinerIDLTE ¶
MinerIDLTE applies the LTE predicate on the "miner_id" field.
func MinerIDNEQ ¶
MinerIDNEQ applies the NEQ predicate on the "miner_id" field.
func MinerIDNotIn ¶
MinerIDNotIn applies the NotIn predicate on the "miner_id" field.
func OwnerAddr ¶
OwnerAddr applies equality check predicate on the "owner_addr" field. It's identical to OwnerAddrEQ.
func OwnerAddrContains ¶
OwnerAddrContains applies the Contains predicate on the "owner_addr" field.
func OwnerAddrContainsFold ¶
OwnerAddrContainsFold applies the ContainsFold predicate on the "owner_addr" field.
func OwnerAddrEQ ¶
OwnerAddrEQ applies the EQ predicate on the "owner_addr" field.
func OwnerAddrEqualFold ¶
OwnerAddrEqualFold applies the EqualFold predicate on the "owner_addr" field.
func OwnerAddrGT ¶
OwnerAddrGT applies the GT predicate on the "owner_addr" field.
func OwnerAddrGTE ¶
OwnerAddrGTE applies the GTE predicate on the "owner_addr" field.
func OwnerAddrHasPrefix ¶
OwnerAddrHasPrefix applies the HasPrefix predicate on the "owner_addr" field.
func OwnerAddrHasSuffix ¶
OwnerAddrHasSuffix applies the HasSuffix predicate on the "owner_addr" field.
func OwnerAddrIn ¶
OwnerAddrIn applies the In predicate on the "owner_addr" field.
func OwnerAddrLT ¶
OwnerAddrLT applies the LT predicate on the "owner_addr" field.
func OwnerAddrLTE ¶
OwnerAddrLTE applies the LTE predicate on the "owner_addr" field.
func OwnerAddrNEQ ¶
OwnerAddrNEQ applies the NEQ predicate on the "owner_addr" field.
func OwnerAddrNotIn ¶
OwnerAddrNotIn applies the NotIn predicate on the "owner_addr" field.
func PeerID ¶
PeerID applies equality check predicate on the "peer_id" field. It's identical to PeerIDEQ.
func PeerIDContains ¶
PeerIDContains applies the Contains predicate on the "peer_id" field.
func PeerIDContainsFold ¶
PeerIDContainsFold applies the ContainsFold predicate on the "peer_id" field.
func PeerIDEqualFold ¶
PeerIDEqualFold applies the EqualFold predicate on the "peer_id" field.
func PeerIDHasPrefix ¶
PeerIDHasPrefix applies the HasPrefix predicate on the "peer_id" field.
func PeerIDHasSuffix ¶
PeerIDHasSuffix applies the HasSuffix predicate on the "peer_id" field.
func PeerIDNotIn ¶
PeerIDNotIn applies the NotIn predicate on the "peer_id" field.
func SectorSize ¶
SectorSize applies equality check predicate on the "sector_size" field. It's identical to SectorSizeEQ.
func SectorSizeContains ¶
SectorSizeContains applies the Contains predicate on the "sector_size" field.
func SectorSizeContainsFold ¶
SectorSizeContainsFold applies the ContainsFold predicate on the "sector_size" field.
func SectorSizeEQ ¶
SectorSizeEQ applies the EQ predicate on the "sector_size" field.
func SectorSizeEqualFold ¶
SectorSizeEqualFold applies the EqualFold predicate on the "sector_size" field.
func SectorSizeGT ¶
SectorSizeGT applies the GT predicate on the "sector_size" field.
func SectorSizeGTE ¶
SectorSizeGTE applies the GTE predicate on the "sector_size" field.
func SectorSizeHasPrefix ¶
SectorSizeHasPrefix applies the HasPrefix predicate on the "sector_size" field.
func SectorSizeHasSuffix ¶
SectorSizeHasSuffix applies the HasSuffix predicate on the "sector_size" field.
func SectorSizeIn ¶
SectorSizeIn applies the In predicate on the "sector_size" field.
func SectorSizeLT ¶
SectorSizeLT applies the LT predicate on the "sector_size" field.
func SectorSizeLTE ¶
SectorSizeLTE applies the LTE predicate on the "sector_size" field.
func SectorSizeNEQ ¶
SectorSizeNEQ applies the NEQ predicate on the "sector_size" field.
func SectorSizeNotIn ¶
SectorSizeNotIn applies the NotIn predicate on the "sector_size" field.
func StateRoot ¶
StateRoot applies equality check predicate on the "state_root" field. It's identical to StateRootEQ.
func StateRootContains ¶
StateRootContains applies the Contains predicate on the "state_root" field.
func StateRootContainsFold ¶
StateRootContainsFold applies the ContainsFold predicate on the "state_root" field.
func StateRootEQ ¶
StateRootEQ applies the EQ predicate on the "state_root" field.
func StateRootEqualFold ¶
StateRootEqualFold applies the EqualFold predicate on the "state_root" field.
func StateRootGT ¶
StateRootGT applies the GT predicate on the "state_root" field.
func StateRootGTE ¶
StateRootGTE applies the GTE predicate on the "state_root" field.
func StateRootHasPrefix ¶
StateRootHasPrefix applies the HasPrefix predicate on the "state_root" field.
func StateRootHasSuffix ¶
StateRootHasSuffix applies the HasSuffix predicate on the "state_root" field.
func StateRootIn ¶
StateRootIn applies the In predicate on the "state_root" field.
func StateRootLT ¶
StateRootLT applies the LT predicate on the "state_root" field.
func StateRootLTE ¶
StateRootLTE applies the LTE predicate on the "state_root" field.
func StateRootNEQ ¶
StateRootNEQ applies the NEQ predicate on the "state_root" field.
func StateRootNotIn ¶
StateRootNotIn applies the NotIn predicate on the "state_root" field.
func WorkerAddr ¶
WorkerAddr applies equality check predicate on the "worker_addr" field. It's identical to WorkerAddrEQ.
func WorkerAddrContains ¶
WorkerAddrContains applies the Contains predicate on the "worker_addr" field.
func WorkerAddrContainsFold ¶
WorkerAddrContainsFold applies the ContainsFold predicate on the "worker_addr" field.
func WorkerAddrEQ ¶
WorkerAddrEQ applies the EQ predicate on the "worker_addr" field.
func WorkerAddrEqualFold ¶
WorkerAddrEqualFold applies the EqualFold predicate on the "worker_addr" field.
func WorkerAddrGT ¶
WorkerAddrGT applies the GT predicate on the "worker_addr" field.
func WorkerAddrGTE ¶
WorkerAddrGTE applies the GTE predicate on the "worker_addr" field.
func WorkerAddrHasPrefix ¶
WorkerAddrHasPrefix applies the HasPrefix predicate on the "worker_addr" field.
func WorkerAddrHasSuffix ¶
WorkerAddrHasSuffix applies the HasSuffix predicate on the "worker_addr" field.
func WorkerAddrIn ¶
WorkerAddrIn applies the In predicate on the "worker_addr" field.
func WorkerAddrLT ¶
WorkerAddrLT applies the LT predicate on the "worker_addr" field.
func WorkerAddrLTE ¶
WorkerAddrLTE applies the LTE predicate on the "worker_addr" field.
func WorkerAddrNEQ ¶
WorkerAddrNEQ applies the NEQ predicate on the "worker_addr" field.
func WorkerAddrNotIn ¶
WorkerAddrNotIn applies the NotIn predicate on the "worker_addr" field.
Types ¶
This section is empty.