poc

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the poc type in the database.
	Label = "poc"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNetID holds the string denoting the net_id field in the database.
	FieldNetID = "net_id"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldPhone holds the string denoting the phone field in the database.
	FieldPhone = "phone"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldVisible holds the string denoting the visible field in the database.
	FieldVisible = "visible"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldUpdated holds the string denoting the updated field in the database.
	FieldUpdated = "updated"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// EdgeNetwork holds the string denoting the network edge name in mutations.
	EdgeNetwork = "network"
	// Table holds the table name of the poc in the database.
	Table = "pocs"
	// NetworkTable is the table that holds the network relation/edge.
	NetworkTable = "pocs"
	// NetworkInverseTable is the table name for the Network entity.
	// It exists in this package in order to avoid circular dependency with the "network" package.
	NetworkInverseTable = "networks"
	// NetworkColumn is the table column denoting the network relation/edge.
	NetworkColumn = "net_id"
)

Variables

View Source
var (
	Hooks  [1]ent.Hook
	Policy ent.Policy
	// DefaultEmail holds the default value on creation for the "email" field.
	DefaultEmail string
	// DefaultName holds the default value on creation for the "name" field.
	DefaultName string
	// DefaultPhone holds the default value on creation for the "phone" field.
	DefaultPhone string
	// DefaultURL holds the default value on creation for the "url" field.
	DefaultURL string
	// DefaultVisible holds the default value on creation for the "visible" field.
	DefaultVisible string
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(int) error
)

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/dotwaffle/peeringdb-plus/ent/runtime"

Columns holds all SQL columns for poc fields.

Functions

func And

func And(predicates ...predicate.Poc) predicate.Poc

And groups predicates with the AND operator between them.

func Created

func Created(v time.Time) predicate.Poc

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.Poc

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.Poc

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.Poc

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.Poc

CreatedIn applies the In predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.Poc

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.Poc

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.Poc

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.Poc

CreatedNotIn applies the NotIn predicate on the "created" field.

func Email

func Email(v string) predicate.Poc

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Poc

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Poc

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Poc

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Poc

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Poc

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Poc

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Poc

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Poc

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.Poc

EmailIn applies the In predicate on the "email" field.

func EmailIsNil

func EmailIsNil() predicate.Poc

EmailIsNil applies the IsNil predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Poc

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Poc

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Poc

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.Poc

EmailNotIn applies the NotIn predicate on the "email" field.

func EmailNotNil

func EmailNotNil() predicate.Poc

EmailNotNil applies the NotNil predicate on the "email" field.

func HasNetwork

func HasNetwork() predicate.Poc

HasNetwork applies the HasEdge predicate on the "network" edge.

func HasNetworkWith

func HasNetworkWith(preds ...predicate.Network) predicate.Poc

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

func ID

func ID(id int) predicate.Poc

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Poc

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Poc

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Poc

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Poc

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Poc

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Poc

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Poc

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

func NameContains

func NameContains(v string) predicate.Poc

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

func NameContainsFold

func NameContainsFold(v string) predicate.Poc

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

func NameEQ

func NameEQ(v string) predicate.Poc

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

func NameEqualFold

func NameEqualFold(v string) predicate.Poc

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

func NameGT

func NameGT(v string) predicate.Poc

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

func NameGTE

func NameGTE(v string) predicate.Poc

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Poc

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Poc

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

func NameIn

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

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

func NameIsNil

func NameIsNil() predicate.Poc

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Poc

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

func NameLTE

func NameLTE(v string) predicate.Poc

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

func NameNEQ

func NameNEQ(v string) predicate.Poc

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

func NameNotIn

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

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

func NameNotNil

func NameNotNil() predicate.Poc

NameNotNil applies the NotNil predicate on the "name" field.

func NetID

func NetID(v int) predicate.Poc

NetID applies equality check predicate on the "net_id" field. It's identical to NetIDEQ.

func NetIDEQ

func NetIDEQ(v int) predicate.Poc

NetIDEQ applies the EQ predicate on the "net_id" field.

func NetIDIn

func NetIDIn(vs ...int) predicate.Poc

NetIDIn applies the In predicate on the "net_id" field.

func NetIDIsNil

func NetIDIsNil() predicate.Poc

NetIDIsNil applies the IsNil predicate on the "net_id" field.

func NetIDNEQ

