Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Agent) predicate.Agent
- func ChannelID(v string) predicate.Agent
- func ChannelIDContains(v string) predicate.Agent
- func ChannelIDContainsFold(v string) predicate.Agent
- func ChannelIDEQ(v string) predicate.Agent
- func ChannelIDEqualFold(v string) predicate.Agent
- func ChannelIDGT(v string) predicate.Agent
- func ChannelIDGTE(v string) predicate.Agent
- func ChannelIDHasPrefix(v string) predicate.Agent
- func ChannelIDHasSuffix(v string) predicate.Agent
- func ChannelIDIn(vs ...string) predicate.Agent
- func ChannelIDLT(v string) predicate.Agent
- func ChannelIDLTE(v string) predicate.Agent
- func ChannelIDNEQ(v string) predicate.Agent
- func ChannelIDNotIn(vs ...string) predicate.Agent
- func ID(id string) predicate.Agent
- func IDContainsFold(id string) predicate.Agent
- func IDEQ(id string) predicate.Agent
- func IDEqualFold(id string) predicate.Agent
- func IDGT(id string) predicate.Agent
- func IDGTE(id string) predicate.Agent
- func IDIn(ids ...string) predicate.Agent
- func IDLT(id string) predicate.Agent
- func IDLTE(id string) predicate.Agent
- func IDNEQ(id string) predicate.Agent
- func IDNotIn(ids ...string) predicate.Agent
- func Not(p predicate.Agent) predicate.Agent
- func Or(predicates ...predicate.Agent) predicate.Agent
- func StatusEQ(v Status) predicate.Agent
- func StatusIn(vs ...Status) predicate.Agent
- func StatusNEQ(v Status) predicate.Agent
- func StatusNotIn(vs ...Status) predicate.Agent
- func StatusValidator(s Status) error
- func TenantID(v string) predicate.Agent
- func TenantIDContains(v string) predicate.Agent
- func TenantIDContainsFold(v string) predicate.Agent
- func TenantIDEQ(v string) predicate.Agent
- func TenantIDEqualFold(v string) predicate.Agent
- func TenantIDGT(v string) predicate.Agent
- func TenantIDGTE(v string) predicate.Agent
- func TenantIDHasPrefix(v string) predicate.Agent
- func TenantIDHasSuffix(v string) predicate.Agent
- func TenantIDIn(vs ...string) predicate.Agent
- func TenantIDLT(v string) predicate.Agent
- func TenantIDLTE(v string) predicate.Agent
- func TenantIDNEQ(v string) predicate.Agent
- func TenantIDNotIn(vs ...string) predicate.Agent
- func TypeEQ(v Type) predicate.Agent
- func TypeIn(vs ...Type) predicate.Agent
- func TypeNEQ(v Type) predicate.Agent
- func TypeNotIn(vs ...Type) predicate.Agent
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type OrderOption
- type Status
- type Type
Constants ¶
const ( // Label holds the string label denoting the agent type in the database. Label = "agent" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTenantID holds the string denoting the tenant_id field in the database. FieldTenantID = "tenant_id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldConfig holds the string denoting the config field in the database. FieldConfig = "config" // FieldChannelID holds the string denoting the channel_id field in the database. FieldChannelID = "channel_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // Table holds the table name of the agent in the database. Table = "agents" )
const DefaultStatus = StatusOffline
StatusOffline is the default value of the Status enum.
Variables ¶
var Columns = []string{ FieldID, FieldTenantID, FieldType, FieldConfig, FieldChannelID, FieldStatus, }
Columns holds all SQL columns for agent fields.
var ( // DefaultTenantID holds the default value on creation for the "tenant_id" field. DefaultTenantID string )
Functions ¶
func ChannelID ¶
ChannelID applies equality check predicate on the "channel_id" field. It's identical to ChannelIDEQ.
func ChannelIDContains ¶
ChannelIDContains applies the Contains predicate on the "channel_id" field.
func ChannelIDContainsFold ¶
ChannelIDContainsFold applies the ContainsFold predicate on the "channel_id" field.
func ChannelIDEQ ¶
ChannelIDEQ applies the EQ predicate on the "channel_id" field.
func ChannelIDEqualFold ¶
ChannelIDEqualFold applies the EqualFold predicate on the "channel_id" field.
func ChannelIDGT ¶
ChannelIDGT applies the GT predicate on the "channel_id" field.
func ChannelIDGTE ¶
ChannelIDGTE applies the GTE predicate on the "channel_id" field.
func ChannelIDHasPrefix ¶
ChannelIDHasPrefix applies the HasPrefix predicate on the "channel_id" field.
func ChannelIDHasSuffix ¶
ChannelIDHasSuffix applies the HasSuffix predicate on the "channel_id" field.
func ChannelIDIn ¶
ChannelIDIn applies the In predicate on the "channel_id" field.
func ChannelIDLT ¶
ChannelIDLT applies the LT predicate on the "channel_id" field.
func ChannelIDLTE ¶
ChannelIDLTE applies the LTE predicate on the "channel_id" field.
func ChannelIDNEQ ¶
ChannelIDNEQ applies the NEQ predicate on the "channel_id" field.
func ChannelIDNotIn ¶
ChannelIDNotIn applies the NotIn predicate on the "channel_id" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func TenantID ¶
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDContains ¶
TenantIDContains applies the Contains predicate on the "tenant_id" field.
func TenantIDContainsFold ¶
TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.
func TenantIDEQ ¶
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDEqualFold ¶
TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.
func TenantIDGT ¶
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDHasPrefix ¶
TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.
func TenantIDHasSuffix ¶
TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.
func TenantIDIn ¶
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Agent queries.
func ByChannelID ¶
func ByChannelID(opts ...sql.OrderTermOption) OrderOption
ByChannelID orders the results by the channel_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTenantID ¶
func ByTenantID(opts ...sql.OrderTermOption) OrderOption
ByTenantID orders the results by the tenant_id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.