inquiry

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the inquiry type in the database.
	Label = "inquiry"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSessionKey holds the string denoting the session_key field in the database.
	FieldSessionKey = "session_key"
	// FieldTopic holds the string denoting the topic field in the database.
	FieldTopic = "topic"
	// FieldQuestion holds the string denoting the question field in the database.
	FieldQuestion = "question"
	// FieldContext holds the string denoting the context field in the database.
	FieldContext = "context"
	// FieldPriority holds the string denoting the priority field in the database.
	FieldPriority = "priority"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldAnswer holds the string denoting the answer field in the database.
	FieldAnswer = "answer"
	// FieldKnowledgeKey holds the string denoting the knowledge_key field in the database.
	FieldKnowledgeKey = "knowledge_key"
	// FieldSourceObservationID holds the string denoting the source_observation_id field in the database.
	FieldSourceObservationID = "source_observation_id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldResolvedAt holds the string denoting the resolved_at field in the database.
	FieldResolvedAt = "resolved_at"
	// Table holds the table name of the inquiry in the database.
	Table = "inquiries"
)
View Source
const DefaultPriority = PriorityMedium

PriorityMedium is the default value of the Priority enum.

View Source
const DefaultStatus = StatusPending

StatusPending is the default value of the Status enum.

Variables

View Source
var (
	// SessionKeyValidator is a validator for the "session_key" field. It is called by the builders before save.
	SessionKeyValidator func(string) error
	// TopicValidator is a validator for the "topic" field. It is called by the builders before save.
	TopicValidator func(string) error
	// QuestionValidator is a validator for the "question" field. It is called by the builders before save.
	QuestionValidator func(string) error
	// 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
)

Columns holds all SQL columns for inquiry fields.

Functions

func And

func And(predicates ...predicate.Inquiry) predicate.Inquiry

And groups predicates with the AND operator between them.

func Answer

func Answer(v string) predicate.Inquiry

Answer applies equality check predicate on the "answer" field. It's identical to AnswerEQ.

func AnswerContains

func AnswerContains(v string) predicate.Inquiry

AnswerContains applies the Contains predicate on the "answer" field.

func AnswerContainsFold

func AnswerContainsFold(v string) predicate.Inquiry

AnswerContainsFold applies the ContainsFold predicate on the "answer" field.

func AnswerEQ

func AnswerEQ(v string) predicate.Inquiry

AnswerEQ applies the EQ predicate on the "answer" field.

func AnswerEqualFold

func AnswerEqualFold(v string) predicate.Inquiry

AnswerEqualFold applies the EqualFold predicate on the "answer" field.

func AnswerGT

func AnswerGT(v string) predicate.Inquiry

AnswerGT applies the GT predicate on the "answer" field.

func AnswerGTE

func AnswerGTE(v string) predicate.Inquiry

AnswerGTE applies the GTE predicate on the "answer" field.

func AnswerHasPrefix

func AnswerHasPrefix(v string) predicate.Inquiry

AnswerHasPrefix applies the HasPrefix predicate on the "answer" field.

func AnswerHasSuffix

func AnswerHasSuffix(v string) predicate.Inquiry

AnswerHasSuffix applies the HasSuffix predicate on the "answer" field.

func AnswerIn

func AnswerIn(vs ...string) predicate.Inquiry

AnswerIn applies the In predicate on the "answer" field.

func AnswerIsNil

func AnswerIsNil() predicate.Inquiry

AnswerIsNil applies the IsNil predicate on the "answer" field.

func AnswerLT

func AnswerLT(v string) predicate.Inquiry

AnswerLT applies the LT predicate on the "answer" field.

func AnswerLTE

func AnswerLTE(v string) predicate.Inquiry

AnswerLTE applies the LTE predicate on the "answer" field.

func AnswerNEQ

func AnswerNEQ(v string) predicate.Inquiry

