group

package
v0.0.0-...-2b4f063 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the group type in the database.
	Label = "group"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBid holds the string denoting the bid field in the database.
	FieldBid = "bid"
	// FieldCmd holds the string denoting the cmd field in the database.
	FieldCmd = "cmd"
	// FieldVisible holds the string denoting the visible field in the database.
	FieldVisible = "visible"
	// FieldAuthor holds the string denoting the author field in the database.
	FieldAuthor = "author"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldClosedAt holds the string denoting the closed_at field in the database.
	FieldClosedAt = "closed_at"
	// EdgeBeacon holds the string denoting the beacon edge name in mutations.
	EdgeBeacon = "beacon"
	// EdgeOperator holds the string denoting the operator edge name in mutations.
	EdgeOperator = "operator"
	// EdgeMessage holds the string denoting the message edge name in mutations.
	EdgeMessage = "message"
	// EdgeTask holds the string denoting the task edge name in mutations.
	EdgeTask = "task"
	// Table holds the table name of the group in the database.
	Table = "group"
	// BeaconTable is the table that holds the beacon relation/edge.
	BeaconTable = "group"
	// BeaconInverseTable is the table name for the Beacon entity.
	// It exists in this package in order to avoid circular dependency with the "beacon" package.
	BeaconInverseTable = "beacon"
	// BeaconColumn is the table column denoting the beacon relation/edge.
	BeaconColumn = "bid"
	// OperatorTable is the table that holds the operator relation/edge.
	OperatorTable = "group"
	// OperatorInverseTable is the table name for the Operator entity.
	// It exists in this package in order to avoid circular dependency with the "operator" package.
	OperatorInverseTable = "operator"
	// OperatorColumn is the table column denoting the operator relation/edge.
	OperatorColumn = "author"
	// MessageTable is the table that holds the message relation/edge.
	MessageTable = "message"
	// MessageInverseTable is the table name for the Message entity.
	// It exists in this package in order to avoid circular dependency with the "message" package.
	MessageInverseTable = "message"
	// MessageColumn is the table column denoting the message relation/edge.
	MessageColumn = "gid"
	// TaskTable is the table that holds the task relation/edge.
	TaskTable = "task"
	// TaskInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TaskInverseTable = "task"
	// TaskColumn is the table column denoting the task relation/edge.
	TaskColumn = "gid"
)

Variables

