message

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MPL-2.0 Imports: 4 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"
	// FieldThread holds the string denoting the thread field in the database.
	FieldThread = "thread"
	// FieldToolName holds the string denoting the tool_name field in the database.
	FieldToolName = "tool_name"
	// FieldToolID holds the string denoting the tool_id field in the database.
	FieldToolID = "tool_id"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldUser holds the string denoting the user field in the database.
	FieldUser = "user"
	// FieldMime holds the string denoting the mime field in the database.
	FieldMime = "mime"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// Table holds the table name of the message in the database.
	Table = "messages"
)

Variables

View Source
var (
	// RoleValidator is a validator for the "role" field. It is called by the builders before save.
	RoleValidator func(string) error
	// DefaultMime holds the default value on creation for the "mime" field.
	DefaultMime types.MIME
	// MimeValidator is a validator for the "mime" field. It is called by the builders before save.
	MimeValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for message fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func Content

func Content(v []byte) predicate.Message

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentEQ

func ContentEQ(v []byte) predicate.Message

ContentEQ applies the EQ predicate on the "content" field.

func ContentGT

func ContentGT(v []byte) predicate.Message

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v []byte) predicate.Message

ContentGTE applies the GTE predicate on the "content" field.

func ContentIn

func ContentIn(vs ...[]byte) predicate.Message

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v []byte) predicate.Message

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v []byte) predicate.Message

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v []byte) predicate.Message

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...[]byte) predicate.Message

ContentNotIn applies the NotIn predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Message

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Message

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Message

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Message

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Message

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Message

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Message

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Message

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Message

CreatedAtNotIn applies the NotIn predicate on the "created_at" 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 Mime

func Mime(v types.MIME) predicate.Message

Mime applies equality check predicate on the "mime" field. It's identical to MimeEQ.

func MimeContains

func MimeContains(v types.MIME) predicate.Message

MimeContains applies the Contains predicate on the "mime" field.

func MimeContainsFold

func MimeContainsFold(v types.MIME) predicate.Message

MimeContainsFold applies the ContainsFold predicate on the "mime" field.

func MimeEQ

func MimeEQ(v types.MIME) predicate.Message

MimeEQ applies the EQ predicate on the "mime" field.

func MimeEqualFold

func MimeEqualFold(v types.MIME) predicate.Message

MimeEqualFold applies the EqualFold predicate on the "mime" field.

func MimeGT

func MimeGT(v types.MIME) predicate.Message

MimeGT applies the GT predicate on the "mime" field.

func MimeGTE

func MimeGTE(v types.MIME) predicate.Message

MimeGTE applies the GTE predicate on the "mime" field.

func MimeHasPrefix

func MimeHasPrefix(v types.MIME) predicate.Message

MimeHasPrefix applies the HasPrefix predicate on the "mime" field.

func MimeHasSuffix

func MimeHasSuffix(v types.MIME) predicate.Message

MimeHasSuffix applies the HasSuffix predicate on the "mime" field.

func MimeIn

func MimeIn(vs ...types.MIME) predicate.Message

MimeIn applies the In predicate on the "mime" field.

func MimeLT

func MimeLT(v types.MIME) predicate.Message

MimeLT applies the LT predicate on the "mime" field.

func MimeLTE

func MimeLTE(v types.MIME) predicate.Message

MimeLTE applies the LTE predicate on the "mime" field.

func MimeNEQ

func MimeNEQ(v types.MIME) predicate.Message

MimeNEQ applies the NEQ predicate on the "mime" field.

func MimeNotIn

func MimeNotIn(vs ...types.MIME) predicate.Message

MimeNotIn applies the NotIn predicate on the "mime" 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 Role

func Role(v types.Role) predicate.Message

Role applies equality check predicate on the "role" field. It's identical to RoleEQ.

func RoleContains

func RoleContains(v types.Role) predicate.Message

RoleContains applies the Contains predicate on the "role" field.

func RoleContainsFold

func RoleContainsFold(v types.Role) predicate.Message

RoleContainsFold applies the ContainsFold predicate on the "role" field.

func RoleEQ

func RoleEQ(v types.Role) predicate.Message

RoleEQ applies the EQ predicate on the "role" field.

func RoleEqualFold

func RoleEqualFold(v types.Role) predicate.Message

RoleEqualFold applies the EqualFold predicate on the "role" field.

func RoleGT

func RoleGT(v types.Role) predicate.Message

RoleGT applies the GT predicate on the "role" field.

func RoleGTE

func RoleGTE(v types.Role) predicate.Message

RoleGTE applies the GTE predicate on the "role" field.

func RoleHasPrefix

func RoleHasPrefix(v types.Role) predicate.Message

RoleHasPrefix applies the HasPrefix predicate on the "role" field.