AnswerNEQ applies the NEQ predicate on the "answer" field.

func AnswerNotIn

func AnswerNotIn(vs ...string) predicate.Inquiry

AnswerNotIn applies the NotIn predicate on the "answer" field.

func AnswerNotNil

func AnswerNotNil() predicate.Inquiry

AnswerNotNil applies the NotNil predicate on the "answer" field.

func Context

func Context(v string) predicate.Inquiry

Context applies equality check predicate on the "context" field. It's identical to ContextEQ.

func ContextContains

func ContextContains(v string) predicate.Inquiry

ContextContains applies the Contains predicate on the "context" field.

func ContextContainsFold

func ContextContainsFold(v string) predicate.Inquiry

ContextContainsFold applies the ContainsFold predicate on the "context" field.

func ContextEQ

func ContextEQ(v string) predicate.Inquiry

ContextEQ applies the EQ predicate on the "context" field.

func ContextEqualFold

func ContextEqualFold(v string) predicate.Inquiry

ContextEqualFold applies the EqualFold predicate on the "context" field.

func ContextGT

func ContextGT(v string) predicate.Inquiry

ContextGT applies the GT predicate on the "context" field.

func ContextGTE

func ContextGTE(v string) predicate.Inquiry

ContextGTE applies the GTE predicate on the "context" field.

func ContextHasPrefix

func ContextHasPrefix(v string) predicate.Inquiry

ContextHasPrefix applies the HasPrefix predicate on the "context" field.

func ContextHasSuffix

func ContextHasSuffix(v string) predicate.Inquiry

ContextHasSuffix applies the HasSuffix predicate on the "context" field.

func ContextIn

func ContextIn(vs ...string) predicate.Inquiry

ContextIn applies the In predicate on the "context" field.

func ContextIsNil

func ContextIsNil() predicate.Inquiry

ContextIsNil applies the IsNil predicate on the "context" field.

func ContextLT

func ContextLT(v string) predicate.Inquiry

ContextLT applies the LT predicate on the "context" field.

func ContextLTE

func ContextLTE(v string) predicate.Inquiry

ContextLTE applies the LTE predicate on the "context" field.

func ContextNEQ

func ContextNEQ(v string) predicate.Inquiry

ContextNEQ applies the NEQ predicate on the "context" field.

func ContextNotIn

func ContextNotIn(vs ...string) predicate.Inquiry

ContextNotIn applies the NotIn predicate on the "context" field.

func ContextNotNil

func ContextNotNil() predicate.Inquiry

ContextNotNil applies the NotNil predicate on the "context" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Inquiry

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Inquiry

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Inquiry

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Inquiry

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Inquiry

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Inquiry

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Inquiry

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

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func ID

func ID(id uuid.UUID) predicate.Inquiry

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Inquiry

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Inquiry

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Inquiry

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Inquiry

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Inquiry

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Inquiry

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Inquiry

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Inquiry

IDNotIn applies the NotIn predicate on the ID field.

func KnowledgeKey

func KnowledgeKey(v string) predicate.Inquiry

KnowledgeKey applies equality check predicate on the "knowledge_key" field. It's identical to KnowledgeKeyEQ.

func KnowledgeKeyContains

func KnowledgeKeyContains(v string) predicate.Inquiry

KnowledgeKeyContains applies the Contains predicate on the "knowledge_key" field.

func KnowledgeKeyContainsFold

func KnowledgeKeyContainsFold(v string) predicate.Inquiry

KnowledgeKeyContainsFold applies the ContainsFold predicate on the "knowledge_key" field.

func KnowledgeKeyEQ

func KnowledgeKeyEQ(v string) predicate.Inquiry

KnowledgeKeyEQ applies the EQ predicate on the "knowledge_key" field.

func KnowledgeKeyEqualFold

func KnowledgeKeyEqualFold(v string) predicate.Inquiry

