Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Metric) predicate.Metric
- func HasCounters() predicate.Metric
- func HasCountersWith(preds ...predicate.Counter) predicate.Metric
- func HasGauges() predicate.Metric
- func HasGaugesWith(preds ...predicate.Gauge) predicate.Metric
- func HasGraph() predicate.Metric
- func HasGraphWith(preds ...predicate.Graph) predicate.Metric
- func HasHistograms() predicate.Metric
- func HasHistogramsWith(preds ...predicate.Histogram) predicate.Metric
- func ID(id int) predicate.Metric
- func IDEQ(id int) predicate.Metric
- func IDGT(id int) predicate.Metric
- func IDGTE(id int) predicate.Metric
- func IDIn(ids ...int) predicate.Metric
- func IDLT(id int) predicate.Metric
- func IDLTE(id int) predicate.Metric
- func IDNEQ(id int) predicate.Metric
- func IDNotIn(ids ...int) predicate.Metric
- func Not(p predicate.Metric) predicate.Metric
- func Or(predicates ...predicate.Metric) predicate.Metric
- func Title(v string) predicate.Metric
- func TitleContains(v string) predicate.Metric
- func TitleContainsFold(v string) predicate.Metric
- func TitleEQ(v string) predicate.Metric
- func TitleEqualFold(v string) predicate.Metric
- func TitleGT(v string) predicate.Metric
- func TitleGTE(v string) predicate.Metric
- func TitleHasPrefix(v string) predicate.Metric
- func TitleHasSuffix(v string) predicate.Metric
- func TitleIn(vs ...string) predicate.Metric
- func TitleLT(v string) predicate.Metric
- func TitleLTE(v string) predicate.Metric
- func TitleNEQ(v string) predicate.Metric
- func TitleNotIn(vs ...string) predicate.Metric
- func Type(v string) predicate.Metric
- func TypeContains(v string) predicate.Metric
- func TypeContainsFold(v string) predicate.Metric
- func TypeEQ(v string) predicate.Metric
- func TypeEqualFold(v string) predicate.Metric
- func TypeGT(v string) predicate.Metric
- func TypeGTE(v string) predicate.Metric
- func TypeHasPrefix(v string) predicate.Metric
- func TypeHasSuffix(v string) predicate.Metric
- func TypeIn(vs ...string) predicate.Metric
- func TypeLT(v string) predicate.Metric
- func TypeLTE(v string) predicate.Metric
- func TypeNEQ(v string) predicate.Metric
- func TypeNotIn(vs ...string) predicate.Metric
Constants ¶
const ( // Label holds the string label denoting the metric type in the database. Label = "metric" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title vertex property in the database. FieldTitle = "title" // FieldType holds the string denoting the type vertex property in the database. FieldType = "type" // EdgeGraph holds the string denoting the graph edge name in mutations. EdgeGraph = "graph" // EdgeHistograms holds the string denoting the histograms edge name in mutations. EdgeHistograms = "histograms" // EdgeCounters holds the string denoting the counters edge name in mutations. EdgeCounters = "counters" // EdgeGauges holds the string denoting the gauges edge name in mutations. EdgeGauges = "gauges" // Table holds the table name of the metric in the database. Table = "metrics" // GraphTable is the table the holds the graph relation/edge. GraphTable = "metrics" // GraphInverseTable is the table name for the Graph entity. // It exists in this package in order to avoid circular dependency with the "graph" package. GraphInverseTable = "graphs" // GraphColumn is the table column denoting the graph relation/edge. GraphColumn = "graph_metrics" // HistogramsTable is the table the holds the histograms relation/edge. HistogramsTable = "histograms" // HistogramsInverseTable is the table name for the Histogram entity. // It exists in this package in order to avoid circular dependency with the "histogram" package. HistogramsInverseTable = "histograms" // HistogramsColumn is the table column denoting the histograms relation/edge. HistogramsColumn = "metric_histograms" // CountersTable is the table the holds the counters relation/edge. CountersTable = "counters" // CountersInverseTable is the table name for the Counter entity. // It exists in this package in order to avoid circular dependency with the "counter" package. CountersInverseTable = "counters" // CountersColumn is the table column denoting the counters relation/edge. CountersColumn = "metric_counters" // GaugesTable is the table the holds the gauges relation/edge. GaugesTable = "gauges" // GaugesInverseTable is the table name for the Gauge entity. // It exists in this package in order to avoid circular dependency with the "gauge" package. GaugesInverseTable = "gauges" // GaugesColumn is the table column denoting the gauges relation/edge. GaugesColumn = "metric_gauges" )
Variables ¶
var Columns = []string{ FieldID, FieldTitle, FieldType, }
Columns holds all SQL columns for metric fields.
var ForeignKeys = []string{
"graph_metrics",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Metric type.
Functions ¶
func HasCounters ¶
HasCounters applies the HasEdge predicate on the "counters" edge.
func HasCountersWith ¶
HasCountersWith applies the HasEdge predicate on the "counters" edge with a given conditions (other predicates).
func HasGaugesWith ¶
HasGaugesWith applies the HasEdge predicate on the "gauges" edge with a given conditions (other predicates).
func HasGraphWith ¶
HasGraphWith applies the HasEdge predicate on the "graph" edge with a given conditions (other predicates).
func HasHistograms ¶
HasHistograms applies the HasEdge predicate on the "histograms" edge.
func HasHistogramsWith ¶
HasHistogramsWith applies the HasEdge predicate on the "histograms" edge with a given conditions (other predicates).
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
Types ¶
This section is empty.