rulechan

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the rulechan type in the database.
	Label = "rule_chan"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldRootNode holds the string denoting the root_node field in the database.
	FieldRootNode = "root_node"
	// FieldInfinite holds the string denoting the infinite field in the database.
	FieldInfinite = "infinite"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// 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"
	// EdgeRules holds the string denoting the rules edge name in mutations.
	EdgeRules = "rules"
	// EdgeSessions holds the string denoting the sessions edge name in mutations.
	EdgeSessions = "sessions"
	// Table holds the table name of the rulechan in the database.
	Table = "rule_chan"
	// RulesTable is the table that holds the rules relation/edge.
	RulesTable = "rule_nodes"
	// RulesInverseTable is the table name for the RuleNode entity.
	// It exists in this package in order to avoid circular dependency with the "rulenode" package.
	RulesInverseTable = "rule_nodes"
	// RulesColumn is the table column denoting the rules relation/edge.
	RulesColumn = "chain_id"
	// SessionsTable is the table that holds the sessions relation/edge.
	SessionsTable = "sessions"
	// SessionsInverseTable is the table name for the Session entity.
	// It exists in this package in order to avoid circular dependency with the "session" package.
	SessionsInverseTable = "sessions"
	// SessionsColumn is the table column denoting the sessions relation/edge.
	SessionsColumn = "chain_id"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// RootNodeValidator is a validator for the "root_node" field. It is called by the builders before save.
	RootNodeValidator func(string) error
	// DefaultInfinite holds the default value on creation for the "infinite" field.
	DefaultInfinite 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 rulechan fields.

Functions

func And

func And(predicates ...predicate.RuleChan) predicate.RuleChan

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.RuleChan

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.RuleChan

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.RuleChan

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.RuleChan

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.RuleChan

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.RuleChan

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.RuleChan

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.RuleChan

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.RuleChan

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.RuleChan

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.RuleChan

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.RuleChan

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.RuleChan

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.RuleChan

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.RuleChan

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.RuleChan

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.RuleChan

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.RuleChan

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.RuleChan

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.RuleChan

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.RuleChan

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasRules

func HasRules() predicate.RuleChan

HasRules applies the HasEdge predicate on the "rules" edge.

func HasRulesWith

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

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

func HasSessions

func HasSessions() predicate.RuleChan

HasSessions applies the HasEdge predicate on the "sessions" edge.

func HasSessionsWith

func HasSessionsWith(preds ...predicate.Session) predicate.RuleChan

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

func ID

func ID(id uint64) predicate.RuleChan

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.RuleChan

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.RuleChan

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.RuleChan

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.RuleChan

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.RuleChan

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.RuleChan

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Infinite

func Infinite(v bool) predicate.RuleChan

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

func InfiniteEQ

func InfiniteEQ(v bool) predicate.RuleChan

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

func InfiniteNEQ

func InfiniteNEQ(v bool) predicate.RuleChan

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

func Name

func Name(v string) predicate.RuleChan

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.RuleChan

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.RuleChan

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.RuleChan

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.RuleChan

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.RuleChan

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.RuleChan

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.RuleChan

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.RuleChan

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.RuleChan

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.RuleChan

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.RuleChan

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.RuleChan

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.RuleChan

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.RuleChan) predicate.RuleChan

Or groups predicates with the OR operator between them.

func RootNode

func RootNode(v string) predicate.RuleChan

RootNode applies equality check predicate on the "root_node" field. It's identical to RootNodeEQ.

func RootNodeContains

func RootNodeContains(v string) predicate.RuleChan

RootNodeContains applies the Contains predicate on the "root_node" field.

func RootNodeContainsFold

func RootNodeContainsFold(v string) predicate.RuleChan

RootNodeContainsFold applies the ContainsFold predicate on the "root_node" field.

func RootNodeEQ

func RootNodeEQ(v string) predicate.RuleChan

RootNodeEQ applies the EQ predicate on the "root_node" field.

func RootNodeEqualFold

func RootNodeEqualFold(v string) predicate.RuleChan

RootNodeEqualFold applies the EqualFold predicate on the "root_node" field.

func RootNodeGT

func RootNodeGT(v string) predicate.RuleChan

RootNodeGT applies the GT predicate on the "root_node" field.

func RootNodeGTE

func RootNodeGTE(v string) predicate.RuleChan

RootNodeGTE applies the GTE predicate on the "root_node" field.

func RootNodeHasPrefix

func RootNodeHasPrefix(v string) predicate.RuleChan

RootNodeHasPrefix applies the HasPrefix predicate on the "root_node" field.

func RootNodeHasSuffix

func RootNodeHasSuffix(v string) predicate.RuleChan

RootNodeHasSuffix applies the HasSuffix predicate on the "root_node" field.

func RootNodeIn

func RootNodeIn(vs ...string) predicate.RuleChan

RootNodeIn applies the In predicate on the "root_node" field.

func RootNodeLT

func RootNodeLT(v string) predicate.RuleChan

RootNodeLT applies the LT predicate on the "root_node" field.

func RootNodeLTE

func RootNodeLTE(v string) predicate.RuleChan

RootNodeLTE applies the LTE predicate on the "root_node" field.

func RootNodeNEQ

func RootNodeNEQ(v string) predicate.RuleChan

RootNodeNEQ applies the NEQ predicate on the "root_node" field.

func RootNodeNotIn

func RootNodeNotIn(vs ...string) predicate.RuleChan

RootNodeNotIn applies the NotIn predicate on the "root_node" field.

func StatusEQ

func StatusEQ(v Status) predicate.RuleChan

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.RuleChan

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.RuleChan

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.RuleChan

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.RuleChan

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.RuleChan

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.RuleChan

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.RuleChan

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.RuleChan

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.RuleChan

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.RuleChan

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

func UpdatedAtNotIn

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

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

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusActivated Status = "deactivated"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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