View Source
var (
	// CmdValidator is a validator for the "cmd" field. It is called by the builders before save.
	CmdValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for group fields.

Functions

func And

func And(predicates ...predicate.Group) predicate.Group

And groups predicates with the AND operator between them.

func Author

func Author(v int) predicate.Group

Author applies equality check predicate on the "author" field. It's identical to AuthorEQ.

func AuthorEQ

func AuthorEQ(v int) predicate.Group

AuthorEQ applies the EQ predicate on the "author" field.

func AuthorIn

func AuthorIn(vs ...int) predicate.Group

AuthorIn applies the In predicate on the "author" field.

func AuthorNEQ

func AuthorNEQ(v int) predicate.Group

AuthorNEQ applies the NEQ predicate on the "author" field.

func AuthorNotIn

func AuthorNotIn(vs ...int) predicate.Group

AuthorNotIn applies the NotIn predicate on the "author" field.

func Bid

func Bid(v int) predicate.Group

Bid applies equality check predicate on the "bid" field. It's identical to BidEQ.

func BidEQ

func BidEQ(v int) predicate.Group

BidEQ applies the EQ predicate on the "bid" field.

func BidIn

func BidIn(vs ...int) predicate.Group

BidIn applies the In predicate on the "bid" field.

func BidNEQ

func BidNEQ(v int) predicate.Group

BidNEQ applies the NEQ predicate on the "bid" field.

func BidNotIn

func BidNotIn(vs ...int) predicate.Group

BidNotIn applies the NotIn predicate on the "bid" field.

func ClosedAt

func ClosedAt(v time.Time) predicate.Group

ClosedAt applies equality check predicate on the "closed_at" field. It's identical to ClosedAtEQ.

func ClosedAtEQ

func ClosedAtEQ(v time.Time) predicate.Group

ClosedAtEQ applies the EQ predicate on the "closed_at" field.

func ClosedAtGT

func ClosedAtGT(v time.Time) predicate.Group

ClosedAtGT applies the GT predicate on the "closed_at" field.

func ClosedAtGTE

func ClosedAtGTE(v time.Time) predicate.Group

ClosedAtGTE applies the GTE predicate on the "closed_at" field.

func ClosedAtIn

func ClosedAtIn(vs ...time.Time) predicate.Group

ClosedAtIn applies the In predicate on the "closed_at" field.

func ClosedAtIsNil

func ClosedAtIsNil() predicate.Group

ClosedAtIsNil applies the IsNil predicate on the "closed_at" field.

func ClosedAtLT

func ClosedAtLT(v time.Time) predicate.Group

ClosedAtLT applies the LT predicate on the "closed_at" field.

func ClosedAtLTE

func ClosedAtLTE(v time.Time) predicate.Group

ClosedAtLTE applies the LTE predicate on the "closed_at" field.

func ClosedAtNEQ

func ClosedAtNEQ(v time.Time) predicate.Group

ClosedAtNEQ applies the NEQ predicate on the "closed_at" field.

func ClosedAtNotIn

func ClosedAtNotIn(vs ...time.Time) predicate.Group

ClosedAtNotIn applies the NotIn predicate on the "closed_at" field.

func ClosedAtNotNil

func ClosedAtNotNil() predicate.Group

ClosedAtNotNil applies the NotNil predicate on the "closed_at" field.

func Cmd

func Cmd(v string) predicate.Group

Cmd applies equality check predicate on the "cmd" field. It's identical to CmdEQ.

func CmdContains

func CmdContains(v string) predicate.Group

CmdContains applies the Contains predicate on the "cmd" field.

func CmdContainsFold

func CmdContainsFold(v string) predicate.Group

CmdContainsFold applies the ContainsFold predicate on the "cmd" field.

func CmdEQ

func CmdEQ(v string) predicate.Group

CmdEQ applies the EQ predicate on the "cmd" field.

func CmdEqualFold

func CmdEqualFold(v string) predicate.Group

CmdEqualFold applies the EqualFold predicate on the "cmd" field.

func CmdGT

func CmdGT(v string) predicate.Group

CmdGT applies the GT predicate on the "cmd" field.

func CmdGTE

func CmdGTE(v string) predicate.Group

CmdGTE applies the GTE predicate on the "cmd" field.

func CmdHasPrefix

func CmdHasPrefix(v string) predicate.Group

CmdHasPrefix applies the HasPrefix predicate on the "cmd" field.

func CmdHasSuffix

func CmdHasSuffix(v string) predicate.Group

CmdHasSuffix applies the HasSuffix predicate on the "cmd" field.

func CmdIn

func CmdIn(vs ...string) predicate.Group

CmdIn applies the In predicate on the "cmd" field.

func CmdLT

func CmdLT(v string) predicate.Group

CmdLT applies the LT predicate on the "cmd" field.

func CmdLTE

func CmdLTE(v string) predicate.Group

CmdLTE applies the LTE predicate on the "cmd" field.

func CmdNEQ

func CmdNEQ(v string) predicate.Group

CmdNEQ applies the NEQ predicate on the "cmd" field.

func CmdNotIn

func CmdNotIn(vs ...string) predicate.Group

CmdNotIn applies the NotIn predicate on the "cmd" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Group

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Group

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Group

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Group

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Group

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Group

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Group

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

func CreatedAtNotIn

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

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

func HasBeacon

func HasBeacon() predicate.Group

HasBeacon applies the HasEdge predicate on the "beacon" edge.

func HasBeaconWith

func HasBeaconWith(preds ...predicate.Beacon) predicate.Group

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

func HasMessage

func HasMessage() predicate.Group

HasMessage applies the HasEdge predicate on the "message" edge.

func HasMessageWith

func HasMessageWith(preds ...predicate.Message) predicate.Group

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

func HasOperator

func HasOperator() predicate.Group

HasOperator applies the HasEdge predicate on the "operator" edge.

func HasOperatorWith

func HasOperatorWith(preds ...predicate.Operator) predicate.Group

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

func HasTask

func HasTask() predicate.Group

HasTask applies the HasEdge predicate on the "task" edge.

func HasTaskWith

func HasTaskWith(preds ...predicate.Task) predicate.Group

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

func ID

func ID(id int) predicate.Group

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Group

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Group

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Group

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Group

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Group

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Group

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.Group) predicate.Group

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

func Visible

func Visible(v bool) predicate.Group

Visible applies equality check predicate on the "visible" field. It's identical to VisibleEQ.

func VisibleEQ

func VisibleEQ(v bool) predicate.Group

VisibleEQ applies the EQ predicate on the "visible" field.

func VisibleNEQ

func VisibleNEQ(v bool) predicate.Group

VisibleNEQ applies the NEQ predicate on the "visible" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Group queries.

func ByAuthor

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

ByAuthor orders the results by the author field.

func ByBeaconField

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

ByBeaconField orders the results by beacon field.

func ByBid

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

ByBid orders the results by the bid field.

func ByClosedAt

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

ByClosedAt orders the results by the closed_at field.

func ByCmd

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

ByCmd orders the results by the cmd field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByMessage

func ByMessage(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByMessage orders the results by message terms.

func ByMessageCount

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

ByMessageCount orders the results by message count.

func ByOperatorField

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

ByOperatorField orders the results by operator field.

func ByTask

func ByTask(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTask orders the results by task terms.

func ByTaskCount

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

ByTaskCount orders the results by task count.

func ByVisible

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

ByVisible orders the results by the visible field.

Jump to

Keyboard shortcuts

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