func NetIDNEQ(v int) predicate.Poc

NetIDNEQ applies the NEQ predicate on the "net_id" field.

func NetIDNotIn

func NetIDNotIn(vs ...int) predicate.Poc

NetIDNotIn applies the NotIn predicate on the "net_id" field.

func NetIDNotNil

func NetIDNotNil() predicate.Poc

NetIDNotNil applies the NotNil predicate on the "net_id" field.

func Not

func Not(p predicate.Poc) predicate.Poc

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Poc) predicate.Poc

Or groups predicates with the OR operator between them.

func Phone

func Phone(v string) predicate.Poc

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneContains

func PhoneContains(v string) predicate.Poc

PhoneContains applies the Contains predicate on the "phone" field.

func PhoneContainsFold

func PhoneContainsFold(v string) predicate.Poc

PhoneContainsFold applies the ContainsFold predicate on the "phone" field.

func PhoneEQ

func PhoneEQ(v string) predicate.Poc

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneEqualFold

func PhoneEqualFold(v string) predicate.Poc

PhoneEqualFold applies the EqualFold predicate on the "phone" field.

func PhoneGT

func PhoneGT(v string) predicate.Poc

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE

func PhoneGTE(v string) predicate.Poc

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneHasPrefix

func PhoneHasPrefix(v string) predicate.Poc

PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.

func PhoneHasSuffix

func PhoneHasSuffix(v string) predicate.Poc

PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.

func PhoneIn

func PhoneIn(vs ...string) predicate.Poc

PhoneIn applies the In predicate on the "phone" field.

func PhoneIsNil

func PhoneIsNil() predicate.Poc

PhoneIsNil applies the IsNil predicate on the "phone" field.

func PhoneLT

func PhoneLT(v string) predicate.Poc

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE

func PhoneLTE(v string) predicate.Poc

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ

func PhoneNEQ(v string) predicate.Poc

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn

func PhoneNotIn(vs ...string) predicate.Poc

PhoneNotIn applies the NotIn predicate on the "phone" field.

func PhoneNotNil

func PhoneNotNil() predicate.Poc

PhoneNotNil applies the NotNil predicate on the "phone" field.

func Role

func Role(v string) predicate.Poc

Role applies equality check predicate on the "role" field. It's identical to RoleEQ.

func RoleContains

func RoleContains(v string) predicate.Poc

RoleContains applies the Contains predicate on the "role" field.

func RoleContainsFold

func RoleContainsFold(v string) predicate.Poc

RoleContainsFold applies the ContainsFold predicate on the "role" field.

func RoleEQ

func RoleEQ(v string) predicate.Poc

RoleEQ applies the EQ predicate on the "role" field.

func RoleEqualFold

func RoleEqualFold(v string) predicate.Poc

RoleEqualFold applies the EqualFold predicate on the "role" field.

func RoleGT

func RoleGT(v string) predicate.Poc

RoleGT applies the GT predicate on the "role" field.

func RoleGTE

func RoleGTE(v string) predicate.Poc

RoleGTE applies the GTE predicate on the "role" field.

func RoleHasPrefix

func RoleHasPrefix(v string) predicate.Poc

RoleHasPrefix applies the HasPrefix predicate on the "role" field.

func RoleHasSuffix

func RoleHasSuffix(v string) predicate.Poc

RoleHasSuffix applies the HasSuffix predicate on the "role" field.

func RoleIn

func RoleIn(vs ...string) predicate.Poc

RoleIn applies the In predicate on the "role" field.

func RoleLT

func RoleLT(v string) predicate.Poc

RoleLT applies the LT predicate on the "role" field.

func RoleLTE

func RoleLTE(v string) predicate.Poc

RoleLTE applies the LTE predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v string) predicate.Poc

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...string) predicate.Poc

RoleNotIn applies the NotIn predicate on the "role" field.

func Status

func Status(v string) predicate.Poc

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Poc

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Poc

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Poc

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

func StatusEqualFold

func StatusEqualFold(v string) predicate.Poc

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Poc

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Poc

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Poc

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Poc

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.Poc

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

func StatusLT

func StatusLT(v string) predicate.Poc

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Poc

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Poc

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

func StatusNotIn

func StatusNotIn(vs ...string) predicate.Poc

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

func URL

func URL(v string) predicate.Poc

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Poc

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Poc

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Poc

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Poc

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Poc

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Poc

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Poc

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Poc

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Poc

