daemon

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the daemon type in the database.
	Label = "daemon"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldEnable holds the string denoting the enable field in the database.
	FieldEnable = "enable"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the daemon in the database.
	Table = "daemons"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "users"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "daemon_user"
)

Variables

Columns holds all SQL columns for daemon fields.

View Source
var (
	// DefaultEnable holds the default value on creation for the "enable" field.
	DefaultEnable bool
)

Functions

func And

func And(predicates ...predicate.Daemon) predicate.Daemon

And groups predicates with the AND operator between them.

func Enable

func Enable(v bool) predicate.Daemon

Enable applies equality check predicate on the "enable" field. It's identical to EnableEQ.

func EnableEQ

func EnableEQ(v bool) predicate.Daemon

EnableEQ applies the EQ predicate on the "enable" field.

func EnableNEQ

func EnableNEQ(v bool) predicate.Daemon

EnableNEQ applies the NEQ predicate on the "enable" field.

func HasUser

func HasUser() predicate.Daemon

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Daemon

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

func ID

func ID(id int) predicate.Daemon

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Daemon

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Daemon

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Daemon

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Daemon

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Daemon

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Daemon

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Daemon) predicate.Daemon

Or groups predicates with the OR operator between them.

func Path

func Path(v string) predicate.Daemon

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.Daemon

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.Daemon

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.Daemon

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.Daemon

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.Daemon

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.Daemon

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.Daemon

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.Daemon

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.Daemon

PathIn applies the In predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.Daemon

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.Daemon

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.Daemon

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.Daemon

PathNotIn applies the NotIn predicate on the "path" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Daemon queries.

func ByEnable

func ByEnable(opts ...sql.OrderTermOption) OrderOption

ByEnable orders the results by the enable field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByPath

func ByPath(opts ...sql.OrderTermOption) OrderOption

ByPath orders the results by the path field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

Jump to

Keyboard shortcuts

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