Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.LogEvent) predicate.LogEvent
- func ID(id int) predicate.LogEvent
- func IDEQ(id int) predicate.LogEvent
- func IDGT(id int) predicate.LogEvent
- func IDGTE(id int) predicate.LogEvent
- func IDIn(ids ...int) predicate.LogEvent
- func IDLT(id int) predicate.LogEvent
- func IDLTE(id int) predicate.LogEvent
- func IDNEQ(id int) predicate.LogEvent
- func IDNotIn(ids ...int) predicate.LogEvent
- func Level(v int) predicate.LogEvent
- func LevelEQ(v int) predicate.LogEvent
- func LevelGT(v int) predicate.LogEvent
- func LevelGTE(v int) predicate.LogEvent
- func LevelIn(vs ...int) predicate.LogEvent
- func LevelLT(v int) predicate.LogEvent
- func LevelLTE(v int) predicate.LogEvent
- func LevelNEQ(v int) predicate.LogEvent
- func LevelNotIn(vs ...int) predicate.LogEvent
- func Message(v string) predicate.LogEvent
- func MessageContains(v string) predicate.LogEvent
- func MessageContainsFold(v string) predicate.LogEvent
- func MessageEQ(v string) predicate.LogEvent
- func MessageEqualFold(v string) predicate.LogEvent
- func MessageGT(v string) predicate.LogEvent
- func MessageGTE(v string) predicate.LogEvent
- func MessageHasPrefix(v string) predicate.LogEvent
- func MessageHasSuffix(v string) predicate.LogEvent
- func MessageIn(vs ...string) predicate.LogEvent
- func MessageLT(v string) predicate.LogEvent
- func MessageLTE(v string) predicate.LogEvent
- func MessageNEQ(v string) predicate.LogEvent
- func MessageNotIn(vs ...string) predicate.LogEvent
- func Not(p predicate.LogEvent) predicate.LogEvent
- func Or(predicates ...predicate.LogEvent) predicate.LogEvent
- func Timestamp(v time.Time) predicate.LogEvent
- func TimestampEQ(v time.Time) predicate.LogEvent
- func TimestampGT(v time.Time) predicate.LogEvent
- func TimestampGTE(v time.Time) predicate.LogEvent
- func TimestampIn(vs ...time.Time) predicate.LogEvent
- func TimestampLT(v time.Time) predicate.LogEvent
- func TimestampLTE(v time.Time) predicate.LogEvent
- func TimestampNEQ(v time.Time) predicate.LogEvent
- func TimestampNotIn(vs ...time.Time) predicate.LogEvent
- func ValidColumn(column string) bool
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldTimestamp, FieldLevel, FieldMessage, }
Columns holds all SQL columns for logevent fields.
Functions ¶
func Level ¶
Level applies equality check predicate on the "level" field. It's identical to LevelEQ.
func LevelNotIn ¶
LevelNotIn applies the NotIn predicate on the "level" field.
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.