logevent

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the logevent type in the database.
	Label = "log_event"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTimestamp holds the string denoting the timestamp field in the database.
	FieldTimestamp = "timestamp"
	// FieldLevel holds the string denoting the level field in the database.
	FieldLevel = "level"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// Table holds the table name of the logevent in the database.
	Table = "log_events"
)

Variables

Columns holds all SQL columns for logevent fields.

Functions

func And

func And(predicates ...predicate.LogEvent) predicate.LogEvent

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.LogEvent

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.LogEvent

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.LogEvent

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.LogEvent

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.LogEvent

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.LogEvent

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.LogEvent

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Level

func Level(v int) predicate.LogEvent

Level applies equality check predicate on the "level" field. It's identical to LevelEQ.

func LevelEQ

func LevelEQ(v int) predicate.LogEvent

LevelEQ applies the EQ predicate on the "level" field.

func LevelGT

func LevelGT(v int) predicate.LogEvent

LevelGT applies the GT predicate on the "level" field.

func LevelGTE

func LevelGTE(v int) predicate.LogEvent

LevelGTE applies the GTE predicate on the "level" field.

func LevelIn

func LevelIn(vs ...int) predicate.LogEvent

LevelIn applies the In predicate on the "level" field.

func LevelLT

func LevelLT(v int) predicate.LogEvent

LevelLT applies the LT predicate on the "level" field.

func LevelLTE

func LevelLTE(v int) predicate.LogEvent

LevelLTE applies the LTE predicate on the "level" field.

func LevelNEQ

func LevelNEQ(v int) predicate.LogEvent

LevelNEQ applies the NEQ predicate on the "level" field.

func LevelNotIn

func LevelNotIn(vs ...int) predicate.LogEvent

LevelNotIn applies the NotIn predicate on the "level" field.

func Message

func Message(v string) predicate.LogEvent

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.LogEvent

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.LogEvent

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

func MessageEQ(v string) predicate.LogEvent

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.LogEvent

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

func MessageGT(v string) predicate.LogEvent

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v string) predicate.LogEvent

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.LogEvent

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.LogEvent

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

func MessageIn(vs ...string) predicate.LogEvent

MessageIn applies the In predicate on the "message" field.

func MessageLT

func MessageLT(v string) predicate.LogEvent

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v string) predicate.LogEvent

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v string) predicate.LogEvent

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

func MessageNotIn(vs ...string) predicate.LogEvent

MessageNotIn applies the NotIn predicate on the "message" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.LogEvent) predicate.LogEvent

Or groups predicates with the OR operator between them.

func Timestamp

func Timestamp(v time.Time) predicate.LogEvent

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.LogEvent

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.LogEvent

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.LogEvent

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.LogEvent

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.LogEvent

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.LogEvent

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.LogEvent

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.LogEvent

TimestampNotIn applies the NotIn predicate on the "timestamp" 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