URLIn applies the In predicate on the "url" field.

func URLIsNil

func URLIsNil() predicate.Poc

URLIsNil applies the IsNil predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Poc

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Poc

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Poc

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Poc

URLNotIn applies the NotIn predicate on the "url" field.

func URLNotNil

func URLNotNil() predicate.Poc

URLNotNil applies the NotNil predicate on the "url" field.

func Updated

func Updated(v time.Time) predicate.Poc

Updated applies equality check predicate on the "updated" field. It's identical to UpdatedEQ.

func UpdatedEQ

func UpdatedEQ(v time.Time) predicate.Poc

UpdatedEQ applies the EQ predicate on the "updated" field.

func UpdatedGT

func UpdatedGT(v time.Time) predicate.Poc

UpdatedGT applies the GT predicate on the "updated" field.

func UpdatedGTE

func UpdatedGTE(v time.Time) predicate.Poc

UpdatedGTE applies the GTE predicate on the "updated" field.

func UpdatedIn

func UpdatedIn(vs ...time.Time) predicate.Poc

UpdatedIn applies the In predicate on the "updated" field.

func UpdatedLT

func UpdatedLT(v time.Time) predicate.Poc

UpdatedLT applies the LT predicate on the "updated" field.

func UpdatedLTE

func UpdatedLTE(v time.Time) predicate.Poc

UpdatedLTE applies the LTE predicate on the "updated" field.

func UpdatedNEQ

func UpdatedNEQ(v time.Time) predicate.Poc

UpdatedNEQ applies the NEQ predicate on the "updated" field.

func UpdatedNotIn

func UpdatedNotIn(vs ...time.Time) predicate.Poc

UpdatedNotIn applies the NotIn predicate on the "updated" field.

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 string) predicate.Poc

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

func VisibleContains

func VisibleContains(v string) predicate.Poc

VisibleContains applies the Contains predicate on the "visible" field.

func VisibleContainsFold

func VisibleContainsFold(v string) predicate.Poc

VisibleContainsFold applies the ContainsFold predicate on the "visible" field.

func VisibleEQ

func VisibleEQ(v string) predicate.Poc

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

func VisibleEqualFold

func VisibleEqualFold(v string) predicate.Poc

VisibleEqualFold applies the EqualFold predicate on the "visible" field.

func VisibleGT

func VisibleGT(v string) predicate.Poc

VisibleGT applies the GT predicate on the "visible" field.

func VisibleGTE

func VisibleGTE(v string) predicate.Poc

VisibleGTE applies the GTE predicate on the "visible" field.

func VisibleHasPrefix

func VisibleHasPrefix(v string) predicate.Poc

VisibleHasPrefix applies the HasPrefix predicate on the "visible" field.

func VisibleHasSuffix

func VisibleHasSuffix(v string) predicate.Poc

VisibleHasSuffix applies the HasSuffix predicate on the "visible" field.

func VisibleIn

func VisibleIn(vs ...string) predicate.Poc

VisibleIn applies the In predicate on the "visible" field.

func VisibleIsNil added in v1.4.0

func VisibleIsNil() predicate.Poc

VisibleIsNil applies the IsNil predicate on the "visible" field.

func VisibleLT

func VisibleLT(v string) predicate.Poc

VisibleLT applies the LT predicate on the "visible" field.

func VisibleLTE

func VisibleLTE(v string) predicate.Poc

VisibleLTE applies the LTE predicate on the "visible" field.

func VisibleNEQ

func VisibleNEQ(v string) predicate.Poc

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

func VisibleNotIn

func VisibleNotIn(vs ...string) predicate.Poc

VisibleNotIn applies the NotIn predicate on the "visible" field.

func VisibleNotNil added in v1.4.0

func VisibleNotNil() predicate.Poc

VisibleNotNil applies the NotNil predicate on the "visible" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Poc queries.

func ByCreated

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

ByCreated orders the results by the created field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByNetID

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

ByNetID orders the results by the net_id field.

func ByNetworkField

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

ByNetworkField orders the results by network field.

func ByPhone

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

ByPhone orders the results by the phone field.

func ByRole

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

ByRole orders the results by the role field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByURL

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

ByURL orders the results by the url field.

func ByUpdated

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

ByUpdated orders the results by the updated field.

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