func RoleHasSuffix

func RoleHasSuffix(v types.Role) predicate.Message

RoleHasSuffix applies the HasSuffix predicate on the "role" field.

func RoleIn

func RoleIn(vs ...types.Role) predicate.Message

RoleIn applies the In predicate on the "role" field.

func RoleLT

func RoleLT(v types.Role) predicate.Message

RoleLT applies the LT predicate on the "role" field.

func RoleLTE

func RoleLTE(v types.Role) predicate.Message

RoleLTE applies the LTE predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v types.Role) predicate.Message

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...types.Role) predicate.Message

RoleNotIn applies the NotIn predicate on the "role" field.

func Thread

func Thread(v string) predicate.Message

Thread applies equality check predicate on the "thread" field. It's identical to ThreadEQ.

func ThreadContains

func ThreadContains(v string) predicate.Message

ThreadContains applies the Contains predicate on the "thread" field.

func ThreadContainsFold

func ThreadContainsFold(v string) predicate.Message

ThreadContainsFold applies the ContainsFold predicate on the "thread" field.

func ThreadEQ

func ThreadEQ(v string) predicate.Message

ThreadEQ applies the EQ predicate on the "thread" field.

func ThreadEqualFold

func ThreadEqualFold(v string) predicate.Message

ThreadEqualFold applies the EqualFold predicate on the "thread" field.

func ThreadGT

func ThreadGT(v string) predicate.Message

ThreadGT applies the GT predicate on the "thread" field.

func ThreadGTE

func ThreadGTE(v string) predicate.Message

ThreadGTE applies the GTE predicate on the "thread" field.

func ThreadHasPrefix

func ThreadHasPrefix(v string) predicate.Message

ThreadHasPrefix applies the HasPrefix predicate on the "thread" field.

func ThreadHasSuffix

func ThreadHasSuffix(v string) predicate.Message

ThreadHasSuffix applies the HasSuffix predicate on the "thread" field.

func ThreadIn

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

ThreadIn applies the In predicate on the "thread" field.

func ThreadLT

func ThreadLT(v string) predicate.Message

ThreadLT applies the LT predicate on the "thread" field.

func ThreadLTE

func ThreadLTE(v string) predicate.Message

ThreadLTE applies the LTE predicate on the "thread" field.

func ThreadNEQ

func ThreadNEQ(v string) predicate.Message

ThreadNEQ applies the NEQ predicate on the "thread" field.

func ThreadNotIn

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

ThreadNotIn applies the NotIn predicate on the "thread" field.

func ToolID

func ToolID(v string) predicate.Message

ToolID applies equality check predicate on the "tool_id" field. It's identical to ToolIDEQ.

func ToolIDContains

func ToolIDContains(v string) predicate.Message

ToolIDContains applies the Contains predicate on the "tool_id" field.

func ToolIDContainsFold

func ToolIDContainsFold(v string) predicate.Message

ToolIDContainsFold applies the ContainsFold predicate on the "tool_id" field.

func ToolIDEQ

func ToolIDEQ(v string) predicate.Message

ToolIDEQ applies the EQ predicate on the "tool_id" field.

func ToolIDEqualFold

func ToolIDEqualFold(v string) predicate.Message

ToolIDEqualFold applies the EqualFold predicate on the "tool_id" field.

func ToolIDGT

func ToolIDGT(v string) predicate.Message

ToolIDGT applies the GT predicate on the "tool_id" field.

func ToolIDGTE

func ToolIDGTE(v string) predicate.Message

ToolIDGTE applies the GTE predicate on the "tool_id" field.

func ToolIDHasPrefix

func ToolIDHasPrefix(v string) predicate.Message

ToolIDHasPrefix applies the HasPrefix predicate on the "tool_id" field.

func ToolIDHasSuffix

func ToolIDHasSuffix(v string) predicate.Message

ToolIDHasSuffix applies the HasSuffix predicate on the "tool_id" field.

func ToolIDIn

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

ToolIDIn applies the In predicate on the "tool_id" field.

func ToolIDIsNil

func ToolIDIsNil() predicate.Message

ToolIDIsNil applies the IsNil predicate on the "tool_id" field.

func ToolIDLT

func ToolIDLT(v string) predicate.Message

ToolIDLT applies the LT predicate on the "tool_id" field.

func ToolIDLTE

func ToolIDLTE(v string) predicate.Message

ToolIDLTE applies the LTE predicate on the "tool_id" field.

func ToolIDNEQ

func ToolIDNEQ(v string) predicate.Message

ToolIDNEQ applies the NEQ predicate on the "tool_id" field.

func ToolIDNotIn

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

ToolIDNotIn applies the NotIn predicate on the "tool_id" field.

func ToolIDNotNil

func ToolIDNotNil() predicate.Message