KnowledgeKeyEqualFold applies the EqualFold predicate on the "knowledge_key" field.

func KnowledgeKeyGT

func KnowledgeKeyGT(v string) predicate.Inquiry

KnowledgeKeyGT applies the GT predicate on the "knowledge_key" field.

func KnowledgeKeyGTE

func KnowledgeKeyGTE(v string) predicate.Inquiry

KnowledgeKeyGTE applies the GTE predicate on the "knowledge_key" field.

func KnowledgeKeyHasPrefix

func KnowledgeKeyHasPrefix(v string) predicate.Inquiry

KnowledgeKeyHasPrefix applies the HasPrefix predicate on the "knowledge_key" field.

func KnowledgeKeyHasSuffix

func KnowledgeKeyHasSuffix(v string) predicate.Inquiry

KnowledgeKeyHasSuffix applies the HasSuffix predicate on the "knowledge_key" field.

func KnowledgeKeyIn

func KnowledgeKeyIn(vs ...string) predicate.Inquiry

KnowledgeKeyIn applies the In predicate on the "knowledge_key" field.

func KnowledgeKeyIsNil

func KnowledgeKeyIsNil() predicate.Inquiry

KnowledgeKeyIsNil applies the IsNil predicate on the "knowledge_key" field.

func KnowledgeKeyLT

func KnowledgeKeyLT(v string) predicate.Inquiry

KnowledgeKeyLT applies the LT predicate on the "knowledge_key" field.

func KnowledgeKeyLTE

func KnowledgeKeyLTE(v string) predicate.Inquiry

KnowledgeKeyLTE applies the LTE predicate on the "knowledge_key" field.

func KnowledgeKeyNEQ

func KnowledgeKeyNEQ(v string) predicate.Inquiry

KnowledgeKeyNEQ applies the NEQ predicate on the "knowledge_key" field.

func KnowledgeKeyNotIn

func KnowledgeKeyNotIn(vs ...string) predicate.Inquiry

KnowledgeKeyNotIn applies the NotIn predicate on the "knowledge_key" field.

func KnowledgeKeyNotNil

func KnowledgeKeyNotNil() predicate.Inquiry

KnowledgeKeyNotNil applies the NotNil predicate on the "knowledge_key" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Inquiry) predicate.Inquiry

Or groups predicates with the OR operator between them.

func PriorityEQ

func PriorityEQ(v Priority) predicate.Inquiry

PriorityEQ applies the EQ predicate on the "priority" field.

func PriorityIn

func PriorityIn(vs ...Priority) predicate.Inquiry

PriorityIn applies the In predicate on the "priority" field.

func PriorityNEQ

func PriorityNEQ(v Priority) predicate.Inquiry

PriorityNEQ applies the NEQ predicate on the "priority" field.

func PriorityNotIn

func PriorityNotIn(vs ...Priority) predicate.Inquiry

PriorityNotIn applies the NotIn predicate on the "priority" field.

func PriorityValidator

func PriorityValidator(pr Priority) error

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

func Question

func Question(v string) predicate.Inquiry

Question applies equality check predicate on the "question" field. It's identical to QuestionEQ.

func QuestionContains

func QuestionContains(v string) predicate.Inquiry

QuestionContains applies the Contains predicate on the "question" field.

func QuestionContainsFold

func QuestionContainsFold(v string) predicate.Inquiry

QuestionContainsFold applies the ContainsFold predicate on the "question" field.

func QuestionEQ

func QuestionEQ(v string) predicate.Inquiry

QuestionEQ applies the EQ predicate on the "question" field.

func QuestionEqualFold

func QuestionEqualFold(v string) predicate.Inquiry

QuestionEqualFold applies the EqualFold predicate on the "question" field.

func QuestionGT

func QuestionGT(v string) predicate.Inquiry

QuestionGT applies the GT predicate on the "question" field.

func QuestionGTE

func QuestionGTE(v string) predicate.Inquiry

