Documentation
¶
Index ¶
- Constants
- Variables
- func LifecycleDatlyType() reflect.Type
- func WriterDatlyType() reflect.Type
- func WriterHandlerCurrentWriterIndexByAgentConfigUsedIdKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByAgentIdUsedKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByConversationIdKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByCreatedAtKey(value *CurrentWriterView) (time.Time, bool)
- func WriterHandlerCurrentWriterIndexByErrorMessageKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByGoalIdKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByIdKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByModelOverrideKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByModelOverrideProviderKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByModelParamsOverrideKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByOriginKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByQueueSeqKey(value *CurrentWriterView) (int64, bool)
- func WriterHandlerCurrentWriterIndexByRetryOfKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByRunIdKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByStartedByMessageIdKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByStatusKey(value *CurrentWriterView) (string, bool)
- func WriterHandlerCurrentWriterIndexByStatusReasonKey(value *CurrentWriterView) (string, bool)
- type CurrentWriterView
- type Input
- func (input *Input) Init(context.Context) error
- func (input *Input) PrepareReadIndexes(ctx context.Context) error
- func (input *Input) ReadIndexes(ctx context.Context) (*WriterHandlerReadIndexes, error)
- func (input *Input) SetCurrentWriter(value []*CurrentWriterView)
- func (input *Input) SetOrphanColumn(value string)
- func (input *Input) SetOrphanDetach(value bool)
- func (input *Input) SetTurns(value []*Turn)
- func (input *Input) SetWriterKeys(value []WriterKeysRow)
- type InputHas
- type Lifecycle
- func (hooks *Lifecycle) AfterQueue(ctx context.Context, entity *Turn, ...) error
- func (hooks *Lifecycle) AfterSequence(ctx context.Context, entity *Turn, ...) error
- func (hooks *Lifecycle) Finalize(ctx context.Context, input *Input, output *Output, outcome xhandler.Outcome) error
- func (hooks *Lifecycle) Init(ctx context.Context, entity *Turn, ...) error
- func (hooks *Lifecycle) Validate(ctx context.Context, entity *Turn, ...) error
- type Output
- type Turn
- func (entity *Turn) GetAgentConfigUsedId() *string
- func (entity *Turn) GetAgentIdUsed() *string
- func (entity *Turn) GetConversationId() string
- func (entity *Turn) GetCreatedAt() *time.Time
- func (entity *Turn) GetErrorMessage() *string
- func (entity *Turn) GetGoalId() *string
- func (entity *Turn) GetId() string
- func (entity *Turn) GetModelOverride() *string
- func (entity *Turn) GetModelOverrideProvider() *string
- func (entity *Turn) GetModelParamsOverride() *string
- func (entity *Turn) GetOrigin() *string
- func (entity *Turn) GetQueueSeq() *int64
- func (entity *Turn) GetRetryOf() *string
- func (entity *Turn) GetRunId() *string
- func (entity *Turn) GetShouldDelete() bool
- func (entity *Turn) GetStartedByMessageId() *string
- func (entity *Turn) GetStatus() string
- func (entity *Turn) GetStatusReason() *string
- func (entity *Turn) SetAgentConfigUsedId(value *string)
- func (entity *Turn) SetAgentIdUsed(value *string)
- func (entity *Turn) SetConversationId(value string)
- func (entity *Turn) SetCreatedAt(value *time.Time)
- func (entity *Turn) SetErrorMessage(value *string)
- func (entity *Turn) SetGoalId(value *string)
- func (entity *Turn) SetId(value string)
- func (entity *Turn) SetModelOverride(value *string)
- func (entity *Turn) SetModelOverrideProvider(value *string)
- func (entity *Turn) SetModelParamsOverride(value *string)
- func (entity *Turn) SetOrigin(value *string)
- func (entity *Turn) SetQueueSeq(value *int64)
- func (entity *Turn) SetRetryOf(value *string)
- func (entity *Turn) SetRunId(value *string)
- func (entity *Turn) SetShouldDelete(value bool)
- func (entity *Turn) SetStartedByMessageId(value *string)
- func (entity *Turn) SetStatus(value string)
- func (entity *Turn) SetStatusReason(value *string)
- type TurnHas
- type WriterComponent
- type WriterHandlerCurrentWriterGroupedByAgentConfigUsedId
- type WriterHandlerCurrentWriterGroupedByAgentIdUsed
- type WriterHandlerCurrentWriterGroupedByConversationId
- type WriterHandlerCurrentWriterGroupedByCreatedAt
- type WriterHandlerCurrentWriterGroupedByErrorMessage
- type WriterHandlerCurrentWriterGroupedByGoalId
- type WriterHandlerCurrentWriterGroupedById
- type WriterHandlerCurrentWriterGroupedByModelOverride
- type WriterHandlerCurrentWriterGroupedByModelOverrideProvider
- type WriterHandlerCurrentWriterGroupedByModelParamsOverride
- type WriterHandlerCurrentWriterGroupedByOrigin
- type WriterHandlerCurrentWriterGroupedByQueueSeq
- type WriterHandlerCurrentWriterGroupedByRetryOf
- type WriterHandlerCurrentWriterGroupedByRunId
- type WriterHandlerCurrentWriterGroupedByStartedByMessageId
- type WriterHandlerCurrentWriterGroupedByStatus
- type WriterHandlerCurrentWriterGroupedByStatusReason
- type WriterHandlerCurrentWriterIndexedByAgentConfigUsedId
- type WriterHandlerCurrentWriterIndexedByAgentIdUsed
- type WriterHandlerCurrentWriterIndexedByConversationId
- type WriterHandlerCurrentWriterIndexedByCreatedAt
- type WriterHandlerCurrentWriterIndexedByErrorMessage
- type WriterHandlerCurrentWriterIndexedByGoalId
- type WriterHandlerCurrentWriterIndexedById
- type WriterHandlerCurrentWriterIndexedByModelOverride
- type WriterHandlerCurrentWriterIndexedByModelOverrideProvider
- type WriterHandlerCurrentWriterIndexedByModelParamsOverride
- type WriterHandlerCurrentWriterIndexedByOrigin
- type WriterHandlerCurrentWriterIndexedByQueueSeq
- type WriterHandlerCurrentWriterIndexedByRetryOf
- type WriterHandlerCurrentWriterIndexedByRunId
- type WriterHandlerCurrentWriterIndexedByStartedByMessageId
- type WriterHandlerCurrentWriterIndexedByStatus
- type WriterHandlerCurrentWriterIndexedByStatusReason
- type WriterHandlerCurrentWriterSlice
- func (rows WriterHandlerCurrentWriterSlice) GroupByAgentConfigUsedId() WriterHandlerCurrentWriterGroupedByAgentConfigUsedId
- func (rows WriterHandlerCurrentWriterSlice) GroupByAgentIdUsed() WriterHandlerCurrentWriterGroupedByAgentIdUsed
- func (rows WriterHandlerCurrentWriterSlice) GroupByConversationId() WriterHandlerCurrentWriterGroupedByConversationId
- func (rows WriterHandlerCurrentWriterSlice) GroupByCreatedAt() WriterHandlerCurrentWriterGroupedByCreatedAt
- func (rows WriterHandlerCurrentWriterSlice) GroupByErrorMessage() WriterHandlerCurrentWriterGroupedByErrorMessage
- func (rows WriterHandlerCurrentWriterSlice) GroupByGoalId() WriterHandlerCurrentWriterGroupedByGoalId
- func (rows WriterHandlerCurrentWriterSlice) GroupById() WriterHandlerCurrentWriterGroupedById
- func (rows WriterHandlerCurrentWriterSlice) GroupByModelOverride() WriterHandlerCurrentWriterGroupedByModelOverride
- func (rows WriterHandlerCurrentWriterSlice) GroupByModelOverrideProvider() WriterHandlerCurrentWriterGroupedByModelOverrideProvider
- func (rows WriterHandlerCurrentWriterSlice) GroupByModelParamsOverride() WriterHandlerCurrentWriterGroupedByModelParamsOverride
- func (rows WriterHandlerCurrentWriterSlice) GroupByOrigin() WriterHandlerCurrentWriterGroupedByOrigin
- func (rows WriterHandlerCurrentWriterSlice) GroupByQueueSeq() WriterHandlerCurrentWriterGroupedByQueueSeq
- func (rows WriterHandlerCurrentWriterSlice) GroupByRetryOf() WriterHandlerCurrentWriterGroupedByRetryOf
- func (rows WriterHandlerCurrentWriterSlice) GroupByRunId() WriterHandlerCurrentWriterGroupedByRunId
- func (rows WriterHandlerCurrentWriterSlice) GroupByStartedByMessageId() WriterHandlerCurrentWriterGroupedByStartedByMessageId
- func (rows WriterHandlerCurrentWriterSlice) GroupByStatus() WriterHandlerCurrentWriterGroupedByStatus
- func (rows WriterHandlerCurrentWriterSlice) GroupByStatusReason() WriterHandlerCurrentWriterGroupedByStatusReason
- func (rows WriterHandlerCurrentWriterSlice) IndexByAgentConfigUsedId() (WriterHandlerCurrentWriterIndexedByAgentConfigUsedId, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByAgentIdUsed() (WriterHandlerCurrentWriterIndexedByAgentIdUsed, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByConversationId() (WriterHandlerCurrentWriterIndexedByConversationId, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByCreatedAt() (WriterHandlerCurrentWriterIndexedByCreatedAt, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByErrorMessage() (WriterHandlerCurrentWriterIndexedByErrorMessage, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByGoalId() (WriterHandlerCurrentWriterIndexedByGoalId, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexById() (WriterHandlerCurrentWriterIndexedById, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByModelOverride() (WriterHandlerCurrentWriterIndexedByModelOverride, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByModelOverrideProvider() (WriterHandlerCurrentWriterIndexedByModelOverrideProvider, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByModelParamsOverride() (WriterHandlerCurrentWriterIndexedByModelParamsOverride, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByOrigin() (WriterHandlerCurrentWriterIndexedByOrigin, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByQueueSeq() (WriterHandlerCurrentWriterIndexedByQueueSeq, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByRetryOf() (WriterHandlerCurrentWriterIndexedByRetryOf, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByRunId() (WriterHandlerCurrentWriterIndexedByRunId, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByStartedByMessageId() (WriterHandlerCurrentWriterIndexedByStartedByMessageId, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByStatus() (WriterHandlerCurrentWriterIndexedByStatus, error)
- func (rows WriterHandlerCurrentWriterSlice) IndexByStatusReason() (WriterHandlerCurrentWriterIndexedByStatusReason, error)
- type WriterHandlerReadIndexes
- type WriterKeysRow
Constants ¶
View Source
const WriterDatlyResourceNamespace = "datly_turn_write_writer"
DatlyResourceNamespace identifies this package's generated resource filesystem.
Variables ¶
View Source
var ( LifecycleHooks = new(Lifecycle) LifecycleDatly = LifecycleDatlyType() )
View Source
var WriterDatly = new(WriterComponent)
The public value supports explicit component wiring.
View Source
var WriterDatlyResources embed.FS
Functions ¶
func LifecycleDatlyType ¶
func WriterDatlyType ¶
WriterDatlyType returns the public component type.
func WriterHandlerCurrentWriterIndexByAgentConfigUsedIdKey ¶
func WriterHandlerCurrentWriterIndexByAgentConfigUsedIdKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByAgentIdUsedKey ¶
func WriterHandlerCurrentWriterIndexByAgentIdUsedKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByConversationIdKey ¶
func WriterHandlerCurrentWriterIndexByConversationIdKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByCreatedAtKey ¶
func WriterHandlerCurrentWriterIndexByCreatedAtKey(value *CurrentWriterView) (time.Time, bool)
func WriterHandlerCurrentWriterIndexByErrorMessageKey ¶
func WriterHandlerCurrentWriterIndexByErrorMessageKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByGoalIdKey ¶
func WriterHandlerCurrentWriterIndexByGoalIdKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByIdKey ¶
func WriterHandlerCurrentWriterIndexByIdKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByModelOverrideKey ¶
func WriterHandlerCurrentWriterIndexByModelOverrideKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByModelOverrideProviderKey ¶
func WriterHandlerCurrentWriterIndexByModelOverrideProviderKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByModelParamsOverrideKey ¶
func WriterHandlerCurrentWriterIndexByModelParamsOverrideKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByOriginKey ¶
func WriterHandlerCurrentWriterIndexByOriginKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByQueueSeqKey ¶
func WriterHandlerCurrentWriterIndexByQueueSeqKey(value *CurrentWriterView) (int64, bool)
func WriterHandlerCurrentWriterIndexByRetryOfKey ¶
func WriterHandlerCurrentWriterIndexByRetryOfKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByRunIdKey ¶
func WriterHandlerCurrentWriterIndexByRunIdKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByStartedByMessageIdKey ¶
func WriterHandlerCurrentWriterIndexByStartedByMessageIdKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByStatusKey ¶
func WriterHandlerCurrentWriterIndexByStatusKey(value *CurrentWriterView) (string, bool)
func WriterHandlerCurrentWriterIndexByStatusReasonKey ¶
func WriterHandlerCurrentWriterIndexByStatusReasonKey(value *CurrentWriterView) (string, bool)
Types ¶
type CurrentWriterView ¶
type CurrentWriterView struct {
Id string `validate:"required" sqlx:"id,primaryKey" json:"id"`
ConversationId string `validate:"required" json:"conversationId" sqlx:"conversation_id,refTable=conversation,refColumn=id,required=true"`
QueueSeq *int64 `sqlx:"queue_seq" json:"queueSeq,omitempty"`
Status string `validate:"required" json:"status" sqlx:"status,required=true"`
CreatedAt *time.Time `sqlx:"created_at,required=true" json:"createdAt,omitempty"`
Origin *string `sqlx:"origin" json:"origin,omitempty"`
GoalId *string `sqlx:"goal_id" json:"goalId,omitempty"`
StatusReason *string `sqlx:"status_reason" json:"statusReason,omitempty"`
ErrorMessage *string `sqlx:"error_message" json:"errorMessage,omitempty"`
StartedByMessageId *string `sqlx:"started_by_message_id" json:"startedByMessageId,omitempty"`
RetryOf *string `sqlx:"retry_of" json:"retryOf,omitempty"`
AgentIdUsed *string `sqlx:"agent_id_used" json:"agentIdUsed,omitempty"`
AgentConfigUsedId *string `sqlx:"agent_config_used_id" json:"agentConfigUsedId,omitempty"`
ModelOverrideProvider *string `sqlx:"model_override_provider" json:"modelOverrideProvider,omitempty"`
ModelOverride *string `sqlx:"model_override" json:"modelOverride,omitempty"`
ModelParamsOverride *string `sqlx:"model_params_override" json:"modelParamsOverride,omitempty"`
RunId *string `sqlx:"run_id" json:"runId,omitempty"`
}
CurrentWriterView is generated canonical view metadata for writer.
type Input ¶
type Input struct {
OrphanDetach bool `parameter:"OrphanDetach,kind=orphandetach,in=enabledDetach,dataType=bool,required=false"`
OrphanColumn string `parameter:"OrphanColumn,kind=orphandetach,in=column,dataType=string,required=false"`
Turns []*Turn `` /* 182-byte string literal not displayed */
WriterKeys []WriterKeysRow `` /* 126-byte string literal not displayed */
CurrentWriter []*CurrentWriterView `` /* 158-byte string literal not displayed */
Has *InputHas `setMarker:"true" typeName:"InputHas" json:"-" sqlx:"-"`
// contains filtered or unexported fields
}
Input is the generated input scaffold for writer.
func (*Input) PrepareReadIndexes ¶
func (*Input) ReadIndexes ¶
func (input *Input) ReadIndexes(ctx context.Context) (*WriterHandlerReadIndexes, error)
func (*Input) SetCurrentWriter ¶
func (input *Input) SetCurrentWriter(value []*CurrentWriterView)
func (*Input) SetOrphanColumn ¶
func (*Input) SetOrphanDetach ¶
func (*Input) SetWriterKeys ¶
func (input *Input) SetWriterKeys(value []WriterKeysRow)
type Lifecycle ¶
type Lifecycle struct {
Input *Input `bind:"kind=input"`
}
Lifecycle customizes role Input.Turns.
func (*Lifecycle) AfterQueue ¶
func (*Lifecycle) AfterSequence ¶
type Output ¶
type Output struct {
Data []*Turn `parameter:"Data,kind=output,in=body,dataType=[]*Turn" json:"data,omitempty"`
}
Output is the generated output scaffold for writer.
type Turn ¶
type Turn struct {
ShouldDelete bool `sqlx:"-" writer:"delete" json:"shouldDelete,omitempty"`
Id string `validate:"required" sqlx:"id,primaryKey" json:"id"`
ConversationId string `validate:"required" json:"conversationId" sqlx:"conversation_id,refTable=conversation,refColumn=id,required=true"`
QueueSeq *int64 `sqlx:"queue_seq" json:"queueSeq,omitempty"`
Status string `validate:"required" json:"status" sqlx:"status,required=true"`
CreatedAt *time.Time `sqlx:"created_at,required=true" json:"createdAt,omitempty"`
Origin *string `sqlx:"origin" json:"origin,omitempty"`
GoalId *string `sqlx:"goal_id" json:"goalId,omitempty"`
StatusReason *string `sqlx:"status_reason" json:"statusReason,omitempty"`
ErrorMessage *string `sqlx:"error_message" json:"errorMessage,omitempty"`
StartedByMessageId *string `sqlx:"started_by_message_id" json:"startedByMessageId,omitempty"`
RetryOf *string `sqlx:"retry_of" json:"retryOf,omitempty"`
AgentIdUsed *string `sqlx:"agent_id_used" json:"agentIdUsed,omitempty"`
AgentConfigUsedId *string `sqlx:"agent_config_used_id" json:"agentConfigUsedId,omitempty"`
ModelOverrideProvider *string `sqlx:"model_override_provider" json:"modelOverrideProvider,omitempty"`
ModelOverride *string `sqlx:"model_override" json:"modelOverride,omitempty"`
ModelParamsOverride *string `sqlx:"model_params_override" json:"modelParamsOverride,omitempty"`
RunId *string `sqlx:"run_id" json:"runId,omitempty"`
Has *TurnHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-" typeName:"TurnHas"`
}
Turn is generated canonical view metadata for writer.
func (*Turn) GetAgentConfigUsedId ¶
func (*Turn) GetAgentIdUsed ¶
func (*Turn) GetConversationId ¶
func (*Turn) GetCreatedAt ¶
func (*Turn) GetErrorMessage ¶
func (*Turn) GetModelOverride ¶
func (*Turn) GetModelOverrideProvider ¶
func (*Turn) GetModelParamsOverride ¶
func (*Turn) GetQueueSeq ¶
func (*Turn) GetRetryOf ¶
func (*Turn) GetShouldDelete ¶
func (*Turn) GetStartedByMessageId ¶
func (*Turn) GetStatusReason ¶
func (*Turn) SetAgentConfigUsedId ¶
func (*Turn) SetAgentIdUsed ¶
func (*Turn) SetConversationId ¶
func (*Turn) SetCreatedAt ¶
func (*Turn) SetErrorMessage ¶
func (*Turn) SetModelOverride ¶
func (*Turn) SetModelOverrideProvider ¶
func (*Turn) SetModelParamsOverride ¶
func (*Turn) SetQueueSeq ¶
func (*Turn) SetRetryOf ¶
func (*Turn) SetShouldDelete ¶
func (*Turn) SetStartedByMessageId ¶
func (*Turn) SetStatusReason ¶
type TurnHas ¶
type TurnHas struct {
ShouldDelete bool
Id bool
ConversationId bool
QueueSeq bool
Status bool
CreatedAt bool
Origin bool
GoalId bool
StatusReason bool
ErrorMessage bool
StartedByMessageId bool
RetryOf bool
AgentIdUsed bool
AgentConfigUsedId bool
ModelOverrideProvider bool
ModelOverride bool
ModelParamsOverride bool
RunId bool
}
type WriterComponent ¶
type WriterComponent struct {
Contract xdatly.Component[Input, Output] "" /* 161-byte string literal not displayed */
}
Component is the generated component scaffold for writer.
func (WriterComponent) EmbedFS ¶
func (WriterComponent) EmbedFS() *embed.FS
func (WriterComponent) EmbedNamespace ¶
func (WriterComponent) EmbedNamespace() string
type WriterHandlerCurrentWriterGroupedByAgentConfigUsedId ¶
type WriterHandlerCurrentWriterGroupedByAgentConfigUsedId map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByAgentConfigUsedId) Has ¶
func (index WriterHandlerCurrentWriterGroupedByAgentConfigUsedId) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByAgentIdUsed ¶
type WriterHandlerCurrentWriterGroupedByAgentIdUsed map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByAgentIdUsed) Has ¶
func (index WriterHandlerCurrentWriterGroupedByAgentIdUsed) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByConversationId ¶
type WriterHandlerCurrentWriterGroupedByConversationId map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByConversationId) Has ¶
func (index WriterHandlerCurrentWriterGroupedByConversationId) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByCreatedAt ¶
type WriterHandlerCurrentWriterGroupedByCreatedAt map[time.Time][]*CurrentWriterView
type WriterHandlerCurrentWriterGroupedByErrorMessage ¶
type WriterHandlerCurrentWriterGroupedByErrorMessage map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByErrorMessage) Has ¶
func (index WriterHandlerCurrentWriterGroupedByErrorMessage) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByGoalId ¶
type WriterHandlerCurrentWriterGroupedByGoalId map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByGoalId) Has ¶
func (index WriterHandlerCurrentWriterGroupedByGoalId) Has(key string) bool
type WriterHandlerCurrentWriterGroupedById ¶
type WriterHandlerCurrentWriterGroupedById map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedById) Has ¶
func (index WriterHandlerCurrentWriterGroupedById) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByModelOverride ¶
type WriterHandlerCurrentWriterGroupedByModelOverride map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByModelOverride) Has ¶
func (index WriterHandlerCurrentWriterGroupedByModelOverride) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByModelOverrideProvider ¶
type WriterHandlerCurrentWriterGroupedByModelOverrideProvider map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByModelOverrideProvider) Has ¶
func (index WriterHandlerCurrentWriterGroupedByModelOverrideProvider) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByModelParamsOverride ¶
type WriterHandlerCurrentWriterGroupedByModelParamsOverride map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByModelParamsOverride) Has ¶
func (index WriterHandlerCurrentWriterGroupedByModelParamsOverride) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByOrigin ¶
type WriterHandlerCurrentWriterGroupedByOrigin map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByOrigin) Has ¶
func (index WriterHandlerCurrentWriterGroupedByOrigin) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByQueueSeq ¶
type WriterHandlerCurrentWriterGroupedByQueueSeq map[int64][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByQueueSeq) Has ¶
func (index WriterHandlerCurrentWriterGroupedByQueueSeq) Has(key int64) bool
type WriterHandlerCurrentWriterGroupedByRetryOf ¶
type WriterHandlerCurrentWriterGroupedByRetryOf map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByRetryOf) Has ¶
func (index WriterHandlerCurrentWriterGroupedByRetryOf) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByRunId ¶
type WriterHandlerCurrentWriterGroupedByRunId map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByRunId) Has ¶
func (index WriterHandlerCurrentWriterGroupedByRunId) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByStartedByMessageId ¶
type WriterHandlerCurrentWriterGroupedByStartedByMessageId map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByStartedByMessageId) Has ¶
func (index WriterHandlerCurrentWriterGroupedByStartedByMessageId) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByStatus ¶
type WriterHandlerCurrentWriterGroupedByStatus map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByStatus) Has ¶
func (index WriterHandlerCurrentWriterGroupedByStatus) Has(key string) bool
type WriterHandlerCurrentWriterGroupedByStatusReason ¶
type WriterHandlerCurrentWriterGroupedByStatusReason map[string][]*CurrentWriterView
func (WriterHandlerCurrentWriterGroupedByStatusReason) Has ¶
func (index WriterHandlerCurrentWriterGroupedByStatusReason) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByAgentConfigUsedId ¶
type WriterHandlerCurrentWriterIndexedByAgentConfigUsedId map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByAgentConfigUsedId) Has ¶
func (index WriterHandlerCurrentWriterIndexedByAgentConfigUsedId) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByAgentIdUsed ¶
type WriterHandlerCurrentWriterIndexedByAgentIdUsed map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByAgentIdUsed) Has ¶
func (index WriterHandlerCurrentWriterIndexedByAgentIdUsed) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByConversationId ¶
type WriterHandlerCurrentWriterIndexedByConversationId map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByConversationId) Has ¶
func (index WriterHandlerCurrentWriterIndexedByConversationId) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByCreatedAt ¶
type WriterHandlerCurrentWriterIndexedByCreatedAt map[time.Time]*CurrentWriterView
type WriterHandlerCurrentWriterIndexedByErrorMessage ¶
type WriterHandlerCurrentWriterIndexedByErrorMessage map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByErrorMessage) Has ¶
func (index WriterHandlerCurrentWriterIndexedByErrorMessage) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByGoalId ¶
type WriterHandlerCurrentWriterIndexedByGoalId map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByGoalId) Has ¶
func (index WriterHandlerCurrentWriterIndexedByGoalId) Has(key string) bool
type WriterHandlerCurrentWriterIndexedById ¶
type WriterHandlerCurrentWriterIndexedById map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedById) Has ¶
func (index WriterHandlerCurrentWriterIndexedById) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByModelOverride ¶
type WriterHandlerCurrentWriterIndexedByModelOverride map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByModelOverride) Has ¶
func (index WriterHandlerCurrentWriterIndexedByModelOverride) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByModelOverrideProvider ¶
type WriterHandlerCurrentWriterIndexedByModelOverrideProvider map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByModelOverrideProvider) Has ¶
func (index WriterHandlerCurrentWriterIndexedByModelOverrideProvider) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByModelParamsOverride ¶
type WriterHandlerCurrentWriterIndexedByModelParamsOverride map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByModelParamsOverride) Has ¶
func (index WriterHandlerCurrentWriterIndexedByModelParamsOverride) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByOrigin ¶
type WriterHandlerCurrentWriterIndexedByOrigin map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByOrigin) Has ¶
func (index WriterHandlerCurrentWriterIndexedByOrigin) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByQueueSeq ¶
type WriterHandlerCurrentWriterIndexedByQueueSeq map[int64]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByQueueSeq) Has ¶
func (index WriterHandlerCurrentWriterIndexedByQueueSeq) Has(key int64) bool
type WriterHandlerCurrentWriterIndexedByRetryOf ¶
type WriterHandlerCurrentWriterIndexedByRetryOf map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByRetryOf) Has ¶
func (index WriterHandlerCurrentWriterIndexedByRetryOf) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByRunId ¶
type WriterHandlerCurrentWriterIndexedByRunId map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByRunId) Has ¶
func (index WriterHandlerCurrentWriterIndexedByRunId) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByStartedByMessageId ¶
type WriterHandlerCurrentWriterIndexedByStartedByMessageId map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByStartedByMessageId) Has ¶
func (index WriterHandlerCurrentWriterIndexedByStartedByMessageId) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByStatus ¶
type WriterHandlerCurrentWriterIndexedByStatus map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByStatus) Has ¶
func (index WriterHandlerCurrentWriterIndexedByStatus) Has(key string) bool
type WriterHandlerCurrentWriterIndexedByStatusReason ¶
type WriterHandlerCurrentWriterIndexedByStatusReason map[string]*CurrentWriterView
func (WriterHandlerCurrentWriterIndexedByStatusReason) Has ¶
func (index WriterHandlerCurrentWriterIndexedByStatusReason) Has(key string) bool
type WriterHandlerCurrentWriterSlice ¶
type WriterHandlerCurrentWriterSlice []*CurrentWriterView
func (WriterHandlerCurrentWriterSlice) GroupByAgentConfigUsedId ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByAgentConfigUsedId() WriterHandlerCurrentWriterGroupedByAgentConfigUsedId
func (WriterHandlerCurrentWriterSlice) GroupByAgentIdUsed ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByAgentIdUsed() WriterHandlerCurrentWriterGroupedByAgentIdUsed
func (WriterHandlerCurrentWriterSlice) GroupByConversationId ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByConversationId() WriterHandlerCurrentWriterGroupedByConversationId
func (WriterHandlerCurrentWriterSlice) GroupByCreatedAt ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByCreatedAt() WriterHandlerCurrentWriterGroupedByCreatedAt
func (WriterHandlerCurrentWriterSlice) GroupByErrorMessage ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByErrorMessage() WriterHandlerCurrentWriterGroupedByErrorMessage
func (WriterHandlerCurrentWriterSlice) GroupByGoalId ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByGoalId() WriterHandlerCurrentWriterGroupedByGoalId
func (WriterHandlerCurrentWriterSlice) GroupById ¶
func (rows WriterHandlerCurrentWriterSlice) GroupById() WriterHandlerCurrentWriterGroupedById
func (WriterHandlerCurrentWriterSlice) GroupByModelOverride ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByModelOverride() WriterHandlerCurrentWriterGroupedByModelOverride
func (WriterHandlerCurrentWriterSlice) GroupByModelOverrideProvider ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByModelOverrideProvider() WriterHandlerCurrentWriterGroupedByModelOverrideProvider
func (WriterHandlerCurrentWriterSlice) GroupByModelParamsOverride ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByModelParamsOverride() WriterHandlerCurrentWriterGroupedByModelParamsOverride
func (WriterHandlerCurrentWriterSlice) GroupByOrigin ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByOrigin() WriterHandlerCurrentWriterGroupedByOrigin
func (WriterHandlerCurrentWriterSlice) GroupByQueueSeq ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByQueueSeq() WriterHandlerCurrentWriterGroupedByQueueSeq
func (WriterHandlerCurrentWriterSlice) GroupByRetryOf ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByRetryOf() WriterHandlerCurrentWriterGroupedByRetryOf
func (WriterHandlerCurrentWriterSlice) GroupByRunId ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByRunId() WriterHandlerCurrentWriterGroupedByRunId
func (WriterHandlerCurrentWriterSlice) GroupByStartedByMessageId ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByStartedByMessageId() WriterHandlerCurrentWriterGroupedByStartedByMessageId
func (WriterHandlerCurrentWriterSlice) GroupByStatus ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByStatus() WriterHandlerCurrentWriterGroupedByStatus
func (WriterHandlerCurrentWriterSlice) GroupByStatusReason ¶
func (rows WriterHandlerCurrentWriterSlice) GroupByStatusReason() WriterHandlerCurrentWriterGroupedByStatusReason
func (WriterHandlerCurrentWriterSlice) IndexByAgentConfigUsedId ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByAgentConfigUsedId() (WriterHandlerCurrentWriterIndexedByAgentConfigUsedId, error)
func (WriterHandlerCurrentWriterSlice) IndexByAgentIdUsed ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByAgentIdUsed() (WriterHandlerCurrentWriterIndexedByAgentIdUsed, error)
func (WriterHandlerCurrentWriterSlice) IndexByConversationId ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByConversationId() (WriterHandlerCurrentWriterIndexedByConversationId, error)
func (WriterHandlerCurrentWriterSlice) IndexByCreatedAt ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByCreatedAt() (WriterHandlerCurrentWriterIndexedByCreatedAt, error)
func (WriterHandlerCurrentWriterSlice) IndexByErrorMessage ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByErrorMessage() (WriterHandlerCurrentWriterIndexedByErrorMessage, error)
func (WriterHandlerCurrentWriterSlice) IndexByGoalId ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByGoalId() (WriterHandlerCurrentWriterIndexedByGoalId, error)
func (WriterHandlerCurrentWriterSlice) IndexById ¶
func (rows WriterHandlerCurrentWriterSlice) IndexById() (WriterHandlerCurrentWriterIndexedById, error)
func (WriterHandlerCurrentWriterSlice) IndexByModelOverride ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByModelOverride() (WriterHandlerCurrentWriterIndexedByModelOverride, error)
func (WriterHandlerCurrentWriterSlice) IndexByModelOverrideProvider ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByModelOverrideProvider() (WriterHandlerCurrentWriterIndexedByModelOverrideProvider, error)
func (WriterHandlerCurrentWriterSlice) IndexByModelParamsOverride ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByModelParamsOverride() (WriterHandlerCurrentWriterIndexedByModelParamsOverride, error)
func (WriterHandlerCurrentWriterSlice) IndexByOrigin ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByOrigin() (WriterHandlerCurrentWriterIndexedByOrigin, error)
func (WriterHandlerCurrentWriterSlice) IndexByQueueSeq ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByQueueSeq() (WriterHandlerCurrentWriterIndexedByQueueSeq, error)
func (WriterHandlerCurrentWriterSlice) IndexByRetryOf ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByRetryOf() (WriterHandlerCurrentWriterIndexedByRetryOf, error)
func (WriterHandlerCurrentWriterSlice) IndexByRunId ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByRunId() (WriterHandlerCurrentWriterIndexedByRunId, error)
func (WriterHandlerCurrentWriterSlice) IndexByStartedByMessageId ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByStartedByMessageId() (WriterHandlerCurrentWriterIndexedByStartedByMessageId, error)
func (WriterHandlerCurrentWriterSlice) IndexByStatus ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByStatus() (WriterHandlerCurrentWriterIndexedByStatus, error)
func (WriterHandlerCurrentWriterSlice) IndexByStatusReason ¶
func (rows WriterHandlerCurrentWriterSlice) IndexByStatusReason() (WriterHandlerCurrentWriterIndexedByStatusReason, error)
type WriterHandlerReadIndexes ¶
type WriterHandlerReadIndexes struct {
CurrentWriter WriterHandlerCurrentWriterSlice
CurrentWriterById WriterHandlerCurrentWriterIndexedById
}
func BuildWriterHandlerReadIndexes ¶
func BuildWriterHandlerReadIndexes(ctx context.Context, input *Input) (*WriterHandlerReadIndexes, error)
type WriterKeysRow ¶
type WriterKeysRow struct {
Id string `sqlx:"id"`
}
Click to show internal directories.
Click to hide internal directories.