message

package
v0.0.0-...-a9b63ba Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the message type in the database.
	Label = "message"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldAction holds the string denoting the action field in the database.
	FieldAction = "action"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldAutoRemove holds the string denoting the auto_remove field in the database.
	FieldAutoRemove = "auto_remove"
	// FieldAutoRemoveTime holds the string denoting the auto_remove_time field in the database.
	FieldAutoRemoveTime = "auto_remove_time"
	// FieldEnable holds the string denoting the enable field in the database.
	FieldEnable = "enable"
	// Table holds the table name of the message in the database.
	Table = "messages"
)

Variables

View Source
var (
	// DefaultType holds the default value on creation for the "type" field.
	DefaultType int
	// DefaultMessage holds the default value on creation for the "message" field.
	DefaultMessage string
	// DefaultAutoRemove holds the default value on creation for the "auto_remove" field.
	DefaultAutoRemove bool
	// DefaultAutoRemoveTime holds the default value on creation for the "auto_remove_time" field.
	DefaultAutoRemoveTime int
	// DefaultEnable holds the default value on creation for the "enable" field.
	DefaultEnable bool
)

Columns holds all SQL columns for message fields.

Functions

func ActionEQ

func ActionEQ(v Action) predicate.Message

ActionEQ applies the EQ predicate on the "action" field.

func ActionIn

func ActionIn(vs ...Action) predicate.Message

ActionIn applies the In predicate on the "action" field.

func ActionNEQ

func ActionNEQ(v Action) predicate.Message

ActionNEQ applies the NEQ predicate on the "action" field.

func ActionNotIn

func ActionNotIn(vs ...Action) predicate.Message

ActionNotIn applies the NotIn predicate on the "action" field.

func ActionValidator

func ActionValidator(a Action) error

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

func And

func And(predicates ...predicate.Message) predicate.Message

And groups predicates with the AND operator between them.

func AutoRemove

func AutoRemove(v bool) predicate.Message

AutoRemove applies equality check predicate on the "auto_remove" field. It's identical to AutoRemoveEQ.

func AutoRemoveEQ

func AutoRemoveEQ(v bool) predicate.Message

AutoRemoveEQ applies the EQ predicate on the "auto_remove" field.

func AutoRemoveNEQ

func AutoRemoveNEQ(v bool) predicate.Message

AutoRemoveNEQ applies the NEQ predicate on the "auto_remove" field.

func AutoRemoveTime

func AutoRemoveTime(v int) predicate.Message

AutoRemoveTime applies equality check predicate on the "auto_remove_time" field. It's identical to AutoRemoveTimeEQ.

func AutoRemoveTimeEQ

func AutoRemoveTimeEQ(v int) predicate.Message

AutoRemoveTimeEQ applies the EQ predicate on the "auto_remove_time" field.

func AutoRemoveTimeGT

func AutoRemoveTimeGT(v int) predicate.Message

AutoRemoveTimeGT applies the GT predicate on the "auto_remove_time" field.

func AutoRemoveTimeGTE

func AutoRemoveTimeGTE(v int) predicate.Message

AutoRemoveTimeGTE applies the GTE predicate on the "auto_remove_time" field.

func AutoRemoveTimeIn

func AutoRemoveTimeIn(vs ...int) predicate.Message

AutoRemoveTimeIn applies the In predicate on the "auto_remove_time" field.

func AutoRemoveTimeLT

func AutoRemoveTimeLT(v int) predicate.Message

AutoRemoveTimeLT applies the LT predicate on the "auto_remove_time" field.

func AutoRemoveTimeLTE

func AutoRemoveTimeLTE(v int) predicate.Message

AutoRemoveTimeLTE applies the LTE predicate on the "auto_remove_time" field.

func AutoRemoveTimeNEQ

func AutoRemoveTimeNEQ(v int) predicate.Message

AutoRemoveTimeNEQ applies the NEQ predicate on the "auto_remove_time" field.

func AutoRemoveTimeNotIn

func AutoRemoveTimeNotIn(vs ...int) predicate.Message

AutoRemoveTimeNotIn applies the NotIn predicate on the "auto_remove_time" field.

func Enable

func Enable(v bool) predicate.Message

Enable applies equality check predicate on the "enable" field. It's identical to EnableEQ.

func EnableEQ

func EnableEQ(v bool) predicate.Message

EnableEQ applies the EQ predicate on the "enable" field.

func EnableNEQ

func EnableNEQ(v bool) predicate.Message

EnableNEQ applies the NEQ predicate on the "enable" field.

func ID

func ID(id int) predicate.Message

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Message

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Message

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Message

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Message

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Message

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Message

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Message

func Message(v string) predicate.Message

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

func MessageContains

func MessageContains(v string) predicate.Message

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

func MessageContainsFold

func MessageContainsFold(v string) predicate.Message

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

func MessageEQ

func MessageEQ(v string) predicate.Message

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

func MessageEqualFold

func MessageEqualFold(v string) predicate.Message

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

func MessageGT

func MessageGT(v string) predicate.Message

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

func MessageGTE

func MessageGTE(v string) predicate.Message

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

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.Message

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

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.Message

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

func MessageIn

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

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

func MessageLT

func MessageLT(v string) predicate.Message

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

func MessageLTE

func MessageLTE(v string) predicate.Message

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

func MessageNEQ

func MessageNEQ(v string) predicate.Message

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

func MessageNotIn

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

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.Message) predicate.Message

Or groups predicates with the OR operator between them.

func Type

func Type(v int) predicate.Message

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeEQ

func TypeEQ(v int) predicate.Message

TypeEQ applies the EQ predicate on the "type" field.

func TypeGT

func TypeGT(v int) predicate.Message

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v int) predicate.Message

TypeGTE applies the GTE predicate on the "type" field.

func TypeIn

func TypeIn(vs ...int) predicate.Message

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v int) predicate.Message

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v int) predicate.Message

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v int) predicate.Message

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...int) predicate.Message

TypeNotIn applies the NotIn predicate on the "type" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Action

type Action string

Action defines the type for the "action" enum field.

const (
	ActionWelcome   Action = "welcome"
	ActionStatistic Action = "statistic"
)

Action values.

func (Action) String

func (a Action) String() string

Jump to

Keyboard shortcuts

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