Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Metric) predicate.Metric
- func GeneratedBy(v string) predicate.Metric
- func GeneratedByContains(v string) predicate.Metric
- func GeneratedByContainsFold(v string) predicate.Metric
- func GeneratedByEQ(v string) predicate.Metric
- func GeneratedByEqualFold(v string) predicate.Metric
- func GeneratedByGT(v string) predicate.Metric
- func GeneratedByGTE(v string) predicate.Metric
- func GeneratedByHasPrefix(v string) predicate.Metric
- func GeneratedByHasSuffix(v string) predicate.Metric
- func GeneratedByIn(vs ...string) predicate.Metric
- func GeneratedByLT(v string) predicate.Metric
- func GeneratedByLTE(v string) predicate.Metric
- func GeneratedByNEQ(v string) predicate.Metric
- func GeneratedByNotIn(vs ...string) predicate.Metric
- func GeneratedTypeEQ(v GeneratedType) predicate.Metric
- func GeneratedTypeIn(vs ...GeneratedType) predicate.Metric
- func GeneratedTypeNEQ(v GeneratedType) predicate.Metric
- func GeneratedTypeNotIn(vs ...GeneratedType) predicate.Metric
- func GeneratedTypeValidator(gt GeneratedType) error
- 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 Payload(v string) predicate.Metric
- func PayloadContains(v string) predicate.Metric
- func PayloadContainsFold(v string) predicate.Metric
- func PayloadEQ(v string) predicate.Metric
- func PayloadEqualFold(v string) predicate.Metric
- func PayloadGT(v string) predicate.Metric
- func PayloadGTE(v string) predicate.Metric
- func PayloadHasPrefix(v string) predicate.Metric
- func PayloadHasSuffix(v string) predicate.Metric
- func PayloadIn(vs ...string) predicate.Metric
- func PayloadLT(v string) predicate.Metric
- func PayloadLTE(v string) predicate.Metric
- func PayloadNEQ(v string) predicate.Metric
- func PayloadNotIn(vs ...string) predicate.Metric
- func PushedAt(v time.Time) predicate.Metric
- func PushedAtEQ(v time.Time) predicate.Metric
- func PushedAtGT(v time.Time) predicate.Metric
- func PushedAtGTE(v time.Time) predicate.Metric
- func PushedAtIn(vs ...time.Time) predicate.Metric
- func PushedAtIsNil() predicate.Metric
- func PushedAtLT(v time.Time) predicate.Metric
- func PushedAtLTE(v time.Time) predicate.Metric
- func PushedAtNEQ(v time.Time) predicate.Metric
- func PushedAtNotIn(vs ...time.Time) predicate.Metric
- func PushedAtNotNil() predicate.Metric
- func ReceivedAt(v time.Time) predicate.Metric
- func ReceivedAtEQ(v time.Time) predicate.Metric
- func ReceivedAtGT(v time.Time) predicate.Metric
- func ReceivedAtGTE(v time.Time) predicate.Metric
- func ReceivedAtIn(vs ...time.Time) predicate.Metric
- func ReceivedAtLT(v time.Time) predicate.Metric
- func ReceivedAtLTE(v time.Time) predicate.Metric
- func ReceivedAtNEQ(v time.Time) predicate.Metric
- func ReceivedAtNotIn(vs ...time.Time) predicate.Metric
- func ValidColumn(column string) bool
- type GeneratedType
- type OrderOption
- func ByGeneratedBy(opts ...sql.OrderTermOption) OrderOption
- func ByGeneratedType(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPayload(opts ...sql.OrderTermOption) OrderOption
- func ByPushedAt(opts ...sql.OrderTermOption) OrderOption
- func ByReceivedAt(opts ...sql.OrderTermOption) OrderOption
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" // 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 ¶
var Columns = []string{ FieldID, FieldGeneratedType, FieldGeneratedBy, FieldReceivedAt, FieldPushedAt, FieldPayload, }
Columns holds all SQL columns for metric fields.
Functions ¶
func GeneratedBy ¶
GeneratedBy applies equality check predicate on the "generated_by" field. It's identical to GeneratedByEQ.
func GeneratedByContains ¶
GeneratedByContains applies the Contains predicate on the "generated_by" field.
func GeneratedByContainsFold ¶
GeneratedByContainsFold applies the ContainsFold predicate on the "generated_by" field.
func GeneratedByEQ ¶
GeneratedByEQ applies the EQ predicate on the "generated_by" field.
func GeneratedByEqualFold ¶
GeneratedByEqualFold applies the EqualFold predicate on the "generated_by" field.
func GeneratedByGT ¶
GeneratedByGT applies the GT predicate on the "generated_by" field.
func GeneratedByGTE ¶
GeneratedByGTE applies the GTE predicate on the "generated_by" field.
func GeneratedByHasPrefix ¶
GeneratedByHasPrefix applies the HasPrefix predicate on the "generated_by" field.
func GeneratedByHasSuffix ¶
GeneratedByHasSuffix applies the HasSuffix predicate on the "generated_by" field.
func GeneratedByIn ¶
GeneratedByIn applies the In predicate on the "generated_by" field.
func GeneratedByLT ¶
GeneratedByLT applies the LT predicate on the "generated_by" field.
func GeneratedByLTE ¶
GeneratedByLTE applies the LTE predicate on the "generated_by" field.
func GeneratedByNEQ ¶
GeneratedByNEQ applies the NEQ predicate on the "generated_by" field.
func GeneratedByNotIn ¶
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 Payload ¶
Payload applies equality check predicate on the "payload" field. It's identical to PayloadEQ.
func PayloadContains ¶
PayloadContains applies the Contains predicate on the "payload" field.
func PayloadContainsFold ¶
PayloadContainsFold applies the ContainsFold predicate on the "payload" field.
func PayloadEqualFold ¶
PayloadEqualFold applies the EqualFold predicate on the "payload" field.
func PayloadGTE ¶
PayloadGTE applies the GTE predicate on the "payload" field.
func PayloadHasPrefix ¶
PayloadHasPrefix applies the HasPrefix predicate on the "payload" field.
func PayloadHasSuffix ¶
PayloadHasSuffix applies the HasSuffix predicate on the "payload" field.
func PayloadLTE ¶
PayloadLTE applies the LTE predicate on the "payload" field.
func PayloadNEQ ¶
PayloadNEQ applies the NEQ predicate on the "payload" field.
func PayloadNotIn ¶
PayloadNotIn applies the NotIn predicate on the "payload" field.
func PushedAt ¶
PushedAt applies equality check predicate on the "pushed_at" field. It's identical to PushedAtEQ.
func PushedAtEQ ¶
PushedAtEQ applies the EQ predicate on the "pushed_at" field.
func PushedAtGT ¶
PushedAtGT applies the GT predicate on the "pushed_at" field.
func PushedAtGTE ¶
PushedAtGTE applies the GTE predicate on the "pushed_at" field.
func PushedAtIn ¶
PushedAtIn applies the In predicate on the "pushed_at" field.
func PushedAtIsNil ¶
PushedAtIsNil applies the IsNil predicate on the "pushed_at" field.
func PushedAtLT ¶
PushedAtLT applies the LT predicate on the "pushed_at" field.
func PushedAtLTE ¶
PushedAtLTE applies the LTE predicate on the "pushed_at" field.
func PushedAtNEQ ¶
PushedAtNEQ applies the NEQ predicate on the "pushed_at" field.
func PushedAtNotIn ¶
PushedAtNotIn applies the NotIn predicate on the "pushed_at" field.
func PushedAtNotNil ¶
PushedAtNotNil applies the NotNil predicate on the "pushed_at" field.
func ReceivedAt ¶
ReceivedAt applies equality check predicate on the "received_at" field. It's identical to ReceivedAtEQ.
func ReceivedAtEQ ¶
ReceivedAtEQ applies the EQ predicate on the "received_at" field.
func ReceivedAtGT ¶
ReceivedAtGT applies the GT predicate on the "received_at" field.
func ReceivedAtGTE ¶
ReceivedAtGTE applies the GTE predicate on the "received_at" field.
func ReceivedAtIn ¶
ReceivedAtIn applies the In predicate on the "received_at" field.
func ReceivedAtLT ¶
ReceivedAtLT applies the LT predicate on the "received_at" field.
func ReceivedAtLTE ¶
ReceivedAtLTE applies the LTE predicate on the "received_at" field.
func ReceivedAtNEQ ¶
ReceivedAtNEQ applies the NEQ predicate on the "received_at" field.
func ReceivedAtNotIn ¶
ReceivedAtNotIn applies the NotIn predicate on the "received_at" field.
func ValidColumn ¶
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 ¶
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.