Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v uuid.UUID) predicate.AgentToken
- func AgentIDEQ(v uuid.UUID) predicate.AgentToken
- func AgentIDIn(vs ...uuid.UUID) predicate.AgentToken
- func AgentIDIsNil() predicate.AgentToken
- func AgentIDNEQ(v uuid.UUID) predicate.AgentToken
- func AgentIDNotIn(vs ...uuid.UUID) predicate.AgentToken
- func AgentIDNotNil() predicate.AgentToken
- func And(predicates ...predicate.AgentToken) predicate.AgentToken
- func ConversationID(v uuid.UUID) predicate.AgentToken
- func ConversationIDEQ(v uuid.UUID) predicate.AgentToken
- func ConversationIDIn(vs ...uuid.UUID) predicate.AgentToken
- func ConversationIDIsNil() predicate.AgentToken
- func ConversationIDNEQ(v uuid.UUID) predicate.AgentToken
- func ConversationIDNotIn(vs ...uuid.UUID) predicate.AgentToken
- func ConversationIDNotNil() predicate.AgentToken
- func CreatedAt(v time.Time) predicate.AgentToken
- func CreatedAtEQ(v time.Time) predicate.AgentToken
- func CreatedAtGT(v time.Time) predicate.AgentToken
- func CreatedAtGTE(v time.Time) predicate.AgentToken
- func CreatedAtIn(vs ...time.Time) predicate.AgentToken
- func CreatedAtLT(v time.Time) predicate.AgentToken
- func CreatedAtLTE(v time.Time) predicate.AgentToken
- func CreatedAtNEQ(v time.Time) predicate.AgentToken
- func CreatedAtNotIn(vs ...time.Time) predicate.AgentToken
- func ExpiresAt(v time.Time) predicate.AgentToken
- func ExpiresAtEQ(v time.Time) predicate.AgentToken
- func ExpiresAtGT(v time.Time) predicate.AgentToken
- func ExpiresAtGTE(v time.Time) predicate.AgentToken
- func ExpiresAtIn(vs ...time.Time) predicate.AgentToken
- func ExpiresAtLT(v time.Time) predicate.AgentToken
- func ExpiresAtLTE(v time.Time) predicate.AgentToken
- func ExpiresAtNEQ(v time.Time) predicate.AgentToken
- func ExpiresAtNotIn(vs ...time.Time) predicate.AgentToken
- func HasAgent() predicate.AgentToken
- func HasAgentWith(preds ...predicate.Agent) predicate.AgentToken
- func HasConversation() predicate.AgentToken
- func HasConversationWith(preds ...predicate.ChatConversation) predicate.AgentToken
- func HasProject() predicate.AgentToken
- func HasProjectWith(preds ...predicate.Project) predicate.AgentToken
- func HasTicket() predicate.AgentToken
- func HasTicketWith(preds ...predicate.Ticket) predicate.AgentToken
- func ID(id uuid.UUID) predicate.AgentToken
- func IDEQ(id uuid.UUID) predicate.AgentToken
- func IDGT(id uuid.UUID) predicate.AgentToken
- func IDGTE(id uuid.UUID) predicate.AgentToken
- func IDIn(ids ...uuid.UUID) predicate.AgentToken
- func IDLT(id uuid.UUID) predicate.AgentToken
- func IDLTE(id uuid.UUID) predicate.AgentToken
- func IDNEQ(id uuid.UUID) predicate.AgentToken
- func IDNotIn(ids ...uuid.UUID) predicate.AgentToken
- func LastUsedAt(v time.Time) predicate.AgentToken
- func LastUsedAtEQ(v time.Time) predicate.AgentToken
- func LastUsedAtGT(v time.Time) predicate.AgentToken
- func LastUsedAtGTE(v time.Time) predicate.AgentToken
- func LastUsedAtIn(vs ...time.Time) predicate.AgentToken
- func LastUsedAtIsNil() predicate.AgentToken
- func LastUsedAtLT(v time.Time) predicate.AgentToken
- func LastUsedAtLTE(v time.Time) predicate.AgentToken
- func LastUsedAtNEQ(v time.Time) predicate.AgentToken
- func LastUsedAtNotIn(vs ...time.Time) predicate.AgentToken
- func LastUsedAtNotNil() predicate.AgentToken
- func Not(p predicate.AgentToken) predicate.AgentToken
- func Or(predicates ...predicate.AgentToken) predicate.AgentToken
- func PrincipalID(v uuid.UUID) predicate.AgentToken
- func PrincipalIDEQ(v uuid.UUID) predicate.AgentToken
- func PrincipalIDGT(v uuid.UUID) predicate.AgentToken
- func PrincipalIDGTE(v uuid.UUID) predicate.AgentToken
- func PrincipalIDIn(vs ...uuid.UUID) predicate.AgentToken
- func PrincipalIDLT(v uuid.UUID) predicate.AgentToken
- func PrincipalIDLTE(v uuid.UUID) predicate.AgentToken
- func PrincipalIDNEQ(v uuid.UUID) predicate.AgentToken
- func PrincipalIDNotIn(vs ...uuid.UUID) predicate.AgentToken
- func PrincipalKindEQ(v PrincipalKind) predicate.AgentToken
- func PrincipalKindIn(vs ...PrincipalKind) predicate.AgentToken
- func PrincipalKindNEQ(v PrincipalKind) predicate.AgentToken
- func PrincipalKindNotIn(vs ...PrincipalKind) predicate.AgentToken
- func PrincipalKindValidator(pk PrincipalKind) error
- func PrincipalName(v string) predicate.AgentToken
- func PrincipalNameContains(v string) predicate.AgentToken
- func PrincipalNameContainsFold(v string) predicate.AgentToken
- func PrincipalNameEQ(v string) predicate.AgentToken
- func PrincipalNameEqualFold(v string) predicate.AgentToken
- func PrincipalNameGT(v string) predicate.AgentToken
- func PrincipalNameGTE(v string) predicate.AgentToken
- func PrincipalNameHasPrefix(v string) predicate.AgentToken
- func PrincipalNameHasSuffix(v string) predicate.AgentToken
- func PrincipalNameIn(vs ...string) predicate.AgentToken
- func PrincipalNameLT(v string) predicate.AgentToken
- func PrincipalNameLTE(v string) predicate.AgentToken
- func PrincipalNameNEQ(v string) predicate.AgentToken
- func PrincipalNameNotIn(vs ...string) predicate.AgentToken
- func ProjectID(v uuid.UUID) predicate.AgentToken
- func ProjectIDEQ(v uuid.UUID) predicate.AgentToken
- func ProjectIDIn(vs ...uuid.UUID) predicate.AgentToken
- func ProjectIDNEQ(v uuid.UUID) predicate.AgentToken
- func ProjectIDNotIn(vs ...uuid.UUID) predicate.AgentToken
- func TicketID(v uuid.UUID) predicate.AgentToken
- func TicketIDEQ(v uuid.UUID) predicate.AgentToken
- func TicketIDIn(vs ...uuid.UUID) predicate.AgentToken
- func TicketIDIsNil() predicate.AgentToken
- func TicketIDNEQ(v uuid.UUID) predicate.AgentToken
- func TicketIDNotIn(vs ...uuid.UUID) predicate.AgentToken
- func TicketIDNotNil() predicate.AgentToken
- func TokenHash(v string) predicate.AgentToken
- func TokenHashContains(v string) predicate.AgentToken
- func TokenHashContainsFold(v string) predicate.AgentToken
- func TokenHashEQ(v string) predicate.AgentToken
- func TokenHashEqualFold(v string) predicate.AgentToken
- func TokenHashGT(v string) predicate.AgentToken
- func TokenHashGTE(v string) predicate.AgentToken
- func TokenHashHasPrefix(v string) predicate.AgentToken
- func TokenHashHasSuffix(v string) predicate.AgentToken
- func TokenHashIn(vs ...string) predicate.AgentToken
- func TokenHashLT(v string) predicate.AgentToken
- func TokenHashLTE(v string) predicate.AgentToken
- func TokenHashNEQ(v string) predicate.AgentToken
- func TokenHashNotIn(vs ...string) predicate.AgentToken
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByConversationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByConversationID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastUsedAt(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalKind(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalName(opts ...sql.OrderTermOption) OrderOption
- func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProjectID(opts ...sql.OrderTermOption) OrderOption
- func ByTicketField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTicketID(opts ...sql.OrderTermOption) OrderOption
- func ByTokenHash(opts ...sql.OrderTermOption) OrderOption
- type PrincipalKind
Constants ¶
const ( // Label holds the string label denoting the agenttoken type in the database. Label = "agent_token" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAgentID holds the string denoting the agent_id field in the database. FieldAgentID = "agent_id" // FieldProjectID holds the string denoting the project_id field in the database. FieldProjectID = "project_id" // FieldTicketID holds the string denoting the ticket_id field in the database. FieldTicketID = "ticket_id" // FieldConversationID holds the string denoting the conversation_id field in the database. FieldConversationID = "conversation_id" // FieldPrincipalKind holds the string denoting the principal_kind field in the database. FieldPrincipalKind = "principal_kind" // FieldPrincipalID holds the string denoting the principal_id field in the database. FieldPrincipalID = "principal_id" // FieldPrincipalName holds the string denoting the principal_name field in the database. FieldPrincipalName = "principal_name" // FieldTokenHash holds the string denoting the token_hash field in the database. FieldTokenHash = "token_hash" // FieldScopes holds the string denoting the scopes field in the database. FieldScopes = "scopes" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldLastUsedAt holds the string denoting the last_used_at field in the database. FieldLastUsedAt = "last_used_at" // EdgeAgent holds the string denoting the agent edge name in mutations. EdgeAgent = "agent" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // EdgeTicket holds the string denoting the ticket edge name in mutations. EdgeTicket = "ticket" // EdgeConversation holds the string denoting the conversation edge name in mutations. EdgeConversation = "conversation" // Table holds the table name of the agenttoken in the database. Table = "agent_tokens" // AgentTable is the table that holds the agent relation/edge. AgentTable = "agent_tokens" // AgentInverseTable is the table name for the Agent entity. // It exists in this package in order to avoid circular dependency with the "agent" package. AgentInverseTable = "agents" // AgentColumn is the table column denoting the agent relation/edge. AgentColumn = "agent_id" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "agent_tokens" // ProjectInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectInverseTable = "projects" // ProjectColumn is the table column denoting the project relation/edge. ProjectColumn = "project_id" // TicketTable is the table that holds the ticket relation/edge. TicketTable = "agent_tokens" // TicketInverseTable is the table name for the Ticket entity. // It exists in this package in order to avoid circular dependency with the "ticket" package. TicketInverseTable = "tickets" // TicketColumn is the table column denoting the ticket relation/edge. TicketColumn = "ticket_id" // ConversationTable is the table that holds the conversation relation/edge. ConversationTable = "agent_tokens" // ConversationInverseTable is the table name for the ChatConversation entity. // It exists in this package in order to avoid circular dependency with the "chatconversation" package. ConversationInverseTable = "chat_conversations" // ConversationColumn is the table column denoting the conversation relation/edge. ConversationColumn = "conversation_id" )
Variables ¶
var ( // PrincipalNameValidator is a validator for the "principal_name" field. It is called by the builders before save. PrincipalNameValidator func(string) error // TokenHashValidator is a validator for the "token_hash" field. It is called by the builders before save. TokenHashValidator func(string) error // DefaultScopes holds the default value on creation for the "scopes" field. DefaultScopes []string // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldAgentID, FieldProjectID, FieldTicketID, FieldConversationID, FieldPrincipalKind, FieldPrincipalID, FieldPrincipalName, FieldTokenHash, FieldScopes, FieldExpiresAt, FieldCreatedAt, FieldLastUsedAt, }
Columns holds all SQL columns for agenttoken fields.
Functions ¶
func AgentID ¶
func AgentID(v uuid.UUID) predicate.AgentToken
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDEQ ¶
func AgentIDEQ(v uuid.UUID) predicate.AgentToken
AgentIDEQ applies the EQ predicate on the "agent_id" field.
func AgentIDIn ¶
func AgentIDIn(vs ...uuid.UUID) predicate.AgentToken
AgentIDIn applies the In predicate on the "agent_id" field.
func AgentIDIsNil ¶
func AgentIDIsNil() predicate.AgentToken
AgentIDIsNil applies the IsNil predicate on the "agent_id" field.
func AgentIDNEQ ¶
func AgentIDNEQ(v uuid.UUID) predicate.AgentToken
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
func AgentIDNotIn(vs ...uuid.UUID) predicate.AgentToken
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
func AgentIDNotNil ¶
func AgentIDNotNil() predicate.AgentToken
AgentIDNotNil applies the NotNil predicate on the "agent_id" field.
func And ¶
func And(predicates ...predicate.AgentToken) predicate.AgentToken
And groups predicates with the AND operator between them.
func ConversationID ¶
func ConversationID(v uuid.UUID) predicate.AgentToken
ConversationID applies equality check predicate on the "conversation_id" field. It's identical to ConversationIDEQ.
func ConversationIDEQ ¶
func ConversationIDEQ(v uuid.UUID) predicate.AgentToken
ConversationIDEQ applies the EQ predicate on the "conversation_id" field.
func ConversationIDIn ¶
func ConversationIDIn(vs ...uuid.UUID) predicate.AgentToken
ConversationIDIn applies the In predicate on the "conversation_id" field.
func ConversationIDIsNil ¶
func ConversationIDIsNil() predicate.AgentToken
ConversationIDIsNil applies the IsNil predicate on the "conversation_id" field.
func ConversationIDNEQ ¶
func ConversationIDNEQ(v uuid.UUID) predicate.AgentToken
ConversationIDNEQ applies the NEQ predicate on the "conversation_id" field.
func ConversationIDNotIn ¶
func ConversationIDNotIn(vs ...uuid.UUID) predicate.AgentToken
ConversationIDNotIn applies the NotIn predicate on the "conversation_id" field.
func ConversationIDNotNil ¶
func ConversationIDNotNil() predicate.AgentToken
ConversationIDNotNil applies the NotNil predicate on the "conversation_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.AgentToken
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.AgentToken
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.AgentToken
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.AgentToken
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.AgentToken
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.AgentToken
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.AgentToken
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.AgentToken
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.AgentToken
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.AgentToken
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.AgentToken
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.AgentToken
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.AgentToken
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.AgentToken
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.AgentToken
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.AgentToken
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.AgentToken
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.AgentToken
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasAgent ¶
func HasAgent() predicate.AgentToken
HasAgent applies the HasEdge predicate on the "agent" edge.
func HasAgentWith ¶
func HasAgentWith(preds ...predicate.Agent) predicate.AgentToken
HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
func HasConversation ¶
func HasConversation() predicate.AgentToken
HasConversation applies the HasEdge predicate on the "conversation" edge.
func HasConversationWith ¶
func HasConversationWith(preds ...predicate.ChatConversation) predicate.AgentToken
HasConversationWith applies the HasEdge predicate on the "conversation" edge with a given conditions (other predicates).
func HasProject ¶
func HasProject() predicate.AgentToken
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
func HasProjectWith(preds ...predicate.Project) predicate.AgentToken
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasTicket ¶
func HasTicket() predicate.AgentToken
HasTicket applies the HasEdge predicate on the "ticket" edge.
func HasTicketWith ¶
func HasTicketWith(preds ...predicate.Ticket) predicate.AgentToken
HasTicketWith applies the HasEdge predicate on the "ticket" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.AgentToken
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.AgentToken
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.AgentToken
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.AgentToken
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.AgentToken
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.AgentToken
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.AgentToken
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.AgentToken
IDNotIn applies the NotIn predicate on the ID field.
func LastUsedAt ¶
func LastUsedAt(v time.Time) predicate.AgentToken
LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.
func LastUsedAtEQ ¶
func LastUsedAtEQ(v time.Time) predicate.AgentToken
LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.
func LastUsedAtGT ¶
func LastUsedAtGT(v time.Time) predicate.AgentToken
LastUsedAtGT applies the GT predicate on the "last_used_at" field.
func LastUsedAtGTE ¶
func LastUsedAtGTE(v time.Time) predicate.AgentToken
LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.
func LastUsedAtIn ¶
func LastUsedAtIn(vs ...time.Time) predicate.AgentToken
LastUsedAtIn applies the In predicate on the "last_used_at" field.
func LastUsedAtIsNil ¶
func LastUsedAtIsNil() predicate.AgentToken
LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.
func LastUsedAtLT ¶
func LastUsedAtLT(v time.Time) predicate.AgentToken
LastUsedAtLT applies the LT predicate on the "last_used_at" field.
func LastUsedAtLTE ¶
func LastUsedAtLTE(v time.Time) predicate.AgentToken
LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.
func LastUsedAtNEQ ¶
func LastUsedAtNEQ(v time.Time) predicate.AgentToken
LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.
func LastUsedAtNotIn ¶
func LastUsedAtNotIn(vs ...time.Time) predicate.AgentToken
LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.
func LastUsedAtNotNil ¶
func LastUsedAtNotNil() predicate.AgentToken
LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.
func Not ¶
func Not(p predicate.AgentToken) predicate.AgentToken
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.AgentToken) predicate.AgentToken
Or groups predicates with the OR operator between them.
func PrincipalID ¶
func PrincipalID(v uuid.UUID) predicate.AgentToken
PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.
func PrincipalIDEQ ¶
func PrincipalIDEQ(v uuid.UUID) predicate.AgentToken
PrincipalIDEQ applies the EQ predicate on the "principal_id" field.
func PrincipalIDGT ¶
func PrincipalIDGT(v uuid.UUID) predicate.AgentToken
PrincipalIDGT applies the GT predicate on the "principal_id" field.
func PrincipalIDGTE ¶
func PrincipalIDGTE(v uuid.UUID) predicate.AgentToken
PrincipalIDGTE applies the GTE predicate on the "principal_id" field.
func PrincipalIDIn ¶
func PrincipalIDIn(vs ...uuid.UUID) predicate.AgentToken
PrincipalIDIn applies the In predicate on the "principal_id" field.
func PrincipalIDLT ¶
func PrincipalIDLT(v uuid.UUID) predicate.AgentToken
PrincipalIDLT applies the LT predicate on the "principal_id" field.
func PrincipalIDLTE ¶
func PrincipalIDLTE(v uuid.UUID) predicate.AgentToken
PrincipalIDLTE applies the LTE predicate on the "principal_id" field.
func PrincipalIDNEQ ¶
func PrincipalIDNEQ(v uuid.UUID) predicate.AgentToken
PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.
func PrincipalIDNotIn ¶
func PrincipalIDNotIn(vs ...uuid.UUID) predicate.AgentToken
PrincipalIDNotIn applies the NotIn predicate on the "principal_id" field.
func PrincipalKindEQ ¶
func PrincipalKindEQ(v PrincipalKind) predicate.AgentToken
PrincipalKindEQ applies the EQ predicate on the "principal_kind" field.
func PrincipalKindIn ¶
func PrincipalKindIn(vs ...PrincipalKind) predicate.AgentToken
PrincipalKindIn applies the In predicate on the "principal_kind" field.
func PrincipalKindNEQ ¶
func PrincipalKindNEQ(v PrincipalKind) predicate.AgentToken
PrincipalKindNEQ applies the NEQ predicate on the "principal_kind" field.
func PrincipalKindNotIn ¶
func PrincipalKindNotIn(vs ...PrincipalKind) predicate.AgentToken
PrincipalKindNotIn applies the NotIn predicate on the "principal_kind" field.
func PrincipalKindValidator ¶
func PrincipalKindValidator(pk PrincipalKind) error
PrincipalKindValidator is a validator for the "principal_kind" field enum values. It is called by the builders before save.
func PrincipalName ¶
func PrincipalName(v string) predicate.AgentToken
PrincipalName applies equality check predicate on the "principal_name" field. It's identical to PrincipalNameEQ.
func PrincipalNameContains ¶
func PrincipalNameContains(v string) predicate.AgentToken
PrincipalNameContains applies the Contains predicate on the "principal_name" field.
func PrincipalNameContainsFold ¶
func PrincipalNameContainsFold(v string) predicate.AgentToken
PrincipalNameContainsFold applies the ContainsFold predicate on the "principal_name" field.
func PrincipalNameEQ ¶
func PrincipalNameEQ(v string) predicate.AgentToken
PrincipalNameEQ applies the EQ predicate on the "principal_name" field.
func PrincipalNameEqualFold ¶
func PrincipalNameEqualFold(v string) predicate.AgentToken
PrincipalNameEqualFold applies the EqualFold predicate on the "principal_name" field.
func PrincipalNameGT ¶
func PrincipalNameGT(v string) predicate.AgentToken
PrincipalNameGT applies the GT predicate on the "principal_name" field.
func PrincipalNameGTE ¶
func PrincipalNameGTE(v string) predicate.AgentToken
PrincipalNameGTE applies the GTE predicate on the "principal_name" field.
func PrincipalNameHasPrefix ¶
func PrincipalNameHasPrefix(v string) predicate.AgentToken
PrincipalNameHasPrefix applies the HasPrefix predicate on the "principal_name" field.
func PrincipalNameHasSuffix ¶
func PrincipalNameHasSuffix(v string) predicate.AgentToken
PrincipalNameHasSuffix applies the HasSuffix predicate on the "principal_name" field.
func PrincipalNameIn ¶
func PrincipalNameIn(vs ...string) predicate.AgentToken
PrincipalNameIn applies the In predicate on the "principal_name" field.
func PrincipalNameLT ¶
func PrincipalNameLT(v string) predicate.AgentToken
PrincipalNameLT applies the LT predicate on the "principal_name" field.
func PrincipalNameLTE ¶
func PrincipalNameLTE(v string) predicate.AgentToken
PrincipalNameLTE applies the LTE predicate on the "principal_name" field.
func PrincipalNameNEQ ¶
func PrincipalNameNEQ(v string) predicate.AgentToken
PrincipalNameNEQ applies the NEQ predicate on the "principal_name" field.
func PrincipalNameNotIn ¶
func PrincipalNameNotIn(vs ...string) predicate.AgentToken
PrincipalNameNotIn applies the NotIn predicate on the "principal_name" field.
func ProjectID ¶
func ProjectID(v uuid.UUID) predicate.AgentToken
ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
func ProjectIDEQ ¶
func ProjectIDEQ(v uuid.UUID) predicate.AgentToken
ProjectIDEQ applies the EQ predicate on the "project_id" field.
func ProjectIDIn ¶
func ProjectIDIn(vs ...uuid.UUID) predicate.AgentToken
ProjectIDIn applies the In predicate on the "project_id" field.
func ProjectIDNEQ ¶
func ProjectIDNEQ(v uuid.UUID) predicate.AgentToken
ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
func ProjectIDNotIn ¶
func ProjectIDNotIn(vs ...uuid.UUID) predicate.AgentToken
ProjectIDNotIn applies the NotIn predicate on the "project_id" field.
func TicketID ¶
func TicketID(v uuid.UUID) predicate.AgentToken
TicketID applies equality check predicate on the "ticket_id" field. It's identical to TicketIDEQ.
func TicketIDEQ ¶
func TicketIDEQ(v uuid.UUID) predicate.AgentToken
TicketIDEQ applies the EQ predicate on the "ticket_id" field.
func TicketIDIn ¶
func TicketIDIn(vs ...uuid.UUID) predicate.AgentToken
TicketIDIn applies the In predicate on the "ticket_id" field.
func TicketIDIsNil ¶
func TicketIDIsNil() predicate.AgentToken
TicketIDIsNil applies the IsNil predicate on the "ticket_id" field.
func TicketIDNEQ ¶
func TicketIDNEQ(v uuid.UUID) predicate.AgentToken
TicketIDNEQ applies the NEQ predicate on the "ticket_id" field.
func TicketIDNotIn ¶
func TicketIDNotIn(vs ...uuid.UUID) predicate.AgentToken
TicketIDNotIn applies the NotIn predicate on the "ticket_id" field.
func TicketIDNotNil ¶
func TicketIDNotNil() predicate.AgentToken
TicketIDNotNil applies the NotNil predicate on the "ticket_id" field.
func TokenHash ¶
func TokenHash(v string) predicate.AgentToken
TokenHash applies equality check predicate on the "token_hash" field. It's identical to TokenHashEQ.
func TokenHashContains ¶
func TokenHashContains(v string) predicate.AgentToken
TokenHashContains applies the Contains predicate on the "token_hash" field.
func TokenHashContainsFold ¶
func TokenHashContainsFold(v string) predicate.AgentToken
TokenHashContainsFold applies the ContainsFold predicate on the "token_hash" field.
func TokenHashEQ ¶
func TokenHashEQ(v string) predicate.AgentToken
TokenHashEQ applies the EQ predicate on the "token_hash" field.
func TokenHashEqualFold ¶
func TokenHashEqualFold(v string) predicate.AgentToken
TokenHashEqualFold applies the EqualFold predicate on the "token_hash" field.
func TokenHashGT ¶
func TokenHashGT(v string) predicate.AgentToken
TokenHashGT applies the GT predicate on the "token_hash" field.
func TokenHashGTE ¶
func TokenHashGTE(v string) predicate.AgentToken
TokenHashGTE applies the GTE predicate on the "token_hash" field.
func TokenHashHasPrefix ¶
func TokenHashHasPrefix(v string) predicate.AgentToken
TokenHashHasPrefix applies the HasPrefix predicate on the "token_hash" field.
func TokenHashHasSuffix ¶
func TokenHashHasSuffix(v string) predicate.AgentToken
TokenHashHasSuffix applies the HasSuffix predicate on the "token_hash" field.
func TokenHashIn ¶
func TokenHashIn(vs ...string) predicate.AgentToken
TokenHashIn applies the In predicate on the "token_hash" field.
func TokenHashLT ¶
func TokenHashLT(v string) predicate.AgentToken
TokenHashLT applies the LT predicate on the "token_hash" field.
func TokenHashLTE ¶
func TokenHashLTE(v string) predicate.AgentToken
TokenHashLTE applies the LTE predicate on the "token_hash" field.
func TokenHashNEQ ¶
func TokenHashNEQ(v string) predicate.AgentToken
TokenHashNEQ applies the NEQ predicate on the "token_hash" field.
func TokenHashNotIn ¶
func TokenHashNotIn(vs ...string) predicate.AgentToken
TokenHashNotIn applies the NotIn predicate on the "token_hash" field.
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 AgentToken queries.
func ByAgentField ¶
func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption
ByAgentField orders the results by agent field.
func ByAgentID ¶
func ByAgentID(opts ...sql.OrderTermOption) OrderOption
ByAgentID orders the results by the agent_id field.
func ByConversationField ¶
func ByConversationField(field string, opts ...sql.OrderTermOption) OrderOption
ByConversationField orders the results by conversation field.
func ByConversationID ¶
func ByConversationID(opts ...sql.OrderTermOption) OrderOption
ByConversationID orders the results by the conversation_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastUsedAt ¶
func ByLastUsedAt(opts ...sql.OrderTermOption) OrderOption
ByLastUsedAt orders the results by the last_used_at field.
func ByPrincipalID ¶
func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
ByPrincipalID orders the results by the principal_id field.
func ByPrincipalKind ¶
func ByPrincipalKind(opts ...sql.OrderTermOption) OrderOption
ByPrincipalKind orders the results by the principal_kind field.
func ByPrincipalName ¶
func ByPrincipalName(opts ...sql.OrderTermOption) OrderOption
ByPrincipalName orders the results by the principal_name field.
func ByProjectField ¶
func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
ByProjectField orders the results by project field.
func ByProjectID ¶
func ByProjectID(opts ...sql.OrderTermOption) OrderOption
ByProjectID orders the results by the project_id field.
func ByTicketField ¶
func ByTicketField(field string, opts ...sql.OrderTermOption) OrderOption
ByTicketField orders the results by ticket field.
func ByTicketID ¶
func ByTicketID(opts ...sql.OrderTermOption) OrderOption
ByTicketID orders the results by the ticket_id field.
func ByTokenHash ¶
func ByTokenHash(opts ...sql.OrderTermOption) OrderOption
ByTokenHash orders the results by the token_hash field.
type PrincipalKind ¶
type PrincipalKind string
PrincipalKind defines the type for the "principal_kind" enum field.
const ( PrincipalKindTicketAgent PrincipalKind = "ticket_agent" PrincipalKindProjectConversation PrincipalKind = "project_conversation" )
PrincipalKind values.
func (PrincipalKind) String ¶
func (pk PrincipalKind) String() string