QuestionGTE applies the GTE predicate on the "question" field.

func QuestionHasPrefix

func QuestionHasPrefix(v string) predicate.Inquiry

QuestionHasPrefix applies the HasPrefix predicate on the "question" field.

func QuestionHasSuffix

func QuestionHasSuffix(v string) predicate.Inquiry

QuestionHasSuffix applies the HasSuffix predicate on the "question" field.

func QuestionIn

func QuestionIn(vs ...string) predicate.Inquiry

QuestionIn applies the In predicate on the "question" field.

func QuestionLT

func QuestionLT(v string) predicate.Inquiry

QuestionLT applies the LT predicate on the "question" field.

func QuestionLTE

func QuestionLTE(v string) predicate.Inquiry

QuestionLTE applies the LTE predicate on the "question" field.

func QuestionNEQ

func QuestionNEQ(v string) predicate.Inquiry

QuestionNEQ applies the NEQ predicate on the "question" field.

func QuestionNotIn

func QuestionNotIn(vs ...string) predicate.Inquiry

QuestionNotIn applies the NotIn predicate on the "question" field.

func ResolvedAt

func ResolvedAt(v time.Time) predicate.Inquiry

ResolvedAt applies equality check predicate on the "resolved_at" field. It's identical to ResolvedAtEQ.

func ResolvedAtEQ

func ResolvedAtEQ(v time.Time) predicate.Inquiry

ResolvedAtEQ applies the EQ predicate on the "resolved_at" field.

func ResolvedAtGT

func ResolvedAtGT(v time.Time) predicate.Inquiry

ResolvedAtGT applies the GT predicate on the "resolved_at" field.

func ResolvedAtGTE

func ResolvedAtGTE(v time.Time) predicate.Inquiry

ResolvedAtGTE applies the GTE predicate on the "resolved_at" field.

func ResolvedAtIn

func ResolvedAtIn(vs ...time.Time) predicate.Inquiry

ResolvedAtIn applies the In predicate on the "resolved_at" field.

func ResolvedAtIsNil

func ResolvedAtIsNil() predicate.Inquiry

ResolvedAtIsNil applies the IsNil predicate on the "resolved_at" field.

func ResolvedAtLT

func ResolvedAtLT(v time.Time) predicate.Inquiry

ResolvedAtLT applies the LT predicate on the "resolved_at" field.

func ResolvedAtLTE

func ResolvedAtLTE(v time.Time) predicate.Inquiry

ResolvedAtLTE applies the LTE predicate on the "resolved_at" field.

func ResolvedAtNEQ

func ResolvedAtNEQ(v time.Time) predicate.Inquiry

ResolvedAtNEQ applies the NEQ predicate on the "resolved_at" field.

func ResolvedAtNotIn

func ResolvedAtNotIn(vs ...time.Time) predicate.Inquiry

ResolvedAtNotIn applies the NotIn predicate on the "resolved_at" field.

func ResolvedAtNotNil

func ResolvedAtNotNil() predicate.Inquiry

ResolvedAtNotNil applies the NotNil predicate on the "resolved_at" field.

func SessionKey

func SessionKey(v string) predicate.Inquiry

SessionKey applies equality check predicate on the "session_key" field. It's identical to SessionKeyEQ.

func SessionKeyContains

func SessionKeyContains(v string) predicate.Inquiry

SessionKeyContains applies the Contains predicate on the "session_key" field.

func SessionKeyContainsFold

func SessionKeyContainsFold(v string) predicate.Inquiry

SessionKeyContainsFold applies the ContainsFold predicate on the "session_key" field.

func SessionKeyEQ

func SessionKeyEQ(v string) predicate.Inquiry

SessionKeyEQ applies the EQ predicate on the "session_key" field.

func SessionKeyEqualFold

func SessionKeyEqualFold(v string) predicate.Inquiry