ToolIDNotNil applies the NotNil predicate on the "tool_id" field.

func ToolName

func ToolName(v string) predicate.Message

ToolName applies equality check predicate on the "tool_name" field. It's identical to ToolNameEQ.

func ToolNameContains

func ToolNameContains(v string) predicate.Message

ToolNameContains applies the Contains predicate on the "tool_name" field.

func ToolNameContainsFold

func ToolNameContainsFold(v string) predicate.Message

ToolNameContainsFold applies the ContainsFold predicate on the "tool_name" field.

func ToolNameEQ

func ToolNameEQ(v string) predicate.Message

ToolNameEQ applies the EQ predicate on the "tool_name" field.

func ToolNameEqualFold

func ToolNameEqualFold(v string) predicate.Message

ToolNameEqualFold applies the EqualFold predicate on the "tool_name" field.

func ToolNameGT

func ToolNameGT(v string) predicate.Message

ToolNameGT applies the GT predicate on the "tool_name" field.

func ToolNameGTE

func ToolNameGTE(v string) predicate.Message

ToolNameGTE applies the GTE predicate on the "tool_name" field.

func ToolNameHasPrefix

func ToolNameHasPrefix(v string) predicate.Message

ToolNameHasPrefix applies the HasPrefix predicate on the "tool_name" field.

func ToolNameHasSuffix

func ToolNameHasSuffix(v string) predicate.Message

ToolNameHasSuffix applies the HasSuffix predicate on the "tool_name" field.

func ToolNameIn

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

ToolNameIn applies the In predicate on the "tool_name" field.

func ToolNameIsNil

func ToolNameIsNil() predicate.Message

ToolNameIsNil applies the IsNil predicate on the "tool_name" field.

func ToolNameLT

func ToolNameLT(v string) predicate.Message

ToolNameLT applies the LT predicate on the "tool_name" field.

func ToolNameLTE

func ToolNameLTE(v string) predicate.Message

ToolNameLTE applies the LTE predicate on the "tool_name" field.

func ToolNameNEQ

func ToolNameNEQ(v string) predicate.Message

ToolNameNEQ applies the NEQ predicate on the "tool_name" field.

func ToolNameNotIn

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

ToolNameNotIn applies the NotIn predicate on the "tool_name" field.

func ToolNameNotNil

func ToolNameNotNil() predicate.Message

ToolNameNotNil applies the NotNil predicate on the "tool_name" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Message

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Message

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Message

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Message

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Message

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Message

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Message

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Message

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Message

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func User

func User(v string) predicate.Message

User applies equality check predicate on the "user" field. It's identical to UserEQ.

func UserContains

func UserContains(v string) predicate.Message

UserContains applies the Contains predicate on the "user" field.

func UserContainsFold

func UserContainsFold(v string) predicate.Message

UserContainsFold applies the ContainsFold predicate on the "user" field.

func UserEQ

func UserEQ(v string) predicate.Message

UserEQ applies the EQ predicate on the "user" field.

func UserEqualFold

func UserEqualFold(v string) predicate.Message

UserEqualFold applies the EqualFold predicate on the "user" field.

func UserGT

func UserGT(v string) predicate.Message

UserGT applies the GT predicate on the "user" field.

func UserGTE

func UserGTE(v string) predicate.Message

UserGTE applies the GTE predicate on the "user" field.

func UserHasPrefix

func UserHasPrefix(v string) predicate.Message

UserHasPrefix applies the HasPrefix predicate on the "user" field.

func UserHasSuffix

func UserHasSuffix(v string) predicate.Message

UserHasSuffix applies the HasSuffix predicate on the "user" field.

func UserIn

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

UserIn applies the In predicate on the "user" field.

func UserIsNil

func UserIsNil() predicate.Message

UserIsNil applies the IsNil predicate on the "user" field.

func UserLT

func UserLT(v string) predicate.Message

UserLT applies the LT predicate on the "user" field.

func UserLTE

func UserLTE(v string) predicate.Message

UserLTE applies the LTE predicate on the "user" field.

func UserNEQ

func UserNEQ(v string) predicate.Message

UserNEQ applies the NEQ predicate on the "user" field.

func UserNotIn

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

UserNotIn applies the NotIn predicate on the "user" field.

func UserNotNil

func UserNotNil() predicate.Message

UserNotNil applies the NotNil predicate on the "user" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Message queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByMime

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

ByMime orders the results by the mime field.

func ByRole

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

ByRole orders the results by the role field.

func ByThread

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

ByThread orders the results by the thread field.

func ByToolID

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

ByToolID orders the results by the tool_id field.

func ByToolName

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

ByToolName orders the results by the tool_name field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUser

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

ByUser orders the results by the user field.

Jump to

Keyboard shortcuts

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