metric

package
v1.6.3-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// FieldGeneratedType holds the string denoting the generated_type field in the database.
	FieldGeneratedType = "generated_type"
	// FieldGeneratedBy holds the string denoting the generated_by field in the database.
	FieldGeneratedBy = "generated_by"
	// FieldReceivedAt holds the string denoting the received_at field in the database.
	FieldReceivedAt = "received_at"
	// FieldPushedAt holds the string denoting the pushed_at field in the database.
	FieldPushedAt = "pushed_at"
	// FieldPayload holds the string denoting the payload field in the database.
	FieldPayload = "payload"
	// Table holds the table name of the metric in the database.
	Table = "metrics"
)

Variables

Columns holds all SQL columns for metric fields.

Functions

func And

func And(predicates ...predicate.Metric) predicate.Metric

And groups predicates with the AND operator between them.

func GeneratedBy

func GeneratedBy(v string) predicate.Metric

GeneratedBy applies equality check predicate on the "generated_by" field. It's identical to GeneratedByEQ.

func GeneratedByContains

func GeneratedByContains(v string) predicate.Metric

GeneratedByContains applies the Contains predicate on the "generated_by" field.

func GeneratedByContainsFold

func GeneratedByContainsFold(v string) predicate.Metric

GeneratedByContainsFold applies the ContainsFold predicate on the "generated_by" field.

func GeneratedByEQ

func GeneratedByEQ(v string) predicate.Metric

GeneratedByEQ applies the EQ predicate on the "generated_by" field.

func GeneratedByEqualFold

func GeneratedByEqualFold(v string) predicate.Metric

GeneratedByEqualFold applies the EqualFold predicate on the "generated_by" field.

func GeneratedByGT

func GeneratedByGT(v string) predicate.Metric

GeneratedByGT applies the GT predicate on the "generated_by" field.

func GeneratedByGTE

func GeneratedByGTE(v string) predicate.Metric

GeneratedByGTE applies the GTE predicate on the "generated_by" field.

func GeneratedByHasPrefix

func GeneratedByHasPrefix(v string) predicate.Metric

GeneratedByHasPrefix applies the HasPrefix predicate on the "generated_by" field.

func GeneratedByHasSuffix

func GeneratedByHasSuffix(v string) predicate.Metric

GeneratedByHasSuffix applies the HasSuffix predicate on the "generated_by" field.

func GeneratedByIn

func GeneratedByIn(vs ...string) predicate.Metric

GeneratedByIn applies the In predicate on the "generated_by" field.

func GeneratedByLT

func GeneratedByLT(v string) predicate.Metric

GeneratedByLT applies the LT predicate on the "generated_by" field.

func GeneratedByLTE

func GeneratedByLTE(v string) predicate.Metric

GeneratedByLTE applies the LTE predicate on the "generated_by" field.

func GeneratedByNEQ

func GeneratedByNEQ(v string) predicate.Metric

GeneratedByNEQ applies the NEQ predicate on the "generated_by" field.

func GeneratedByNotIn

func GeneratedByNotIn(vs ...string) predicate.Metric

GeneratedByNotIn applies the NotIn predicate on the "generated_by" field.

func GeneratedTypeEQ

func GeneratedTypeEQ(v GeneratedType) predicate.Metric

GeneratedTypeEQ applies the EQ predicate on the "generated_type" field.

func GeneratedTypeIn

func GeneratedTypeIn(vs ...GeneratedType) predicate.Metric

GeneratedTypeIn applies the In predicate on the "generated_type" field.

func GeneratedTypeNEQ

func GeneratedTypeNEQ(v GeneratedType) predicate.Metric

GeneratedTypeNEQ applies the NEQ predicate on the "generated_type" field.

func GeneratedTypeNotIn

func GeneratedTypeNotIn(vs ...GeneratedType) predicate.Metric

GeneratedTypeNotIn applies the NotIn predicate on the "generated_type" field.

func GeneratedTypeValidator

func GeneratedTypeValidator(gt GeneratedType) error

GeneratedTypeValidator is a validator for the "generated_type" field enum values. It is called by the builders before save.

func ID

func ID(id int) predicate.Metric

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Metric

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Metric

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Metric

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Metric

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Metric

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Metric

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Metric) predicate.Metric

Or groups predicates with the OR operator between them.

func Payload

func Payload(v string) predicate.Metric

Payload applies equality check predicate on the "payload" field. It's identical to PayloadEQ.

func PayloadContains

func PayloadContains(v string) predicate.Metric

PayloadContains applies the Contains predicate on the "payload" field.

func PayloadContainsFold

func PayloadContainsFold(v string) predicate.Metric

PayloadContainsFold applies the ContainsFold predicate on the "payload" field.

func PayloadEQ

func PayloadEQ(v string) predicate.Metric

PayloadEQ applies the EQ predicate on the "payload" field.

func PayloadEqualFold

func PayloadEqualFold(v string) predicate.Metric

PayloadEqualFold applies the EqualFold predicate on the "payload" field.

func PayloadGT

func PayloadGT(v string) predicate.Metric

PayloadGT applies the GT predicate on the "payload" field.

func PayloadGTE

func PayloadGTE(v string) predicate.Metric

PayloadGTE applies the GTE predicate on the "payload" field.

func PayloadHasPrefix

func PayloadHasPrefix(v string) predicate.Metric

