Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Service) predicate.Service
- func Config(v string) predicate.Service
- func ConfigContains(v string) predicate.Service
- func ConfigContainsFold(v string) predicate.Service
- func ConfigEQ(v string) predicate.Service
- func ConfigEqualFold(v string) predicate.Service
- func ConfigGT(v string) predicate.Service
- func ConfigGTE(v string) predicate.Service
- func ConfigHasPrefix(v string) predicate.Service
- func ConfigHasSuffix(v string) predicate.Service
- func ConfigIn(vs ...string) predicate.Service
- func ConfigLT(v string) predicate.Service
- func ConfigLTE(v string) predicate.Service
- func ConfigNEQ(v string) predicate.Service
- func ConfigNotIn(vs ...string) predicate.Service
- func HasEvents() predicate.Service
- func HasEventsWith(preds ...predicate.Event) predicate.Service
- func HasTag() predicate.Service
- func HasTagWith(preds ...predicate.Tag) predicate.Service
- func ID(id int) predicate.Service
- func IDEQ(id int) predicate.Service
- func IDGT(id int) predicate.Service
- func IDGTE(id int) predicate.Service
- func IDIn(ids ...int) predicate.Service
- func IDLT(id int) predicate.Service
- func IDLTE(id int) predicate.Service
- func IDNEQ(id int) predicate.Service
- func IDNotIn(ids ...int) predicate.Service
- func IsActivated(v bool) predicate.Service
- func IsActivatedEQ(v bool) predicate.Service
- func IsActivatedNEQ(v bool) predicate.Service
- func Name(v string) predicate.Service
- func NameContains(v string) predicate.Service
- func NameContainsFold(v string) predicate.Service
- func NameEQ(v string) predicate.Service
- func NameEqualFold(v string) predicate.Service
- func NameGT(v string) predicate.Service
- func NameGTE(v string) predicate.Service
- func NameHasPrefix(v string) predicate.Service
- func NameHasSuffix(v string) predicate.Service
- func NameIn(vs ...string) predicate.Service
- func NameLT(v string) predicate.Service
- func NameLTE(v string) predicate.Service
- func NameNEQ(v string) predicate.Service
- func NameNotIn(vs ...string) predicate.Service
- func Not(p predicate.Service) predicate.Service
- func Or(predicates ...predicate.Service) predicate.Service
- func PubKey(v string) predicate.Service
- func PubKeyContains(v string) predicate.Service
- func PubKeyContainsFold(v string) predicate.Service
- func PubKeyEQ(v string) predicate.Service
- func PubKeyEqualFold(v string) predicate.Service
- func PubKeyGT(v string) predicate.Service
- func PubKeyGTE(v string) predicate.Service
- func PubKeyHasPrefix(v string) predicate.Service
- func PubKeyHasSuffix(v string) predicate.Service
- func PubKeyIn(vs ...string) predicate.Service
- func PubKeyLT(v string) predicate.Service
- func PubKeyLTE(v string) predicate.Service
- func PubKeyNEQ(v string) predicate.Service
- func PubKeyNotIn(vs ...string) predicate.Service
Constants ¶
const ( // Label holds the string label denoting the service type in the database. Label = "service" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name vertex property in the database. FieldName = "name" // FieldPubKey holds the string denoting the pubkey vertex property in the database. FieldPubKey = "pub_key" // FieldConfig holds the string denoting the config vertex property in the database. FieldConfig = "config" // FieldIsActivated holds the string denoting the isactivated vertex property in the database. FieldIsActivated = "is_activated" // Table holds the table name of the service in the database. Table = "services" // TagTable is the table the holds the tag relation/edge. TagTable = "services" // TagInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagInverseTable = "tags" // TagColumn is the table column denoting the tag relation/edge. TagColumn = "service_tag_id" // EventsTable is the table the holds the events relation/edge. EventsTable = "events" // EventsInverseTable is the table name for the Event entity. // It exists in this package in order to avoid circular dependency with the "event" package. EventsInverseTable = "events" // EventsColumn is the table column denoting the events relation/edge. EventsColumn = "svc_owner_id" )
Variables ¶
var ( // NameValidator is a validator for the "Name" field. It is called by the builders before save. NameValidator = descName.Validators[0].(func(string) error) // PubKeyValidator is a validator for the "PubKey" field. It is called by the builders before save. PubKeyValidator = descPubKey.Validators[0].(func(string) error) // DefaultConfig holds the default value on creation for the Config field. DefaultConfig = descConfig.Default.(string) // DefaultIsActivated holds the default value on creation for the IsActivated field. DefaultIsActivated = descIsActivated.Default.(bool) )
var Columns = []string{ FieldID, FieldName, FieldPubKey, FieldConfig, FieldIsActivated, }
Columns holds all SQL columns for service fields.
var ForeignKeys = []string{
"service_tag_id",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Service type.
Functions ¶
func Config ¶ added in v0.4.0
Config applies equality check predicate on the "Config" field. It's identical to ConfigEQ.
func ConfigContains ¶ added in v0.4.0
ConfigContains applies the Contains predicate on the "Config" field.
func ConfigContainsFold ¶ added in v0.4.0
ConfigContainsFold applies the ContainsFold predicate on the "Config" field.
func ConfigEqualFold ¶ added in v0.4.0
ConfigEqualFold applies the EqualFold predicate on the "Config" field.
func ConfigHasPrefix ¶ added in v0.4.0
ConfigHasPrefix applies the HasPrefix predicate on the "Config" field.
func ConfigHasSuffix ¶ added in v0.4.0
ConfigHasSuffix applies the HasSuffix predicate on the "Config" field.
func ConfigNotIn ¶ added in v0.4.0
ConfigNotIn applies the NotIn predicate on the "Config" field.
func HasEventsWith ¶
HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func HasTagWith ¶
HasTagWith applies the HasEdge predicate on the "tag" edge with a given conditions (other predicates).
func IsActivated ¶
IsActivated applies equality check predicate on the "IsActivated" field. It's identical to IsActivatedEQ.
func IsActivatedEQ ¶
IsActivatedEQ applies the EQ predicate on the "IsActivated" field.
func IsActivatedNEQ ¶
IsActivatedNEQ applies the NEQ predicate on the "IsActivated" field.
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 PubKey ¶
PubKey applies equality check predicate on the "PubKey" field. It's identical to PubKeyEQ.
func PubKeyContains ¶
PubKeyContains applies the Contains predicate on the "PubKey" field.
func PubKeyContainsFold ¶
PubKeyContainsFold applies the ContainsFold predicate on the "PubKey" field.
func PubKeyEqualFold ¶
PubKeyEqualFold applies the EqualFold predicate on the "PubKey" field.
func PubKeyHasPrefix ¶
PubKeyHasPrefix applies the HasPrefix predicate on the "PubKey" field.
func PubKeyHasSuffix ¶
PubKeyHasSuffix applies the HasSuffix predicate on the "PubKey" field.
func PubKeyNotIn ¶
PubKeyNotIn applies the NotIn predicate on the "PubKey" field.
Types ¶
This section is empty.