package
0.0.0-20230520021403-3b51f2ee9624
Repository: https://github.com/openpanel/core.git
Documentation: pkg.go.dev

# Functions

And groups predicates with the AND operator between them.
ByComment orders the results by the comment field.
ByCreatedAt orders the results by the created_at field.
ByID orders the results by the id field.
ByIP orders the results by the ip field.
ByName orders the results by the name field.
ByPort orders the results by the port field.
ByUpdatedAt orders the results by the updated_at field.
Comment applies equality check predicate on the "comment" field.
CommentContains applies the Contains predicate on the "comment" field.
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
CommentEQ applies the EQ predicate on the "comment" field.
CommentEqualFold applies the EqualFold predicate on the "comment" field.
CommentGT applies the GT predicate on the "comment" field.
CommentGTE applies the GTE predicate on the "comment" field.
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
CommentIn applies the In predicate on the "comment" field.
CommentIsNil applies the IsNil predicate on the "comment" field.
CommentLT applies the LT predicate on the "comment" field.
CommentLTE applies the LTE predicate on the "comment" field.
CommentNEQ applies the NEQ predicate on the "comment" field.
CommentNotIn applies the NotIn predicate on the "comment" field.
CommentNotNil applies the NotNil predicate on the "comment" field.
CreatedAt applies equality check predicate on the "created_at" field.
CreatedAtEQ applies the EQ predicate on the "created_at" field.
CreatedAtGT applies the GT predicate on the "created_at" field.
CreatedAtGTE applies the GTE predicate on the "created_at" field.
CreatedAtIn applies the In predicate on the "created_at" field.
CreatedAtLT applies the LT predicate on the "created_at" field.
CreatedAtLTE applies the LTE predicate on the "created_at" field.
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
ID filters vertices based on their ID field.
IDContainsFold applies the ContainsFold predicate on the ID field.
IDEQ applies the EQ predicate on the ID field.
IDEqualFold applies the EqualFold predicate on the ID field.
IDGT applies the GT predicate on the ID field.
IDGTE applies the GTE predicate on the ID field.
IDIn applies the In predicate on the ID field.
IDLT applies the LT predicate on the ID field.
IDLTE applies the LTE predicate on the ID field.
IDNEQ applies the NEQ predicate on the ID field.
IDNotIn applies the NotIn predicate on the ID field.
IP applies equality check predicate on the "ip" field.
IPContains applies the Contains predicate on the "ip" field.
IPContainsFold applies the ContainsFold predicate on the "ip" field.
IPEQ applies the EQ predicate on the "ip" field.
IPEqualFold applies the EqualFold predicate on the "ip" field.
IPGT applies the GT predicate on the "ip" field.
IPGTE applies the GTE predicate on the "ip" field.
IPHasPrefix applies the HasPrefix predicate on the "ip" field.
IPHasSuffix applies the HasSuffix predicate on the "ip" field.
IPIn applies the In predicate on the "ip" field.
IPLT applies the LT predicate on the "ip" field.
IPLTE applies the LTE predicate on the "ip" field.
IPNEQ applies the NEQ predicate on the "ip" field.
IPNotIn applies the NotIn predicate on the "ip" field.
Name applies equality check predicate on the "name" field.
NameContains applies the Contains predicate on the "name" field.
NameContainsFold applies the ContainsFold predicate on the "name" field.
NameEQ applies the EQ predicate on the "name" field.
NameEqualFold applies the EqualFold predicate on the "name" field.
NameGT applies the GT predicate on the "name" field.
NameGTE applies the GTE predicate on the "name" field.
NameHasPrefix applies the HasPrefix predicate on the "name" field.
NameHasSuffix applies the HasSuffix predicate on the "name" field.
NameIn applies the In predicate on the "name" field.
NameIsNil applies the IsNil predicate on the "name" field.
NameLT applies the LT predicate on the "name" field.
NameLTE applies the LTE predicate on the "name" field.
NameNEQ applies the NEQ predicate on the "name" field.
NameNotIn applies the NotIn predicate on the "name" field.
NameNotNil applies the NotNil predicate on the "name" field.
Not applies the not operator on the given predicate.
Or groups predicates with the OR operator between them.
Port applies equality check predicate on the "port" field.
PortEQ applies the EQ predicate on the "port" field.
PortGT applies the GT predicate on the "port" field.
PortGTE applies the GTE predicate on the "port" field.
PortIn applies the In predicate on the "port" field.
PortLT applies the LT predicate on the "port" field.
PortLTE applies the LTE predicate on the "port" field.
PortNEQ applies the NEQ predicate on the "port" field.
PortNotIn applies the NotIn predicate on the "port" field.
UpdatedAt applies equality check predicate on the "updated_at" field.
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
UpdatedAtGT applies the GT predicate on the "updated_at" field.
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
UpdatedAtIn applies the In predicate on the "updated_at" field.
UpdatedAtLT applies the LT predicate on the "updated_at" field.
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
ValidColumn reports if the column name is valid (part of the table columns).

# Constants

FieldComment holds the string denoting the comment field in the database.
FieldCreatedAt holds the string denoting the created_at field in the database.
FieldID holds the string denoting the id field in the database.
FieldIP holds the string denoting the ip field in the database.
FieldName holds the string denoting the name field in the database.
FieldPort holds the string denoting the port field in the database.
FieldUpdatedAt holds the string denoting the updated_at field in the database.
Label holds the string label denoting the node type in the database.
Table holds the table name of the node in the database.

# Variables

Columns holds all SQL columns for node fields.
DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultID holds the default value on creation for the "id" field.
DefaultPort holds the default value on creation for the "port" field.
DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.

# Type aliases

OrderOption defines the ordering options for the Node queries.