PayloadHasPrefix applies the HasPrefix predicate on the "payload" field.

func PayloadHasSuffix

func PayloadHasSuffix(v string) predicate.Metric

PayloadHasSuffix applies the HasSuffix predicate on the "payload" field.

func PayloadIn

func PayloadIn(vs ...string) predicate.Metric

PayloadIn applies the In predicate on the "payload" field.

func PayloadLT

func PayloadLT(v string) predicate.Metric

PayloadLT applies the LT predicate on the "payload" field.

func PayloadLTE

func PayloadLTE(v string) predicate.Metric

PayloadLTE applies the LTE predicate on the "payload" field.

func PayloadNEQ

func PayloadNEQ(v string) predicate.Metric

PayloadNEQ applies the NEQ predicate on the "payload" field.

func PayloadNotIn

func PayloadNotIn(vs ...string) predicate.Metric

PayloadNotIn applies the NotIn predicate on the "payload" field.

func PushedAt

func PushedAt(v time.Time) predicate.Metric

PushedAt applies equality check predicate on the "pushed_at" field. It's identical to PushedAtEQ.

func PushedAtEQ

func PushedAtEQ(v time.Time) predicate.Metric

PushedAtEQ applies the EQ predicate on the "pushed_at" field.

func PushedAtGT

func PushedAtGT(v time.Time) predicate.Metric

PushedAtGT applies the GT predicate on the "pushed_at" field.

func PushedAtGTE

func PushedAtGTE(v time.Time) predicate.Metric

PushedAtGTE applies the GTE predicate on the "pushed_at" field.

func PushedAtIn

func PushedAtIn(vs ...time.Time) predicate.Metric

PushedAtIn applies the In predicate on the "pushed_at" field.

func PushedAtIsNil

func PushedAtIsNil() predicate.Metric

PushedAtIsNil applies the IsNil predicate on the "pushed_at" field.

func PushedAtLT

func PushedAtLT(v time.Time) predicate.Metric

PushedAtLT applies the LT predicate on the "pushed_at" field.

func PushedAtLTE

func PushedAtLTE(v time.Time) predicate.Metric

PushedAtLTE applies the LTE predicate on the "pushed_at" field.

func PushedAtNEQ

func PushedAtNEQ(v time.Time) predicate.Metric

PushedAtNEQ applies the NEQ predicate on the "pushed_at" field.

func PushedAtNotIn

func PushedAtNotIn(vs ...time.Time) predicate.Metric

PushedAtNotIn applies the NotIn predicate on the "pushed_at" field.

func PushedAtNotNil

func PushedAtNotNil() predicate.Metric

PushedAtNotNil applies the NotNil predicate on the "pushed_at" field.

func ReceivedAt

func ReceivedAt(v time.Time) predicate.Metric

ReceivedAt applies equality check predicate on the "received_at" field. It's identical to ReceivedAtEQ.

func ReceivedAtEQ

func ReceivedAtEQ(v time.Time) predicate.Metric

ReceivedAtEQ applies the EQ predicate on the "received_at" field.

func ReceivedAtGT

func ReceivedAtGT(v time.Time) predicate.Metric

ReceivedAtGT applies the GT predicate on the "received_at" field.

func ReceivedAtGTE

func ReceivedAtGTE(v time.Time) predicate.Metric

ReceivedAtGTE applies the GTE predicate on the "received_at" field.

func ReceivedAtIn

func ReceivedAtIn(vs ...time.Time) predicate.Metric

ReceivedAtIn applies the In predicate on the "received_at" field.

func ReceivedAtLT

func ReceivedAtLT(v time.Time) predicate.Metric

ReceivedAtLT applies the LT predicate on the "received_at" field.

func ReceivedAtLTE

func ReceivedAtLTE(v time.Time) predicate.Metric

ReceivedAtLTE applies the LTE predicate on the "received_at" field.

func ReceivedAtNEQ

func ReceivedAtNEQ(v time.Time) predicate.Metric

ReceivedAtNEQ applies the NEQ predicate on the "received_at" field.

func ReceivedAtNotIn

func ReceivedAtNotIn(vs ...time.Time) predicate.Metric

ReceivedAtNotIn applies the NotIn predicate on the "received_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type GeneratedType

type GeneratedType string

GeneratedType defines the type for the "generated_type" enum field.

const (
	GeneratedTypeLP GeneratedType = "LP"
	GeneratedTypeRC GeneratedType = "RC"
)

GeneratedType values.

func (GeneratedType) String

func (gt GeneratedType) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Metric queries.

func ByGeneratedBy

func ByGeneratedBy(opts ...sql.OrderTermOption) OrderOption

ByGeneratedBy orders the results by the generated_by field.

func ByGeneratedType

func ByGeneratedType(opts ...sql.OrderTermOption) OrderOption

ByGeneratedType orders the results by the generated_type field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByPayload

func ByPayload(opts ...sql.OrderTermOption) OrderOption

ByPayload orders the results by the payload field.

func ByPushedAt

func ByPushedAt(opts ...sql.OrderTermOption) OrderOption

ByPushedAt orders the results by the pushed_at field.

func ByReceivedAt

func ByReceivedAt(opts ...sql.OrderTermOption) OrderOption

ByReceivedAt orders the results by the received_at field.

Jump to

Keyboard shortcuts

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