SessionKeyEqualFold applies the EqualFold predicate on the "session_key" field.

func SessionKeyGT

func SessionKeyGT(v string) predicate.Inquiry

SessionKeyGT applies the GT predicate on the "session_key" field.

func SessionKeyGTE

func SessionKeyGTE(v string) predicate.Inquiry

SessionKeyGTE applies the GTE predicate on the "session_key" field.

func SessionKeyHasPrefix

func SessionKeyHasPrefix(v string) predicate.Inquiry

SessionKeyHasPrefix applies the HasPrefix predicate on the "session_key" field.

func SessionKeyHasSuffix

func SessionKeyHasSuffix(v string) predicate.Inquiry

SessionKeyHasSuffix applies the HasSuffix predicate on the "session_key" field.

func SessionKeyIn

func SessionKeyIn(vs ...string) predicate.Inquiry

SessionKeyIn applies the In predicate on the "session_key" field.

func SessionKeyLT

func SessionKeyLT(v string) predicate.Inquiry

SessionKeyLT applies the LT predicate on the "session_key" field.

func SessionKeyLTE

func SessionKeyLTE(v string) predicate.Inquiry

SessionKeyLTE applies the LTE predicate on the "session_key" field.

func SessionKeyNEQ

func SessionKeyNEQ(v string) predicate.Inquiry

SessionKeyNEQ applies the NEQ predicate on the "session_key" field.

func SessionKeyNotIn

func SessionKeyNotIn(vs ...string) predicate.Inquiry

SessionKeyNotIn applies the NotIn predicate on the "session_key" field.

func SourceObservationID

func SourceObservationID(v string) predicate.Inquiry

SourceObservationID applies equality check predicate on the "source_observation_id" field. It's identical to SourceObservationIDEQ.

func SourceObservationIDContains

func SourceObservationIDContains(v string) predicate.Inquiry

SourceObservationIDContains applies the Contains predicate on the "source_observation_id" field.

func SourceObservationIDContainsFold

func SourceObservationIDContainsFold(v string) predicate.Inquiry

SourceObservationIDContainsFold applies the ContainsFold predicate on the "source_observation_id" field.

func SourceObservationIDEQ

func SourceObservationIDEQ(v string) predicate.Inquiry

SourceObservationIDEQ applies the EQ predicate on the "source_observation_id" field.

func SourceObservationIDEqualFold

func SourceObservationIDEqualFold(v string) predicate.Inquiry

SourceObservationIDEqualFold applies the EqualFold predicate on the "source_observation_id" field.

func SourceObservationIDGT

func SourceObservationIDGT(v string) predicate.Inquiry

SourceObservationIDGT applies the GT predicate on the "source_observation_id" field.

func SourceObservationIDGTE

func SourceObservationIDGTE(v string) predicate.Inquiry

SourceObservationIDGTE applies the GTE predicate on the "source_observation_id" field.

func SourceObservationIDHasPrefix

func SourceObservationIDHasPrefix(v string) predicate.Inquiry

SourceObservationIDHasPrefix applies the HasPrefix predicate on the "source_observation_id" field.

func SourceObservationIDHasSuffix

func SourceObservationIDHasSuffix(v string) predicate.Inquiry

SourceObservationIDHasSuffix applies the HasSuffix predicate on the "source_observation_id" field.

func SourceObservationIDIn

func SourceObservationIDIn(vs ...string) predicate.Inquiry

SourceObservationIDIn applies the In predicate on the "source_observation_id" field.

func SourceObservationIDIsNil

func SourceObservationIDIsNil() predicate.Inquiry

SourceObservationIDIsNil applies the IsNil predicate on the "source_observation_id" field.

func SourceObservationIDLT

func SourceObservationIDLT(v string) predicate.Inquiry

SourceObservationIDLT applies the LT predicate on the "source_observation_id" field.

func SourceObservationIDLTE

func SourceObservationIDLTE(v string) predicate.Inquiry

