Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Poc) predicate.Poc
- func Created(v time.Time) predicate.Poc
- func CreatedEQ(v time.Time) predicate.Poc
- func CreatedGT(v time.Time) predicate.Poc
- func CreatedGTE(v time.Time) predicate.Poc
- func CreatedIn(vs ...time.Time) predicate.Poc
- func CreatedLT(v time.Time) predicate.Poc
- func CreatedLTE(v time.Time) predicate.Poc
- func CreatedNEQ(v time.Time) predicate.Poc
- func CreatedNotIn(vs ...time.Time) predicate.Poc
- func Email(v string) predicate.Poc
- func EmailContains(v string) predicate.Poc
- func EmailContainsFold(v string) predicate.Poc
- func EmailEQ(v string) predicate.Poc
- func EmailEqualFold(v string) predicate.Poc
- func EmailGT(v string) predicate.Poc
- func EmailGTE(v string) predicate.Poc
- func EmailHasPrefix(v string) predicate.Poc
- func EmailHasSuffix(v string) predicate.Poc
- func EmailIn(vs ...string) predicate.Poc
- func EmailIsNil() predicate.Poc
- func EmailLT(v string) predicate.Poc
- func EmailLTE(v string) predicate.Poc
- func EmailNEQ(v string) predicate.Poc
- func EmailNotIn(vs ...string) predicate.Poc
- func EmailNotNil() predicate.Poc
- func HasNetwork() predicate.Poc
- func HasNetworkWith(preds ...predicate.Network) predicate.Poc
- func ID(id int) predicate.Poc
- func IDEQ(id int) predicate.Poc
- func IDGT(id int) predicate.Poc
- func IDGTE(id int) predicate.Poc
- func IDIn(ids ...int) predicate.Poc
- func IDLT(id int) predicate.Poc
- func IDLTE(id int) predicate.Poc
- func IDNEQ(id int) predicate.Poc
- func IDNotIn(ids ...int) predicate.Poc
- func Name(v string) predicate.Poc
- func NameContains(v string) predicate.Poc
- func NameContainsFold(v string) predicate.Poc
- func NameEQ(v string) predicate.Poc
- func NameEqualFold(v string) predicate.Poc
- func NameGT(v string) predicate.Poc
- func NameGTE(v string) predicate.Poc
- func NameHasPrefix(v string) predicate.Poc
- func NameHasSuffix(v string) predicate.Poc
- func NameIn(vs ...string) predicate.Poc
- func NameIsNil() predicate.Poc
- func NameLT(v string) predicate.Poc
- func NameLTE(v string) predicate.Poc
- func NameNEQ(v string) predicate.Poc
- func NameNotIn(vs ...string) predicate.Poc
- func NameNotNil() predicate.Poc
- func NetID(v int) predicate.Poc
- func NetIDEQ(v int) predicate.Poc
- func NetIDIn(vs ...int) predicate.Poc
- func NetIDIsNil() predicate.Poc
- func NetIDNEQ(v int) predicate.Poc
- func NetIDNotIn(vs ...int) predicate.Poc
- func NetIDNotNil() predicate.Poc
- func Not(p predicate.Poc) predicate.Poc
- func Or(predicates ...predicate.Poc) predicate.Poc
- func Phone(v string) predicate.Poc
- func PhoneContains(v string) predicate.Poc
- func PhoneContainsFold(v string) predicate.Poc
- func PhoneEQ(v string) predicate.Poc
- func PhoneEqualFold(v string) predicate.Poc
- func PhoneGT(v string) predicate.Poc
- func PhoneGTE(v string) predicate.Poc
- func PhoneHasPrefix(v string) predicate.Poc
- func PhoneHasSuffix(v string) predicate.Poc
- func PhoneIn(vs ...string) predicate.Poc
- func PhoneIsNil() predicate.Poc
- func PhoneLT(v string) predicate.Poc
- func PhoneLTE(v string) predicate.Poc
- func PhoneNEQ(v string) predicate.Poc
- func PhoneNotIn(vs ...string) predicate.Poc
- func PhoneNotNil() predicate.Poc
- func Role(v string) predicate.Poc
- func RoleContains(v string) predicate.Poc
- func RoleContainsFold(v string) predicate.Poc
- func RoleEQ(v string) predicate.Poc
- func RoleEqualFold(v string) predicate.Poc
- func RoleGT(v string) predicate.Poc
- func RoleGTE(v string) predicate.Poc
- func RoleHasPrefix(v string) predicate.Poc
- func RoleHasSuffix(v string) predicate.Poc
- func RoleIn(vs ...string) predicate.Poc
- func RoleLT(v string) predicate.Poc
- func RoleLTE(v string) predicate.Poc
- func RoleNEQ(v string) predicate.Poc
- func RoleNotIn(vs ...string) predicate.Poc
- func Status(v string) predicate.Poc
- func StatusContains(v string) predicate.Poc
- func StatusContainsFold(v string) predicate.Poc
- func StatusEQ(v string) predicate.Poc
- func StatusEqualFold(v string) predicate.Poc
- func StatusGT(v string) predicate.Poc
- func StatusGTE(v string) predicate.Poc
- func StatusHasPrefix(v string) predicate.Poc
- func StatusHasSuffix(v string) predicate.Poc
- func StatusIn(vs ...string) predicate.Poc
- func StatusLT(v string) predicate.Poc
- func StatusLTE(v string) predicate.Poc
- func StatusNEQ(v string) predicate.Poc
- func StatusNotIn(vs ...string) predicate.Poc
- func URL(v string) predicate.Poc
- func URLContains(v string) predicate.Poc
- func URLContainsFold(v string) predicate.Poc
- func URLEQ(v string) predicate.Poc
- func URLEqualFold(v string) predicate.Poc
- func URLGT(v string) predicate.Poc
- func URLGTE(v string) predicate.Poc
- func URLHasPrefix(v string) predicate.Poc
- func URLHasSuffix(v string) predicate.Poc
- func URLIn(vs ...string) predicate.Poc
- func URLIsNil() predicate.Poc
- func URLLT(v string) predicate.Poc
- func URLLTE(v string) predicate.Poc
- func URLNEQ(v string) predicate.Poc
- func URLNotIn(vs ...string) predicate.Poc
- func URLNotNil() predicate.Poc
- func Updated(v time.Time) predicate.Poc
- func UpdatedEQ(v time.Time) predicate.Poc
- func UpdatedGT(v time.Time) predicate.Poc
- func UpdatedGTE(v time.Time) predicate.Poc
- func UpdatedIn(vs ...time.Time) predicate.Poc
- func UpdatedLT(v time.Time) predicate.Poc
- func UpdatedLTE(v time.Time) predicate.Poc
- func UpdatedNEQ(v time.Time) predicate.Poc
- func UpdatedNotIn(vs ...time.Time) predicate.Poc
- func ValidColumn(column string) bool
- func Visible(v string) predicate.Poc
- func VisibleContains(v string) predicate.Poc
- func VisibleContainsFold(v string) predicate.Poc
- func VisibleEQ(v string) predicate.Poc
- func VisibleEqualFold(v string) predicate.Poc
- func VisibleGT(v string) predicate.Poc
- func VisibleGTE(v string) predicate.Poc
- func VisibleHasPrefix(v string) predicate.Poc
- func VisibleHasSuffix(v string) predicate.Poc
- func VisibleIn(vs ...string) predicate.Poc
- func VisibleIsNil() predicate.Poc
- func VisibleLT(v string) predicate.Poc
- func VisibleLTE(v string) predicate.Poc
- func VisibleNEQ(v string) predicate.Poc
- func VisibleNotIn(vs ...string) predicate.Poc
- func VisibleNotNil() predicate.Poc
- type OrderOption
- func ByCreated(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNetID(opts ...sql.OrderTermOption) OrderOption
- func ByNetworkField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPhone(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdated(opts ...sql.OrderTermOption) OrderOption
- func ByVisible(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldNetID, FieldEmail, FieldName, FieldPhone, FieldRole, FieldURL, FieldVisible, FieldCreated, FieldUpdated, FieldStatus, }
Columns holds all SQL columns for poc fields.
Functions ¶
func Created ¶
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedGTE ¶
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedLTE ¶
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
CreatedNotIn applies the NotIn predicate on the "created" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailIsNil ¶
EmailIsNil applies the IsNil predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func EmailNotNil ¶
EmailNotNil applies the NotNil predicate on the "email" field.
func HasNetwork ¶
HasNetwork applies the HasEdge predicate on the "network" edge.
func HasNetworkWith ¶
HasNetworkWith applies the HasEdge predicate on the "network" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func NetID ¶
NetID applies equality check predicate on the "net_id" field. It's identical to NetIDEQ.
func NetIDIsNil ¶
NetIDIsNil applies the IsNil predicate on the "net_id" field.
func NetIDNotIn ¶
NetIDNotIn applies the NotIn predicate on the "net_id" field.
func NetIDNotNil ¶
NetIDNotNil applies the NotNil predicate on the "net_id" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEqualFold ¶
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneIsNil ¶
PhoneIsNil applies the IsNil predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func PhoneNotNil ¶
PhoneNotNil applies the NotNil predicate on the "phone" field.
func RoleContains ¶
RoleContains applies the Contains predicate on the "role" field.
func RoleContainsFold ¶
RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleEqualFold ¶
RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleHasPrefix ¶
RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasSuffix ¶
RoleHasSuffix applies the HasSuffix predicate on the "role" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func Updated ¶
Updated applies equality check predicate on the "updated" field. It's identical to UpdatedEQ.
func UpdatedGTE ¶
UpdatedGTE applies the GTE predicate on the "updated" field.
func UpdatedLTE ¶
UpdatedLTE applies the LTE predicate on the "updated" field.
func UpdatedNEQ ¶
UpdatedNEQ applies the NEQ predicate on the "updated" field.
func UpdatedNotIn ¶
UpdatedNotIn applies the NotIn predicate on the "updated" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Visible ¶
Visible applies equality check predicate on the "visible" field. It's identical to VisibleEQ.
func VisibleContains ¶
VisibleContains applies the Contains predicate on the "visible" field.
func VisibleContainsFold ¶
VisibleContainsFold applies the ContainsFold predicate on the "visible" field.
func VisibleEqualFold ¶
VisibleEqualFold applies the EqualFold predicate on the "visible" field.
func VisibleGTE ¶
VisibleGTE applies the GTE predicate on the "visible" field.
func VisibleHasPrefix ¶
VisibleHasPrefix applies the HasPrefix predicate on the "visible" field.
func VisibleHasSuffix ¶
VisibleHasSuffix applies the HasSuffix predicate on the "visible" field.
func VisibleIsNil ¶ added in v1.4.0
VisibleIsNil applies the IsNil predicate on the "visible" field.
func VisibleLTE ¶
VisibleLTE applies the LTE predicate on the "visible" field.
func VisibleNEQ ¶
VisibleNEQ applies the NEQ predicate on the "visible" field.
func VisibleNotIn ¶
VisibleNotIn applies the NotIn predicate on the "visible" field.
func VisibleNotNil ¶ added in v1.4.0
VisibleNotNil applies the NotNil predicate on the "visible" field.
Types ¶
type OrderOption ¶
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.