rulenode

package
v0.0.0-...-54b0228 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the rulenode type in the database.
	Label = "rule_node"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldChainID holds the string denoting the chain_id field in the database.
	FieldChainID = "chain_id"
	// FieldNodeID holds the string denoting the node_id field in the database.
	FieldNodeID = "node_id"
	// FieldOption holds the string denoting the option field in the database.
	FieldOption = "option"
	// FieldInfinite holds the string denoting the infinite field in the database.
	FieldInfinite = "infinite"
	// FieldDebug holds the string denoting the debug field in the database.
	FieldDebug = "debug"
	// FieldEnd holds the string denoting the end field in the database.
	FieldEnd = "end"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeChain holds the string denoting the chain edge name in mutations.
	EdgeChain = "chain"
	// Table holds the table name of the rulenode in the database.
	Table = "rule_nodes"
	// ChainTable is the table that holds the chain relation/edge.
	ChainTable = "rule_nodes"
	// ChainInverseTable is the table name for the RuleChan entity.
	// It exists in this package in order to avoid circular dependency with the "rulechan" package.
	ChainInverseTable = "rule_chan"
	// ChainColumn is the table column denoting the chain relation/edge.
	ChainColumn = "chain_id"
)

Variables

View Source
var (
	// NodeIDValidator is a validator for the "node_id" field. It is called by the builders before save.
	NodeIDValidator func(string) error
	// DefaultOption holds the default value on creation for the "option" field.
	DefaultOption map[string]interface{}
	// DefaultInfinite holds the default value on creation for the "infinite" field.
	DefaultInfinite bool
	// DefaultDebug holds the default value on creation for the "debug" field.
	DefaultDebug bool
	// DefaultEnd holds the default value on creation for the "end" field.
	DefaultEnd bool
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for rulenode fields.

Functions

func And

func And(predicates ...predicate.RuleNode) predicate.RuleNode

And groups predicates with the AND operator between them.

func ChainID

func ChainID(v uint64) predicate.RuleNode

ChainID applies equality check predicate on the "chain_id" field. It's identical to ChainIDEQ.

func ChainIDEQ

func ChainIDEQ(v uint64) predicate.RuleNode

ChainIDEQ applies the EQ predicate on the "chain_id" field.

func ChainIDIn

func ChainIDIn(vs ...uint64) predicate.RuleNode

ChainIDIn applies the In predicate on the "chain_id" field.

func ChainIDIsNil

func ChainIDIsNil() predicate.RuleNode

ChainIDIsNil applies the IsNil predicate on the "chain_id" field.

func ChainIDNEQ

func ChainIDNEQ(v uint64) predicate.RuleNode

ChainIDNEQ applies the NEQ predicate on the "chain_id" field.

func ChainIDNotIn

func ChainIDNotIn(vs ...uint64) predicate.RuleNode

ChainIDNotIn applies the NotIn predicate on the "chain_id" field.

func ChainIDNotNil

func ChainIDNotNil() predicate.RuleNode

ChainIDNotNil applies the NotNil predicate on the "chain_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.RuleNode

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.RuleNode

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.RuleNode

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.RuleNode

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.RuleNode

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.RuleNode

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.RuleNode

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.RuleNode

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.RuleNode

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Debug

func Debug(v bool) predicate.RuleNode

Debug applies equality check predicate on the "debug" field. It's identical to DebugEQ.

func DebugEQ

func DebugEQ(v bool) predicate.RuleNode

DebugEQ applies the EQ predicate on the "debug" field.

func DebugNEQ

func DebugNEQ(v bool) predicate.RuleNode

DebugNEQ applies the NEQ predicate on the "debug" field.

func End

func End(v bool) predicate.RuleNode

End applies equality check predicate on the "end" field. It's identical to EndEQ.

func EndEQ

func EndEQ(v bool) predicate.RuleNode

EndEQ applies the EQ predicate on the "end" field.

func EndNEQ

func EndNEQ(v bool) predicate.RuleNode

EndNEQ applies the NEQ predicate on the "end" field.

func HasChain

func HasChain() predicate.RuleNode

HasChain applies the HasEdge predicate on the "chain" edge.

func HasChainWith

func HasChainWith(preds ...predicate.RuleChan) predicate.RuleNode

HasChainWith applies the HasEdge predicate on the "chain" edge with a given conditions (other predicates).

func ID

func ID(id uint64) predicate.RuleNode

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.RuleNode

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.RuleNode

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.RuleNode

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.RuleNode

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.RuleNode

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.RuleNode

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.RuleNode

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.RuleNode

IDNotIn applies the NotIn predicate on the ID field.

func Infinite

func Infinite(v bool) predicate.RuleNode

Infinite applies equality check predicate on the "infinite" field. It's identical to InfiniteEQ.

func InfiniteEQ

func InfiniteEQ(v bool) predicate.RuleNode

InfiniteEQ applies the EQ predicate on the "infinite" field.

func InfiniteNEQ

func InfiniteNEQ(v bool) predicate.RuleNode

InfiniteNEQ applies the NEQ predicate on the "infinite" field.

func NodeID

func NodeID(v string) predicate.RuleNode

NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.

func NodeIDContains

func NodeIDContains(v string) predicate.RuleNode

NodeIDContains applies the Contains predicate on the "node_id" field.

func NodeIDContainsFold

func NodeIDContainsFold(v string) predicate.RuleNode

NodeIDContainsFold applies the ContainsFold predicate on the "node_id" field.

func NodeIDEQ

func NodeIDEQ(v string) predicate.RuleNode

NodeIDEQ applies the EQ predicate on the "node_id" field.

func NodeIDEqualFold

func NodeIDEqualFold(v string) predicate.RuleNode

NodeIDEqualFold applies the EqualFold predicate on the "node_id" field.

func NodeIDGT

func NodeIDGT(v string) predicate.RuleNode

NodeIDGT applies the GT predicate on the "node_id" field.

func NodeIDGTE

func NodeIDGTE(v string) predicate.RuleNode

NodeIDGTE applies the GTE predicate on the "node_id" field.

func NodeIDHasPrefix

func NodeIDHasPrefix(v string) predicate.RuleNode

NodeIDHasPrefix applies the HasPrefix predicate on the "node_id" field.

func NodeIDHasSuffix

func NodeIDHasSuffix(v string) predicate.RuleNode

NodeIDHasSuffix applies the HasSuffix predicate on the "node_id" field.

func NodeIDIn

func NodeIDIn(vs ...string) predicate.RuleNode

NodeIDIn applies the In predicate on the "node_id" field.

func NodeIDLT

func NodeIDLT(v string) predicate.RuleNode

NodeIDLT applies the LT predicate on the "node_id" field.

func NodeIDLTE

func NodeIDLTE(v string) predicate.RuleNode

NodeIDLTE applies the LTE predicate on the "node_id" field.

func NodeIDNEQ

func NodeIDNEQ(v string) predicate.RuleNode

NodeIDNEQ applies the NEQ predicate on the "node_id" field.

func NodeIDNotIn

func NodeIDNotIn(vs ...string) predicate.RuleNode

NodeIDNotIn applies the NotIn predicate on the "node_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.RuleNode) predicate.RuleNode

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.RuleNode

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.RuleNode

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.RuleNode

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.RuleNode

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.RuleNode

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.RuleNode

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.RuleNode

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.RuleNode

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.RuleNode

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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