SourceObservationIDLTE applies the LTE predicate on the "source_observation_id" field.

func SourceObservationIDNEQ

func SourceObservationIDNEQ(v string) predicate.Inquiry

SourceObservationIDNEQ applies the NEQ predicate on the "source_observation_id" field.

func SourceObservationIDNotIn

func SourceObservationIDNotIn(vs ...string) predicate.Inquiry

SourceObservationIDNotIn applies the NotIn predicate on the "source_observation_id" field.

func SourceObservationIDNotNil

func SourceObservationIDNotNil() predicate.Inquiry

SourceObservationIDNotNil applies the NotNil predicate on the "source_observation_id" field.

func StatusEQ

func StatusEQ(v Status) predicate.Inquiry

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Inquiry

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Inquiry

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Inquiry

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

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

func Topic

func Topic(v string) predicate.Inquiry

Topic applies equality check predicate on the "topic" field. It's identical to TopicEQ.

func TopicContains

func TopicContains(v string) predicate.Inquiry

TopicContains applies the Contains predicate on the "topic" field.

func TopicContainsFold

func TopicContainsFold(v string) predicate.Inquiry

TopicContainsFold applies the ContainsFold predicate on the "topic" field.

func TopicEQ

func TopicEQ(v string) predicate.Inquiry

TopicEQ applies the EQ predicate on the "topic" field.

func TopicEqualFold

func TopicEqualFold(v string) predicate.Inquiry

TopicEqualFold applies the EqualFold predicate on the "topic" field.

func TopicGT

func TopicGT(v string) predicate.Inquiry

TopicGT applies the GT predicate on the "topic" field.

func TopicGTE

func TopicGTE(v string) predicate.Inquiry

TopicGTE applies the GTE predicate on the "topic" field.

func TopicHasPrefix

func TopicHasPrefix(v string) predicate.Inquiry

TopicHasPrefix applies the HasPrefix predicate on the "topic" field.

func TopicHasSuffix

func TopicHasSuffix(v string) predicate.Inquiry

TopicHasSuffix applies the HasSuffix predicate on the "topic" field.

func TopicIn

func TopicIn(vs ...string) predicate.Inquiry

TopicIn applies the In predicate on the "topic" field.

func TopicLT

func TopicLT(v string) predicate.Inquiry

TopicLT applies the LT predicate on the "topic" field.

func TopicLTE

func TopicLTE(v string) predicate.Inquiry

TopicLTE applies the LTE predicate on the "topic" field.

func TopicNEQ

func TopicNEQ(v string) predicate.Inquiry

TopicNEQ applies the NEQ predicate on the "topic" field.

func TopicNotIn

func TopicNotIn(vs ...string) predicate.Inquiry

TopicNotIn applies the NotIn predicate on the "topic" 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 Inquiry queries.

func ByAnswer

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

ByAnswer orders the results by the answer field.

func ByContext

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

ByContext orders the results by the context field.

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 ByKnowledgeKey

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

ByKnowledgeKey orders the results by the knowledge_key field.

func ByPriority

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

ByPriority orders the results by the priority field.

func ByQuestion

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

ByQuestion orders the results by the question field.

func ByResolvedAt

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

ByResolvedAt orders the results by the resolved_at field.

func BySessionKey

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

BySessionKey orders the results by the session_key field.

func BySourceObservationID

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

BySourceObservationID orders the results by the source_observation_id field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTopic

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

ByTopic orders the results by the topic field.

type Priority

type Priority string

Priority defines the type for the "priority" enum field.

const (
	PriorityLow    Priority = "low"
	PriorityMedium Priority = "medium"
	PriorityHigh   Priority = "high"
)

Priority values.

func (Priority) String

func (pr Priority) String() string

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending   Status = "pending"
	StatusResolved  Status = "resolved"
	StatusDismissed Status = "dismissed"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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