service

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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)
)

Columns holds all SQL columns for service fields.

View Source
var ForeignKeys = []string{
	"service_tag_id",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Service type.

Functions

func And

func And(predicates ...predicate.Service) predicate.Service

And groups list of predicates with the AND operator between them.

func Config added in v0.4.0

func Config(v string) predicate.Service

Config applies equality check predicate on the "Config" field. It's identical to ConfigEQ.

func ConfigContains added in v0.4.0

func ConfigContains(v string) predicate.Service

ConfigContains applies the Contains predicate on the "Config" field.

func ConfigContainsFold added in v0.4.0

func ConfigContainsFold(v string) predicate.Service

ConfigContainsFold applies the ContainsFold predicate on the "Config" field.

func ConfigEQ added in v0.4.0

func ConfigEQ(v string) predicate.Service

ConfigEQ applies the EQ predicate on the "Config" field.

func ConfigEqualFold added in v0.4.0

func ConfigEqualFold(v string) predicate.Service

ConfigEqualFold applies the EqualFold predicate on the "Config" field.

func ConfigGT added in v0.4.0

func ConfigGT(v string) predicate.Service

ConfigGT applies the GT predicate on the "Config" field.

func ConfigGTE added in v0.4.0

func ConfigGTE(v string) predicate.Service

ConfigGTE applies the GTE predicate on the "Config" field.

func ConfigHasPrefix added in v0.4.0

func ConfigHasPrefix(v string) predicate.Service

ConfigHasPrefix applies the HasPrefix predicate on the "Config" field.

func ConfigHasSuffix added in v0.4.0

func ConfigHasSuffix(v string) predicate.Service

ConfigHasSuffix applies the HasSuffix predicate on the "Config" field.

func ConfigIn added in v0.4.0

func ConfigIn(vs ...string) predicate.Service

ConfigIn applies the In predicate on the "Config" field.

func ConfigLT added in v0.4.0

func ConfigLT(v string) predicate.Service

ConfigLT applies the LT predicate on the "Config" field.

func ConfigLTE added in v0.4.0

func ConfigLTE(v string) predicate.Service

ConfigLTE applies the LTE predicate on the "Config" field.

func ConfigNEQ added in v0.4.0

func ConfigNEQ(v string) predicate.Service

ConfigNEQ applies the NEQ predicate on the "Config" field.

func ConfigNotIn added in v0.4.0

func ConfigNotIn(vs ...string) predicate.Service

ConfigNotIn applies the NotIn predicate on the "Config" field.

func HasEvents

func HasEvents() predicate.Service

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.Event) predicate.Service

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

func HasTag

func HasTag() predicate.Service

HasTag applies the HasEdge predicate on the "tag" edge.

func HasTagWith

func HasTagWith(preds ...predicate.Tag) predicate.Service

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

func ID

func ID(id int) predicate.Service

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Service

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Service

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Service

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Service

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Service

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Service

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsActivated

func IsActivated(v bool) predicate.Service

IsActivated applies equality check predicate on the "IsActivated" field. It's identical to IsActivatedEQ.

func IsActivatedEQ

func IsActivatedEQ(v bool) predicate.Service

IsActivatedEQ applies the EQ predicate on the "IsActivated" field.

func IsActivatedNEQ

func IsActivatedNEQ(v bool) predicate.Service

IsActivatedNEQ applies the NEQ predicate on the "IsActivated" field.

func Name

func Name(v string) predicate.Service

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

func NameContains

func NameContains(v string) predicate.Service

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

func NameContainsFold

func NameContainsFold(v string) predicate.Service

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

func NameEQ

func NameEQ(v string) predicate.Service

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

func NameEqualFold

func NameEqualFold(v string) predicate.Service

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

func NameGT

func NameGT(v string) predicate.Service

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

func NameGTE

func NameGTE(v string) predicate.Service

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Service

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Service

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Service

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

func NameLTE

func NameLTE(v string) predicate.Service

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

func NameNEQ

func NameNEQ(v string) predicate.Service

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Service) predicate.Service

Or groups list of predicates with the OR operator between them.

func PubKey

func PubKey(v string) predicate.Service

PubKey applies equality check predicate on the "PubKey" field. It's identical to PubKeyEQ.

func PubKeyContains

func PubKeyContains(v string) predicate.Service

PubKeyContains applies the Contains predicate on the "PubKey" field.

func PubKeyContainsFold

func PubKeyContainsFold(v string) predicate.Service

PubKeyContainsFold applies the ContainsFold predicate on the "PubKey" field.

func PubKeyEQ

func PubKeyEQ(v string) predicate.Service

PubKeyEQ applies the EQ predicate on the "PubKey" field.

func PubKeyEqualFold

func PubKeyEqualFold(v string) predicate.Service

PubKeyEqualFold applies the EqualFold predicate on the "PubKey" field.

func PubKeyGT

func PubKeyGT(v string) predicate.Service

PubKeyGT applies the GT predicate on the "PubKey" field.

func PubKeyGTE

func PubKeyGTE(v string) predicate.Service

PubKeyGTE applies the GTE predicate on the "PubKey" field.

func PubKeyHasPrefix

func PubKeyHasPrefix(v string) predicate.Service

PubKeyHasPrefix applies the HasPrefix predicate on the "PubKey" field.

func PubKeyHasSuffix

func PubKeyHasSuffix(v string) predicate.Service

PubKeyHasSuffix applies the HasSuffix predicate on the "PubKey" field.

func PubKeyIn

func PubKeyIn(vs ...string) predicate.Service

PubKeyIn applies the In predicate on the "PubKey" field.

func PubKeyLT

func PubKeyLT(v string) predicate.Service

PubKeyLT applies the LT predicate on the "PubKey" field.

func PubKeyLTE

func PubKeyLTE(v string) predicate.Service

PubKeyLTE applies the LTE predicate on the "PubKey" field.

func PubKeyNEQ

func PubKeyNEQ(v string) predicate.Service

PubKeyNEQ applies the NEQ predicate on the "PubKey" field.

func PubKeyNotIn

func PubKeyNotIn(vs ...string) predicate.Service

PubKeyNotIn applies the NotIn predicate on the "PubKey" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL