Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v string) predicate.Event
- func AgentIDContains(v string) predicate.Event
- func AgentIDContainsFold(v string) predicate.Event
- func AgentIDEQ(v string) predicate.Event
- func AgentIDEqualFold(v string) predicate.Event
- func AgentIDGT(v string) predicate.Event
- func AgentIDGTE(v string) predicate.Event
- func AgentIDHasPrefix(v string) predicate.Event
- func AgentIDHasSuffix(v string) predicate.Event
- func AgentIDIn(vs ...string) predicate.Event
- func AgentIDLT(v string) predicate.Event
- func AgentIDLTE(v string) predicate.Event
- func AgentIDNEQ(v string) predicate.Event
- func AgentIDNotIn(vs ...string) predicate.Event
- func And(predicates ...predicate.Event) predicate.Event
- func ChannelID(v string) predicate.Event
- func ChannelIDContains(v string) predicate.Event
- func ChannelIDContainsFold(v string) predicate.Event
- func ChannelIDEQ(v string) predicate.Event
- func ChannelIDEqualFold(v string) predicate.Event
- func ChannelIDGT(v string) predicate.Event
- func ChannelIDGTE(v string) predicate.Event
- func ChannelIDHasPrefix(v string) predicate.Event
- func ChannelIDHasSuffix(v string) predicate.Event
- func ChannelIDIn(vs ...string) predicate.Event
- func ChannelIDLT(v string) predicate.Event
- func ChannelIDLTE(v string) predicate.Event
- func ChannelIDNEQ(v string) predicate.Event
- func ChannelIDNotIn(vs ...string) predicate.Event
- func ID(id string) predicate.Event
- func IDContainsFold(id string) predicate.Event
- func IDEQ(id string) predicate.Event
- func IDEqualFold(id string) predicate.Event
- func IDGT(id string) predicate.Event
- func IDGTE(id string) predicate.Event
- func IDIn(ids ...string) predicate.Event
- func IDLT(id string) predicate.Event
- func IDLTE(id string) predicate.Event
- func IDNEQ(id string) predicate.Event
- func IDNotIn(ids ...string) predicate.Event
- func Not(p predicate.Event) predicate.Event
- func Or(predicates ...predicate.Event) predicate.Event
- func RoleEQ(v Role) predicate.Event
- func RoleIn(vs ...Role) predicate.Event
- func RoleNEQ(v Role) predicate.Event
- func RoleNotIn(vs ...Role) predicate.Event
- func RoleValidator(r Role) error
- func SourceAgentID(v string) predicate.Event
- func SourceAgentIDContains(v string) predicate.Event
- func SourceAgentIDContainsFold(v string) predicate.Event
- func SourceAgentIDEQ(v string) predicate.Event
- func SourceAgentIDEqualFold(v string) predicate.Event
- func SourceAgentIDGT(v string) predicate.Event
- func SourceAgentIDGTE(v string) predicate.Event
- func SourceAgentIDHasPrefix(v string) predicate.Event
- func SourceAgentIDHasSuffix(v string) predicate.Event
- func SourceAgentIDIn(vs ...string) predicate.Event
- func SourceAgentIDIsNil() predicate.Event
- func SourceAgentIDLT(v string) predicate.Event
- func SourceAgentIDLTE(v string) predicate.Event
- func SourceAgentIDNEQ(v string) predicate.Event
- func SourceAgentIDNotIn(vs ...string) predicate.Event
- func SourceAgentIDNotNil() predicate.Event
- func StatusEQ(v Status) predicate.Event
- func StatusIn(vs ...Status) predicate.Event
- func StatusNEQ(v Status) predicate.Event
- func StatusNotIn(vs ...Status) predicate.Event
- func StatusValidator(s Status) error
- func TenantID(v string) predicate.Event
- func TenantIDContains(v string) predicate.Event
- func TenantIDContainsFold(v string) predicate.Event
- func TenantIDEQ(v string) predicate.Event
- func TenantIDEqualFold(v string) predicate.Event
- func TenantIDGT(v string) predicate.Event
- func TenantIDGTE(v string) predicate.Event
- func TenantIDHasPrefix(v string) predicate.Event
- func TenantIDHasSuffix(v string) predicate.Event
- func TenantIDIn(vs ...string) predicate.Event
- func TenantIDLT(v string) predicate.Event
- func TenantIDLTE(v string) predicate.Event
- func TenantIDNEQ(v string) predicate.Event
- func TenantIDNotIn(vs ...string) predicate.Event
- func Timestamp(v time.Time) predicate.Event
- func TimestampEQ(v time.Time) predicate.Event
- func TimestampGT(v time.Time) predicate.Event
- func TimestampGTE(v time.Time) predicate.Event
- func TimestampIn(vs ...time.Time) predicate.Event
- func TimestampLT(v time.Time) predicate.Event
- func TimestampLTE(v time.Time) predicate.Event
- func TimestampNEQ(v time.Time) predicate.Event
- func TimestampNotIn(vs ...time.Time) predicate.Event
- func TypeEQ(v Type) predicate.Event
- func TypeIn(vs ...Type) predicate.Event
- func TypeNEQ(v Type) predicate.Event
- func TypeNotIn(vs ...Type) predicate.Event
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByChannelID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func BySourceAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- type Role
- type Status
- type Type
Constants ¶
const ( // Label holds the string label denoting the event type in the database. Label = "event" // 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" // FieldAgentID holds the string denoting the agent_id field in the database. FieldAgentID = "agent_id" // FieldChannelID holds the string denoting the channel_id field in the database. FieldChannelID = "channel_id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // FieldPayload holds the string denoting the payload field in the database. FieldPayload = "payload" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldSourceAgentID holds the string denoting the source_agent_id field in the database. FieldSourceAgentID = "source_agent_id" // Table holds the table name of the event in the database. Table = "events" )
const DefaultStatus = StatusNew
StatusNew is the default value of the Status enum.
Variables ¶
var ( // DefaultTenantID holds the default value on creation for the "tenant_id" field. DefaultTenantID string // DefaultTimestamp holds the default value on creation for the "timestamp" field. DefaultTimestamp func() time.Time // DefaultSourceAgentID holds the default value on creation for the "source_agent_id" field. DefaultSourceAgentID string )
var Columns = []string{ FieldID, FieldTenantID, FieldAgentID, FieldChannelID, FieldType, FieldRole, FieldTimestamp, FieldPayload, FieldStatus, FieldSourceAgentID, }
Columns holds all SQL columns for event fields.
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDContains ¶
AgentIDContains applies the Contains predicate on the "agent_id" field.
func AgentIDContainsFold ¶
AgentIDContainsFold applies the ContainsFold predicate on the "agent_id" field.
func AgentIDEqualFold ¶
AgentIDEqualFold applies the EqualFold predicate on the "agent_id" field.
func AgentIDGTE ¶
AgentIDGTE applies the GTE predicate on the "agent_id" field.
func AgentIDHasPrefix ¶
AgentIDHasPrefix applies the HasPrefix predicate on the "agent_id" field.
func AgentIDHasSuffix ¶
AgentIDHasSuffix applies the HasSuffix predicate on the "agent_id" field.
func AgentIDLTE ¶
AgentIDLTE applies the LTE predicate on the "agent_id" field.
func AgentIDNEQ ¶
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
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 RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func SourceAgentID ¶
SourceAgentID applies equality check predicate on the "source_agent_id" field. It's identical to SourceAgentIDEQ.
func SourceAgentIDContains ¶
SourceAgentIDContains applies the Contains predicate on the "source_agent_id" field.
func SourceAgentIDContainsFold ¶
SourceAgentIDContainsFold applies the ContainsFold predicate on the "source_agent_id" field.
func SourceAgentIDEQ ¶
SourceAgentIDEQ applies the EQ predicate on the "source_agent_id" field.
func SourceAgentIDEqualFold ¶
SourceAgentIDEqualFold applies the EqualFold predicate on the "source_agent_id" field.
func SourceAgentIDGT ¶
SourceAgentIDGT applies the GT predicate on the "source_agent_id" field.
func SourceAgentIDGTE ¶
SourceAgentIDGTE applies the GTE predicate on the "source_agent_id" field.
func SourceAgentIDHasPrefix ¶
SourceAgentIDHasPrefix applies the HasPrefix predicate on the "source_agent_id" field.
func SourceAgentIDHasSuffix ¶
SourceAgentIDHasSuffix applies the HasSuffix predicate on the "source_agent_id" field.
func SourceAgentIDIn ¶
SourceAgentIDIn applies the In predicate on the "source_agent_id" field.
func SourceAgentIDIsNil ¶
SourceAgentIDIsNil applies the IsNil predicate on the "source_agent_id" field.
func SourceAgentIDLT ¶
SourceAgentIDLT applies the LT predicate on the "source_agent_id" field.
func SourceAgentIDLTE ¶
SourceAgentIDLTE applies the LTE predicate on the "source_agent_id" field.
func SourceAgentIDNEQ ¶
SourceAgentIDNEQ applies the NEQ predicate on the "source_agent_id" field.
func SourceAgentIDNotIn ¶
SourceAgentIDNotIn applies the NotIn predicate on the "source_agent_id" field.
func SourceAgentIDNotNil ¶
SourceAgentIDNotNil applies the NotNil predicate on the "source_agent_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 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 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 Event queries.
func ByAgentID ¶
func ByAgentID(opts ...sql.OrderTermOption) OrderOption
ByAgentID orders the results by the agent_id field.
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 ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func BySourceAgentID ¶
func BySourceAgentID(opts ...sql.OrderTermOption) OrderOption
BySourceAgentID orders the results by the source_agent_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 ByTimestamp ¶
func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
ByTimestamp orders the results by the timestamp field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.