server

package
v0.0.0-...-34fc03e Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the server type in the database.
	Label = "server"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldDomain holds the string denoting the domain field in the database.
	FieldDomain = "domain"
	// FieldLastSeen holds the string denoting the last_seen field in the database.
	FieldLastSeen = "last_seen"
	// EdgeActors holds the string denoting the actors edge name in mutations.
	EdgeActors = "actors"
	// Table holds the table name of the server in the database.
	Table = "servers"
	// ActorsTable is the table that holds the actors relation/edge.
	ActorsTable = "actors"
	// ActorsInverseTable is the table name for the Actor entity.
	// It exists in this package in order to avoid circular dependency with the "actor" package.
	ActorsInverseTable = "actors"
	// ActorsColumn is the table column denoting the actors relation/edge.
	ActorsColumn = "server_actors"
)

Variables

View Source
var (
	Hooks  [3]ent.Hook
	Policy ent.Policy
	// 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
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DomainValidator is a validator for the "domain" field. It is called by the builders before save.
	DomainValidator func(string) error
	// DefaultLastSeen holds the default value on creation for the "last_seen" field.
	DefaultLastSeen func() time.Time
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/eriner/burr/internal/ent/runtime"

Columns holds all SQL columns for server fields.

Functions

func And

func And(predicates ...predicate.Server) predicate.Server

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Server

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Server

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Server

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Server

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Server

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Server

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Server

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int) predicate.Server

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int) predicate.Server

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int) predicate.Server

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int) predicate.Server

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int) predicate.Server

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.Server

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int) predicate.Server

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int) predicate.Server

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.Server

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.Server

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.Server

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func Domain

func Domain(v string) predicate.Server

Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.

func DomainContains

func DomainContains(v string) predicate.Server

DomainContains applies the Contains predicate on the "domain" field.

func DomainContainsFold

func DomainContainsFold(v string) predicate.Server

DomainContainsFold applies the ContainsFold predicate on the "domain" field.

func DomainEQ

func DomainEQ(v string) predicate.Server

DomainEQ applies the EQ predicate on the "domain" field.

func DomainEqualFold

func DomainEqualFold(v string) predicate.Server

DomainEqualFold applies the EqualFold predicate on the "domain" field.

func DomainGT

func DomainGT(v string) predicate.Server

DomainGT applies the GT predicate on the "domain" field.

func DomainGTE

func DomainGTE(v string) predicate.Server

DomainGTE applies the GTE predicate on the "domain" field.

func DomainHasPrefix

func DomainHasPrefix(v string) predicate.Server

DomainHasPrefix applies the HasPrefix predicate on the "domain" field.

func DomainHasSuffix

func DomainHasSuffix(v string) predicate.Server

DomainHasSuffix applies the HasSuffix predicate on the "domain" field.

func DomainIn

func DomainIn(vs ...string) predicate.Server

DomainIn applies the In predicate on the "domain" field.

func DomainLT

func DomainLT(v string) predicate.Server

DomainLT applies the LT predicate on the "domain" field.

func DomainLTE

func DomainLTE(v string) predicate.Server

DomainLTE applies the LTE predicate on the "domain" field.

func DomainNEQ

func DomainNEQ(v string) predicate.Server

DomainNEQ applies the NEQ predicate on the "domain" field.

func DomainNotIn

func DomainNotIn(vs ...string) predicate.Server

DomainNotIn applies the NotIn predicate on the "domain" field.

func HasActors

func HasActors() predicate.Server

HasActors applies the HasEdge predicate on the "actors" edge.

func HasActorsWith

func HasActorsWith(preds ...predicate.Actor) predicate.Server

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

func ID

func ID(id uint64) predicate.Server

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Server

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Server

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Server

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Server

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Server

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Server

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastSeen

func LastSeen(v time.Time) predicate.Server

LastSeen applies equality check predicate on the "last_seen" field. It's identical to LastSeenEQ.

func LastSeenEQ

func LastSeenEQ(v time.Time) predicate.Server

LastSeenEQ applies the EQ predicate on the "last_seen" field.

func LastSeenGT

func LastSeenGT(v time.Time) predicate.Server

LastSeenGT applies the GT predicate on the "last_seen" field.

func LastSeenGTE

func LastSeenGTE(v time.Time) predicate.Server

LastSeenGTE applies the GTE predicate on the "last_seen" field.

func LastSeenIn

func LastSeenIn(vs ...time.Time) predicate.Server

LastSeenIn applies the In predicate on the "last_seen" field.

func LastSeenLT

func LastSeenLT(v time.Time) predicate.Server

LastSeenLT applies the LT predicate on the "last_seen" field.

func LastSeenLTE

func LastSeenLTE(v time.Time) predicate.Server

LastSeenLTE applies the LTE predicate on the "last_seen" field.

func LastSeenNEQ

func LastSeenNEQ(v time.Time) predicate.Server

LastSeenNEQ applies the NEQ predicate on the "last_seen" field.

func LastSeenNotIn

func LastSeenNotIn(vs ...time.Time) predicate.Server

LastSeenNotIn applies the NotIn predicate on the "last_seen" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Server) predicate.Server

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Server

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Server

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Server

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Server

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Server

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Server

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Server

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

func UpdatedAtNotIn

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

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

func UpdatedBy

func UpdatedBy(v int) predicate.Server

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.Server

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int) predicate.Server

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.Server

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int) predicate.Server

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Server

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int) predicate.Server

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.Server

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.Server

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int) predicate.Server

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Server

UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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