metricname

package
v0.0.0-...-5f03dfb Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the metricname type in the database.
	Label = "metric_name"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldHelp holds the string denoting the help field in the database.
	FieldHelp = "help"
	// FieldTypeId holds the string denoting the typeid field in the database.
	FieldTypeId = "type_id"
	// EdgeMetrics holds the string denoting the metrics edge name in mutations.
	EdgeMetrics = "metrics"
	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"
	// EdgeOwners holds the string denoting the owners edge name in mutations.
	EdgeOwners = "owners"
	// Table holds the table name of the metricname in the database.
	Table = "metricNames"
	// MetricsTable is the table that holds the metrics relation/edge.
	MetricsTable = "metrics"
	// MetricsInverseTable is the table name for the Metric entity.
	// It exists in this package in order to avoid circular dependency with the "metric" package.
	MetricsInverseTable = "metrics"
	// MetricsColumn is the table column denoting the metrics relation/edge.
	MetricsColumn = "metric_name_metrics"
	// EventsTable is the table that 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 = "metric_name_events"
	// OwnersTable is the table that holds the owners relation/edge.
	OwnersTable = "metricNames"
	// OwnersInverseTable is the table name for the MetricType entity.
	// It exists in this package in order to avoid circular dependency with the "metrictype" package.
	OwnersInverseTable = "metricTypes"
	// OwnersColumn is the table column denoting the owners relation/edge.
	OwnersColumn = "metric_type_metric_names"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultDeletedAt holds the default value on creation for the "deleted_at" field.
	DefaultDeletedAt func() time.Time
	// UpdateDefaultDeletedAt holds the default value on update for the "deleted_at" field.
	UpdateDefaultDeletedAt func() time.Time
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
)

Columns holds all SQL columns for metricname fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "metricNames" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.MetricName) predicate.MetricName

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.MetricName

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.MetricName

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.MetricName

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.MetricName

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.MetricName

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.MetricName

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.MetricName

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.MetricName

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.MetricName

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.MetricName

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.MetricName

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.MetricName

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.MetricName

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.MetricName

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.MetricName

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.MetricName

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.MetricName

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.MetricName

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func HasEvents

func HasEvents() predicate.MetricName

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

func HasEventsWith

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

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

func HasMetrics

func HasMetrics() predicate.MetricName

HasMetrics applies the HasEdge predicate on the "metrics" edge.

func HasMetricsWith

func HasMetricsWith(preds ...predicate.Metric) predicate.MetricName

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

func HasOwners

func HasOwners() predicate.MetricName

HasOwners applies the HasEdge predicate on the "owners" edge.

func HasOwnersWith

func HasOwnersWith(preds ...predicate.MetricType) predicate.MetricName

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

func Help

func Help(v string) predicate.MetricName

Help applies equality check predicate on the "help" field. It's identical to HelpEQ.

func HelpContains

func HelpContains(v string) predicate.MetricName

HelpContains applies the Contains predicate on the "help" field.

func HelpContainsFold

func HelpContainsFold(v string) predicate.MetricName

HelpContainsFold applies the ContainsFold predicate on the "help" field.

func HelpEQ

func HelpEQ(v string) predicate.MetricName

HelpEQ applies the EQ predicate on the "help" field.

func HelpEqualFold

func HelpEqualFold(v string) predicate.MetricName

HelpEqualFold applies the EqualFold predicate on the "help" field.

func HelpGT

func HelpGT(v string) predicate.MetricName

HelpGT applies the GT predicate on the "help" field.

func HelpGTE

func HelpGTE(v string) predicate.MetricName

HelpGTE applies the GTE predicate on the "help" field.

func HelpHasPrefix

func HelpHasPrefix(v string) predicate.MetricName

HelpHasPrefix applies the HasPrefix predicate on the "help" field.

func HelpHasSuffix

func HelpHasSuffix(v string) predicate.MetricName

HelpHasSuffix applies the HasSuffix predicate on the "help" field.

func HelpIn

func HelpIn(vs ...string) predicate.MetricName

HelpIn applies the In predicate on the "help" field.

func HelpLT

func HelpLT(v string) predicate.MetricName

HelpLT applies the LT predicate on the "help" field.

func HelpLTE

func HelpLTE(v string) predicate.MetricName

HelpLTE applies the LTE predicate on the "help" field.

func HelpNEQ

func HelpNEQ(v string) predicate.MetricName

HelpNEQ applies the NEQ predicate on the "help" field.

func HelpNotIn

func HelpNotIn(vs ...string) predicate.MetricName

HelpNotIn applies the NotIn predicate on the "help" field.

func ID

func ID(id uint) predicate.MetricName

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint) predicate.MetricName

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint) predicate.MetricName

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint) predicate.MetricName

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint) predicate.MetricName

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint) predicate.MetricName

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint) predicate.MetricName

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint) predicate.MetricName

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint) predicate.MetricName

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.MetricName

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

func NameContains

func NameContains(v string) predicate.MetricName

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

func NameContainsFold

func NameContainsFold(v string) predicate.MetricName

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

func NameEQ

func NameEQ(v string) predicate.MetricName

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

func NameEqualFold

func NameEqualFold(v string) predicate.MetricName

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

func NameGT

func NameGT(v string) predicate.MetricName

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

func NameGTE

func NameGTE(v string) predicate.MetricName

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.MetricName

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.MetricName

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.MetricName

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

func NameLTE

func NameLTE(v string) predicate.MetricName

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

func NameNEQ

func NameNEQ(v string) predicate.MetricName

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

func NameNotIn

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

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.MetricName) predicate.MetricName

Or groups predicates with the OR operator between them.

func TypeId

func TypeId(v uint) predicate.MetricName

TypeId applies equality check predicate on the "typeId" field. It's identical to TypeIdEQ.

func TypeIdEQ

func TypeIdEQ(v uint) predicate.MetricName

TypeIdEQ applies the EQ predicate on the "typeId" field.

func TypeIdGT

func TypeIdGT(v uint) predicate.MetricName

TypeIdGT applies the GT predicate on the "typeId" field.

func TypeIdGTE

func TypeIdGTE(v uint) predicate.MetricName

TypeIdGTE applies the GTE predicate on the "typeId" field.

func TypeIdIn

func TypeIdIn(vs ...uint) predicate.MetricName

TypeIdIn applies the In predicate on the "typeId" field.

func TypeIdLT

func TypeIdLT(v uint) predicate.MetricName

TypeIdLT applies the LT predicate on the "typeId" field.

func TypeIdLTE

func TypeIdLTE(v uint) predicate.MetricName

TypeIdLTE applies the LTE predicate on the "typeId" field.

func TypeIdNEQ

func TypeIdNEQ(v uint) predicate.MetricName

TypeIdNEQ applies the NEQ predicate on the "typeId" field.

func TypeIdNotIn

func TypeIdNotIn(vs ...uint) predicate.MetricName

TypeIdNotIn applies the NotIn predicate on the "typeId" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.MetricName

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.MetricName

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.MetricName

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.MetricName

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.MetricName

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.MetricName

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.MetricName

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.MetricName

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.MetricName

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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