Help us shape the future of Go! Take the 2026 Go Developer Survey

write

package
v0.1.58 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const WriterDatlyResourceNamespace = "datly_modelcall_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 LifecycleDatlyType() reflect.Type

func WriterDatlyType

func WriterDatlyType() reflect.Type

WriterDatlyType returns the public component type.

func WriterHandlerCurrentWriterIndexByCompletedAtKey

func WriterHandlerCurrentWriterIndexByCompletedAtKey(value *CurrentWriterView) (time.Time, bool)

func WriterHandlerCurrentWriterIndexByCompletionAcceptedPredictionTokensKey

func WriterHandlerCurrentWriterIndexByCompletionAcceptedPredictionTokensKey(value *CurrentWriterView) (int, bool)

func WriterHandlerCurrentWriterIndexByCompletionAudioTokensKey

func WriterHandlerCurrentWriterIndexByCompletionAudioTokensKey(value *CurrentWriterView) (int, bool)

func WriterHandlerCurrentWriterIndexByCompletionReasoningTokensKey

func WriterHandlerCurrentWriterIndexByCompletionReasoningTokensKey(value *CurrentWriterView) (int, bool)

func WriterHandlerCurrentWriterIndexByCompletionRejectedPredictionTokensKey

func WriterHandlerCurrentWriterIndexByCompletionRejectedPredictionTokensKey(value *CurrentWriterView) (int, bool)

func WriterHandlerCurrentWriterIndexByCompletionTokensKey

func WriterHandlerCurrentWriterIndexByCompletionTokensKey(value *CurrentWriterView) (int, bool)

func WriterHandlerCurrentWriterIndexByCostKey

func WriterHandlerCurrentWriterIndexByCostKey(value *CurrentWriterView) (float64, bool)

func WriterHandlerCurrentWriterIndexByErrorCodeKey

func WriterHandlerCurrentWriterIndexByErrorCodeKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByErrorMessageKey

func WriterHandlerCurrentWriterIndexByErrorMessageKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByFinishReasonKey

func WriterHandlerCurrentWriterIndexByFinishReasonKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByIterationKey

func WriterHandlerCurrentWriterIndexByIterationKey(value *CurrentWriterView) (int, bool)

func WriterHandlerCurrentWriterIndexByLatencyMsKey

func WriterHandlerCurrentWriterIndexByLatencyMsKey(value *CurrentWriterView) (int, bool)

func WriterHandlerCurrentWriterIndexByMessageIdKey

func WriterHandlerCurrentWriterIndexByMessageIdKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByModelKey

func WriterHandlerCurrentWriterIndexByModelKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByModelKindKey

func WriterHandlerCurrentWriterIndexByModelKindKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByPromptAudioTokensKey

func WriterHandlerCurrentWriterIndexByPromptAudioTokensKey(value *CurrentWriterView) (int, bool)

func WriterHandlerCurrentWriterIndexByPromptCachedTokensKey

func WriterHandlerCurrentWriterIndexByPromptCachedTokensKey(value *CurrentWriterView) (int, bool)

func WriterHandlerCurrentWriterIndexByPromptTokensKey

func WriterHandlerCurrentWriterIndexByPromptTokensKey(value *CurrentWriterView) (int, bool)

func WriterHandlerCurrentWriterIndexByProviderKey

func WriterHandlerCurrentWriterIndexByProviderKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByProviderRequestPayloadIdKey

func WriterHandlerCurrentWriterIndexByProviderRequestPayloadIdKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByProviderResponsePayloadIdKey

func WriterHandlerCurrentWriterIndexByProviderResponsePayloadIdKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByRequestPayloadIdKey

func WriterHandlerCurrentWriterIndexByRequestPayloadIdKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByResponsePayloadIdKey

func WriterHandlerCurrentWriterIndexByResponsePayloadIdKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByRunIdKey

func WriterHandlerCurrentWriterIndexByRunIdKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexBySpanIdKey

func WriterHandlerCurrentWriterIndexBySpanIdKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByStartedAtKey

func WriterHandlerCurrentWriterIndexByStartedAtKey(value *CurrentWriterView) (time.Time, bool)

func WriterHandlerCurrentWriterIndexByStatusKey

func WriterHandlerCurrentWriterIndexByStatusKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByStreamPayloadIdKey

func WriterHandlerCurrentWriterIndexByStreamPayloadIdKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByTotalTokensKey

func WriterHandlerCurrentWriterIndexByTotalTokensKey(value *CurrentWriterView) (int, bool)

func WriterHandlerCurrentWriterIndexByTraceIdKey

func WriterHandlerCurrentWriterIndexByTraceIdKey(value *CurrentWriterView) (string, bool)

func WriterHandlerCurrentWriterIndexByTurnIdKey

func WriterHandlerCurrentWriterIndexByTurnIdKey(value *CurrentWriterView) (string, bool)

Types

type CurrentWriterView

type CurrentWriterView struct {
	MessageId                          string     `validate:"required" sqlx:"message_id,primaryKey,refTable=message,refColumn=id" json:"messageId"`
	Provider                           string     `validate:"required" json:"provider" sqlx:"provider,required=true"`
	Model                              string     `validate:"required" json:"model" sqlx:"model,required=true"`
	ModelKind                          string     `validate:"required" json:"modelKind" sqlx:"model_kind,required=true"`
	Status                             string     `validate:"required" json:"status" sqlx:"status,required=true"`
	Cost                               *float64   `sqlx:"cost" json:"cost,omitempty"`
	TurnId                             *string    `sqlx:"turn_id,refTable=turn,refColumn=id" json:"turnId,omitempty"`
	ErrorCode                          *string    `sqlx:"error_code" json:"errorCode,omitempty"`
	ErrorMessage                       *string    `sqlx:"error_message" json:"errorMessage,omitempty"`
	FinishReason                       *string    `sqlx:"finish_reason" json:"finishReason,omitempty"`
	PromptTokens                       *int       `sqlx:"prompt_tokens" json:"promptTokens,omitempty"`
	PromptCachedTokens                 *int       `sqlx:"prompt_cached_tokens" json:"promptCachedTokens,omitempty"`
	CompletionTokens                   *int       `sqlx:"completion_tokens" json:"completionTokens,omitempty"`
	TotalTokens                        *int       `sqlx:"total_tokens" json:"totalTokens,omitempty"`
	PromptAudioTokens                  *int       `sqlx:"prompt_audio_tokens" json:"promptAudioTokens,omitempty"`
	CompletionReasoningTokens          *int       `sqlx:"completion_reasoning_tokens" json:"completionReasoningTokens,omitempty"`
	CompletionAudioTokens              *int       `sqlx:"completion_audio_tokens" json:"completionAudioTokens,omitempty"`
	CompletionAcceptedPredictionTokens *int       `sqlx:"completion_accepted_prediction_tokens" json:"completionAcceptedPredictionTokens,omitempty"`
	CompletionRejectedPredictionTokens *int       `sqlx:"completion_rejected_prediction_tokens" json:"completionRejectedPredictionTokens,omitempty"`
	StartedAt                          *time.Time `sqlx:"started_at" json:"startedAt,omitempty"`
	CompletedAt                        *time.Time `sqlx:"completed_at" json:"completedAt,omitempty"`
	LatencyMs                          *int       `sqlx:"latency_ms" json:"latencyMs,omitempty"`
	TraceId                            *string    `sqlx:"trace_id" json:"traceId,omitempty"`
	SpanId                             *string    `sqlx:"span_id" json:"spanId,omitempty"`
	RequestPayloadId                   *string    `sqlx:"request_payload_id,refTable=call_payload,refColumn=id" json:"requestPayloadId,omitempty"`
	ResponsePayloadId                  *string    `sqlx:"response_payload_id,refTable=call_payload,refColumn=id" json:"responsePayloadId,omitempty"`
	ProviderRequestPayloadId           *string    `sqlx:"provider_request_payload_id,refTable=call_payload,refColumn=id" json:"providerRequestPayloadId,omitempty"`
	ProviderResponsePayloadId          *string    `sqlx:"provider_response_payload_id,refTable=call_payload,refColumn=id" json:"providerResponsePayloadId,omitempty"`
	StreamPayloadId                    *string    `sqlx:"stream_payload_id,refTable=call_payload,refColumn=id" json:"streamPayloadId,omitempty"`
	RunId                              *string    `sqlx:"run_id" json:"runId,omitempty"`
	Iteration                          *int       `sqlx:"iteration" json:"iteration,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"`
	ModelCalls    []*ModelCall         `` /* 208-byte string literal not displayed */
	WriterKeys    []WriterKeysRow      `` /* 136-byte string literal not displayed */
	CurrentWriter []*CurrentWriterView `` /* 169-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) Init

func (input *Input) Init(context.Context) error

Legacy deletion acknowledges blank message identities without touching data.

func (*Input) PrepareReadIndexes

func (input *Input) PrepareReadIndexes(ctx context.Context) error

func (*Input) ReadIndexes

func (input *Input) ReadIndexes(ctx context.Context) (*WriterHandlerReadIndexes, error)

func (*Input) SetCurrentWriter

func (input *Input) SetCurrentWriter(value []*CurrentWriterView)

func (*Input) SetModelCalls

func (input *Input) SetModelCalls(value []*ModelCall)

func (*Input) SetOrphanColumn

func (input *Input) SetOrphanColumn(value string)

func (*Input) SetOrphanDetach

func (input *Input) SetOrphanDetach(value bool)

func (*Input) SetWriterKeys

func (input *Input) SetWriterKeys(value []WriterKeysRow)

type InputHas

type InputHas struct {
	OrphanDetach  bool
	OrphanColumn  bool
	ModelCalls    bool
	WriterKeys    bool
	CurrentWriter bool
}

type Lifecycle

type Lifecycle struct {
	Input *Input `bind:"kind=input"`
}

Lifecycle customizes role Input.ModelCalls.

func (*Lifecycle) AfterQueue

func (*Lifecycle) AfterSequence

func (hooks *Lifecycle) AfterSequence(ctx context.Context, entity *ModelCall, state xhandler.LifecycleContext[ModelCall, xhandler.NoParent, Output]) error

func (*Lifecycle) Finalize

func (hooks *Lifecycle) Finalize(ctx context.Context, input *Input, output *Output, outcome xhandler.Outcome) error

func (*Lifecycle) Init

func (*Lifecycle) Validate

type ModelCall

type ModelCall struct {
	ShouldDelete                       bool          `sqlx:"-" writer:"delete" json:"shouldDelete,omitempty"`
	MessageId                          string        `validate:"required" sqlx:"message_id,primaryKey,refTable=message,refColumn=id" json:"messageId"`
	Provider                           string        `validate:"required" json:"provider" sqlx:"provider,required=true"`
	Model                              string        `validate:"required" json:"model" sqlx:"model,required=true"`
	ModelKind                          string        `validate:"required" json:"modelKind" sqlx:"model_kind,required=true"`
	Status                             string        `validate:"required" json:"status" sqlx:"status,required=true"`
	Cost                               *float64      `sqlx:"cost" json:"cost,omitempty"`
	TurnId                             *string       `sqlx:"turn_id,refTable=turn,refColumn=id" json:"turnId,omitempty"`
	ErrorCode                          *string       `sqlx:"error_code" json:"errorCode,omitempty"`
	ErrorMessage                       *string       `sqlx:"error_message" json:"errorMessage,omitempty"`
	FinishReason                       *string       `sqlx:"finish_reason" json:"finishReason,omitempty"`
	PromptTokens                       *int          `sqlx:"prompt_tokens" json:"promptTokens,omitempty"`
	PromptCachedTokens                 *int          `sqlx:"prompt_cached_tokens" json:"promptCachedTokens,omitempty"`
	CompletionTokens                   *int          `sqlx:"completion_tokens" json:"completionTokens,omitempty"`
	TotalTokens                        *int          `sqlx:"total_tokens" json:"totalTokens,omitempty"`
	PromptAudioTokens                  *int          `sqlx:"prompt_audio_tokens" json:"promptAudioTokens,omitempty"`
	CompletionReasoningTokens          *int          `sqlx:"completion_reasoning_tokens" json:"completionReasoningTokens,omitempty"`
	CompletionAudioTokens              *int          `sqlx:"completion_audio_tokens" json:"completionAudioTokens,omitempty"`
	CompletionAcceptedPredictionTokens *int          `sqlx:"completion_accepted_prediction_tokens" json:"completionAcceptedPredictionTokens,omitempty"`
	CompletionRejectedPredictionTokens *int          `sqlx:"completion_rejected_prediction_tokens" json:"completionRejectedPredictionTokens,omitempty"`
	StartedAt                          *time.Time    `sqlx:"started_at" json:"startedAt,omitempty"`
	CompletedAt                        *time.Time    `sqlx:"completed_at" json:"completedAt,omitempty"`
	LatencyMs                          *int          `sqlx:"latency_ms" json:"latencyMs,omitempty"`
	TraceId                            *string       `sqlx:"trace_id" json:"traceId,omitempty"`
	SpanId                             *string       `sqlx:"span_id" json:"spanId,omitempty"`
	RequestPayloadId                   *string       `sqlx:"request_payload_id,refTable=call_payload,refColumn=id" json:"requestPayloadId,omitempty"`
	ResponsePayloadId                  *string       `sqlx:"response_payload_id,refTable=call_payload,refColumn=id" json:"responsePayloadId,omitempty"`
	ProviderRequestPayloadId           *string       `sqlx:"provider_request_payload_id,refTable=call_payload,refColumn=id" json:"providerRequestPayloadId,omitempty"`
	ProviderResponsePayloadId          *string       `sqlx:"provider_response_payload_id,refTable=call_payload,refColumn=id" json:"providerResponsePayloadId,omitempty"`
	StreamPayloadId                    *string       `sqlx:"stream_payload_id,refTable=call_payload,refColumn=id" json:"streamPayloadId,omitempty"`
	RunId                              *string       `sqlx:"run_id" json:"runId,omitempty"`
	Iteration                          *int          `sqlx:"iteration" json:"iteration,omitempty"`
	Has                                *ModelCallHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-" typeName:"ModelCallHas"`
}

ModelCall is generated canonical view metadata for writer.

func (*ModelCall) GetCompletedAt

func (entity *ModelCall) GetCompletedAt() *time.Time

func (*ModelCall) GetCompletionAcceptedPredictionTokens

func (entity *ModelCall) GetCompletionAcceptedPredictionTokens() *int

func (*ModelCall) GetCompletionAudioTokens

func (entity *ModelCall) GetCompletionAudioTokens() *int

func (*ModelCall) GetCompletionReasoningTokens

func (entity *ModelCall) GetCompletionReasoningTokens() *int

func (*ModelCall) GetCompletionRejectedPredictionTokens

func (entity *ModelCall) GetCompletionRejectedPredictionTokens() *int

func (*ModelCall) GetCompletionTokens

func (entity *ModelCall) GetCompletionTokens() *int

func (*ModelCall) GetCost

func (entity *ModelCall) GetCost() *float64

func (*ModelCall) GetErrorCode

func (entity *ModelCall) GetErrorCode() *string

func (*ModelCall) GetErrorMessage

func (entity *ModelCall) GetErrorMessage() *string

func (*ModelCall) GetFinishReason

func (entity *ModelCall) GetFinishReason() *string

func (*ModelCall) GetIteration

func (entity *ModelCall) GetIteration() *int

func (*ModelCall) GetLatencyMs

func (entity *ModelCall) GetLatencyMs() *int

func (*ModelCall) GetMessageId

func (entity *ModelCall) GetMessageId() string

func (*ModelCall) GetModel

func (entity *ModelCall) GetModel() string

func (*ModelCall) GetModelKind

func (entity *ModelCall) GetModelKind() string

func (*ModelCall) GetPromptAudioTokens

func (entity *ModelCall) GetPromptAudioTokens() *int

func (*ModelCall) GetPromptCachedTokens

func (entity *ModelCall) GetPromptCachedTokens() *int

func (*ModelCall) GetPromptTokens

func (entity *ModelCall) GetPromptTokens() *int

func (*ModelCall) GetProvider

func (entity *ModelCall) GetProvider() string

func (*ModelCall) GetProviderRequestPayloadId

func (entity *ModelCall) GetProviderRequestPayloadId() *string

func (*ModelCall) GetProviderResponsePayloadId

func (entity *ModelCall) GetProviderResponsePayloadId() *string

func (*ModelCall) GetRequestPayloadId

func (entity *ModelCall) GetRequestPayloadId() *string

func (*ModelCall) GetResponsePayloadId

func (entity *ModelCall) GetResponsePayloadId() *string

func (*ModelCall) GetRunId

func (entity *ModelCall) GetRunId() *string

func (*ModelCall) GetShouldDelete

func (entity *ModelCall) GetShouldDelete() bool

func (*ModelCall) GetSpanId

func (entity *ModelCall) GetSpanId() *string

func (*ModelCall) GetStartedAt

func (entity *ModelCall) GetStartedAt() *time.Time

func (*ModelCall) GetStatus

func (entity *ModelCall) GetStatus() string

func (*ModelCall) GetStreamPayloadId

func (entity *ModelCall) GetStreamPayloadId() *string

func (*ModelCall) GetTotalTokens

func (entity *ModelCall) GetTotalTokens() *int

func (*ModelCall) GetTraceId

func (entity *ModelCall) GetTraceId() *string

func (*ModelCall) GetTurnId

func (entity *ModelCall) GetTurnId() *string

func (*ModelCall) SetCompletedAt

func (entity *ModelCall) SetCompletedAt(value *time.Time)

func (*ModelCall) SetCompletionAcceptedPredictionTokens

func (entity *ModelCall) SetCompletionAcceptedPredictionTokens(value *int)

func (*ModelCall) SetCompletionAudioTokens

func (entity *ModelCall) SetCompletionAudioTokens(value *int)

func (*ModelCall) SetCompletionReasoningTokens

func (entity *ModelCall) SetCompletionReasoningTokens(value *int)

func (*ModelCall) SetCompletionRejectedPredictionTokens

func (entity *ModelCall) SetCompletionRejectedPredictionTokens(value *int)

func (*ModelCall) SetCompletionTokens

func (entity *ModelCall) SetCompletionTokens(value *int)

func (*ModelCall) SetCost

func (entity *ModelCall) SetCost(value *float64)

func (*ModelCall) SetErrorCode

func (entity *ModelCall) SetErrorCode(value *string)

func (*ModelCall) SetErrorMessage

func (entity *ModelCall) SetErrorMessage(value *string)

func (*ModelCall) SetFinishReason

func (entity *ModelCall) SetFinishReason(value *string)

func (*ModelCall) SetIteration

func (entity *ModelCall) SetIteration(value *int)

func (*ModelCall) SetLatencyMs

func (entity *ModelCall) SetLatencyMs(value *int)

func (*ModelCall) SetMessageId

func (entity *ModelCall) SetMessageId(value string)

func (*ModelCall) SetModel

func (entity *ModelCall) SetModel(value string)

func (*ModelCall) SetModelKind

func (entity *ModelCall) SetModelKind(value string)

func (*ModelCall) SetPromptAudioTokens

func (entity *ModelCall) SetPromptAudioTokens(value *int)

func (*ModelCall) SetPromptCachedTokens

func (entity *ModelCall) SetPromptCachedTokens(value *int)

func (*ModelCall) SetPromptTokens

func (entity *ModelCall) SetPromptTokens(value *int)

func (*ModelCall) SetProvider

func (entity *ModelCall) SetProvider(value string)

func (*ModelCall) SetProviderRequestPayloadId

func (entity *ModelCall) SetProviderRequestPayloadId(value *string)

func (*ModelCall) SetProviderResponsePayloadId

func (entity *ModelCall) SetProviderResponsePayloadId(value *string)

func (*ModelCall) SetRequestPayloadId

func (entity *ModelCall) SetRequestPayloadId(value *string)

func (*ModelCall) SetResponsePayloadId

func (entity *ModelCall) SetResponsePayloadId(value *string)

func (*ModelCall) SetRunId

func (entity *ModelCall) SetRunId(value *string)

func (*ModelCall) SetShouldDelete

func (entity *ModelCall) SetShouldDelete(value bool)

func (*ModelCall) SetSpanId

func (entity *ModelCall) SetSpanId(value *string)

func (*ModelCall) SetStartedAt

func (entity *ModelCall) SetStartedAt(value *time.Time)

func (*ModelCall) SetStatus

func (entity *ModelCall) SetStatus(value string)

func (*ModelCall) SetStreamPayloadId

func (entity *ModelCall) SetStreamPayloadId(value *string)

func (*ModelCall) SetTotalTokens

func (entity *ModelCall) SetTotalTokens(value *int)

func (*ModelCall) SetTraceId

func (entity *ModelCall) SetTraceId(value *string)

func (*ModelCall) SetTurnId

func (entity *ModelCall) SetTurnId(value *string)

type ModelCallHas

type ModelCallHas struct {
	ShouldDelete                       bool
	MessageId                          bool
	Provider                           bool
	Model                              bool
	ModelKind                          bool
	Status                             bool
	Cost                               bool
	TurnId                             bool
	ErrorCode                          bool
	ErrorMessage                       bool
	FinishReason                       bool
	PromptTokens                       bool
	PromptCachedTokens                 bool
	CompletionTokens                   bool
	TotalTokens                        bool
	PromptAudioTokens                  bool
	CompletionReasoningTokens          bool
	CompletionAudioTokens              bool
	CompletionAcceptedPredictionTokens bool
	CompletionRejectedPredictionTokens bool
	StartedAt                          bool
	CompletedAt                        bool
	LatencyMs                          bool
	TraceId                            bool
	SpanId                             bool
	RequestPayloadId                   bool
	ResponsePayloadId                  bool
	ProviderRequestPayloadId           bool
	ProviderResponsePayloadId          bool
	StreamPayloadId                    bool
	RunId                              bool
	Iteration                          bool
}

type Output

type Output struct {
	Data []*ModelCall `parameter:"Data,kind=output,in=body,dataType=[]*ModelCall" json:"data,omitempty"`
}

Output is the generated output scaffold for writer.

type WriterComponent

type WriterComponent struct {
	Contract xdatly.Component[Input, Output] "" /* 166-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 WriterHandlerCurrentWriterGroupedByCompletedAt

type WriterHandlerCurrentWriterGroupedByCompletedAt map[time.Time][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByCompletedAt) Has

type WriterHandlerCurrentWriterGroupedByCompletionAcceptedPredictionTokens

type WriterHandlerCurrentWriterGroupedByCompletionAcceptedPredictionTokens map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByCompletionAcceptedPredictionTokens) Has

type WriterHandlerCurrentWriterGroupedByCompletionAudioTokens

type WriterHandlerCurrentWriterGroupedByCompletionAudioTokens map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByCompletionAudioTokens) Has

type WriterHandlerCurrentWriterGroupedByCompletionReasoningTokens

type WriterHandlerCurrentWriterGroupedByCompletionReasoningTokens map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByCompletionReasoningTokens) Has

type WriterHandlerCurrentWriterGroupedByCompletionRejectedPredictionTokens

type WriterHandlerCurrentWriterGroupedByCompletionRejectedPredictionTokens map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByCompletionRejectedPredictionTokens) Has

type WriterHandlerCurrentWriterGroupedByCompletionTokens

type WriterHandlerCurrentWriterGroupedByCompletionTokens map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByCompletionTokens) Has

type WriterHandlerCurrentWriterGroupedByCost

type WriterHandlerCurrentWriterGroupedByCost map[float64][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByCost) Has

type WriterHandlerCurrentWriterGroupedByErrorCode

type WriterHandlerCurrentWriterGroupedByErrorCode map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByErrorCode) Has

type WriterHandlerCurrentWriterGroupedByErrorMessage

type WriterHandlerCurrentWriterGroupedByErrorMessage map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByErrorMessage) Has

type WriterHandlerCurrentWriterGroupedByFinishReason

type WriterHandlerCurrentWriterGroupedByFinishReason map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByFinishReason) Has

type WriterHandlerCurrentWriterGroupedByIteration

type WriterHandlerCurrentWriterGroupedByIteration map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByIteration) Has

type WriterHandlerCurrentWriterGroupedByLatencyMs

type WriterHandlerCurrentWriterGroupedByLatencyMs map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByLatencyMs) Has

type WriterHandlerCurrentWriterGroupedByMessageId

type WriterHandlerCurrentWriterGroupedByMessageId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByMessageId) Has

type WriterHandlerCurrentWriterGroupedByModel

type WriterHandlerCurrentWriterGroupedByModel map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByModel) Has

type WriterHandlerCurrentWriterGroupedByModelKind

type WriterHandlerCurrentWriterGroupedByModelKind map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByModelKind) Has

type WriterHandlerCurrentWriterGroupedByPromptAudioTokens

type WriterHandlerCurrentWriterGroupedByPromptAudioTokens map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByPromptAudioTokens) Has

type WriterHandlerCurrentWriterGroupedByPromptCachedTokens

type WriterHandlerCurrentWriterGroupedByPromptCachedTokens map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByPromptCachedTokens) Has

type WriterHandlerCurrentWriterGroupedByPromptTokens

type WriterHandlerCurrentWriterGroupedByPromptTokens map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByPromptTokens) Has

type WriterHandlerCurrentWriterGroupedByProvider

type WriterHandlerCurrentWriterGroupedByProvider map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByProvider) Has

type WriterHandlerCurrentWriterGroupedByProviderRequestPayloadId

type WriterHandlerCurrentWriterGroupedByProviderRequestPayloadId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByProviderRequestPayloadId) Has

type WriterHandlerCurrentWriterGroupedByProviderResponsePayloadId

type WriterHandlerCurrentWriterGroupedByProviderResponsePayloadId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByProviderResponsePayloadId) Has

type WriterHandlerCurrentWriterGroupedByRequestPayloadId

type WriterHandlerCurrentWriterGroupedByRequestPayloadId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByRequestPayloadId) Has

type WriterHandlerCurrentWriterGroupedByResponsePayloadId

type WriterHandlerCurrentWriterGroupedByResponsePayloadId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByResponsePayloadId) Has

type WriterHandlerCurrentWriterGroupedByRunId

type WriterHandlerCurrentWriterGroupedByRunId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByRunId) Has

type WriterHandlerCurrentWriterGroupedBySpanId

type WriterHandlerCurrentWriterGroupedBySpanId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedBySpanId) Has

type WriterHandlerCurrentWriterGroupedByStartedAt

type WriterHandlerCurrentWriterGroupedByStartedAt map[time.Time][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByStartedAt) Has

type WriterHandlerCurrentWriterGroupedByStatus

type WriterHandlerCurrentWriterGroupedByStatus map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByStatus) Has

type WriterHandlerCurrentWriterGroupedByStreamPayloadId

type WriterHandlerCurrentWriterGroupedByStreamPayloadId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByStreamPayloadId) Has

type WriterHandlerCurrentWriterGroupedByTotalTokens

type WriterHandlerCurrentWriterGroupedByTotalTokens map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByTotalTokens) Has

type WriterHandlerCurrentWriterGroupedByTraceId

type WriterHandlerCurrentWriterGroupedByTraceId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByTraceId) Has

type WriterHandlerCurrentWriterGroupedByTurnId

type WriterHandlerCurrentWriterGroupedByTurnId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByTurnId) Has

type WriterHandlerCurrentWriterIndexedByCompletedAt

type WriterHandlerCurrentWriterIndexedByCompletedAt map[time.Time]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByCompletedAt) Has

type WriterHandlerCurrentWriterIndexedByCompletionAcceptedPredictionTokens

type WriterHandlerCurrentWriterIndexedByCompletionAcceptedPredictionTokens map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByCompletionAcceptedPredictionTokens) Has

type WriterHandlerCurrentWriterIndexedByCompletionAudioTokens

type WriterHandlerCurrentWriterIndexedByCompletionAudioTokens map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByCompletionAudioTokens) Has

type WriterHandlerCurrentWriterIndexedByCompletionReasoningTokens

type WriterHandlerCurrentWriterIndexedByCompletionReasoningTokens map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByCompletionReasoningTokens) Has

type WriterHandlerCurrentWriterIndexedByCompletionRejectedPredictionTokens

type WriterHandlerCurrentWriterIndexedByCompletionRejectedPredictionTokens map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByCompletionRejectedPredictionTokens) Has

type WriterHandlerCurrentWriterIndexedByCompletionTokens

type WriterHandlerCurrentWriterIndexedByCompletionTokens map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByCompletionTokens) Has

type WriterHandlerCurrentWriterIndexedByCost

type WriterHandlerCurrentWriterIndexedByCost map[float64]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByCost) Has

type WriterHandlerCurrentWriterIndexedByErrorCode

type WriterHandlerCurrentWriterIndexedByErrorCode map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByErrorCode) Has

type WriterHandlerCurrentWriterIndexedByErrorMessage

type WriterHandlerCurrentWriterIndexedByErrorMessage map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByErrorMessage) Has

type WriterHandlerCurrentWriterIndexedByFinishReason

type WriterHandlerCurrentWriterIndexedByFinishReason map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByFinishReason) Has

type WriterHandlerCurrentWriterIndexedByIteration

type WriterHandlerCurrentWriterIndexedByIteration map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByIteration) Has

type WriterHandlerCurrentWriterIndexedByLatencyMs

type WriterHandlerCurrentWriterIndexedByLatencyMs map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByLatencyMs) Has

type WriterHandlerCurrentWriterIndexedByMessageId

type WriterHandlerCurrentWriterIndexedByMessageId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByMessageId) Has

type WriterHandlerCurrentWriterIndexedByModel

type WriterHandlerCurrentWriterIndexedByModel map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByModel) Has

type WriterHandlerCurrentWriterIndexedByModelKind

type WriterHandlerCurrentWriterIndexedByModelKind map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByModelKind) Has

type WriterHandlerCurrentWriterIndexedByPromptAudioTokens

type WriterHandlerCurrentWriterIndexedByPromptAudioTokens map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByPromptAudioTokens) Has

type WriterHandlerCurrentWriterIndexedByPromptCachedTokens

type WriterHandlerCurrentWriterIndexedByPromptCachedTokens map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByPromptCachedTokens) Has

type WriterHandlerCurrentWriterIndexedByPromptTokens

type WriterHandlerCurrentWriterIndexedByPromptTokens map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByPromptTokens) Has

type WriterHandlerCurrentWriterIndexedByProvider

type WriterHandlerCurrentWriterIndexedByProvider map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByProvider) Has

type WriterHandlerCurrentWriterIndexedByProviderRequestPayloadId

type WriterHandlerCurrentWriterIndexedByProviderRequestPayloadId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByProviderRequestPayloadId) Has

type WriterHandlerCurrentWriterIndexedByProviderResponsePayloadId

type WriterHandlerCurrentWriterIndexedByProviderResponsePayloadId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByProviderResponsePayloadId) Has

type WriterHandlerCurrentWriterIndexedByRequestPayloadId

type WriterHandlerCurrentWriterIndexedByRequestPayloadId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByRequestPayloadId) Has

type WriterHandlerCurrentWriterIndexedByResponsePayloadId

type WriterHandlerCurrentWriterIndexedByResponsePayloadId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByResponsePayloadId) Has

type WriterHandlerCurrentWriterIndexedByRunId

type WriterHandlerCurrentWriterIndexedByRunId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByRunId) Has

type WriterHandlerCurrentWriterIndexedBySpanId

type WriterHandlerCurrentWriterIndexedBySpanId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedBySpanId) Has

type WriterHandlerCurrentWriterIndexedByStartedAt

type WriterHandlerCurrentWriterIndexedByStartedAt map[time.Time]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByStartedAt) Has

type WriterHandlerCurrentWriterIndexedByStatus

type WriterHandlerCurrentWriterIndexedByStatus map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByStatus) Has

type WriterHandlerCurrentWriterIndexedByStreamPayloadId

type WriterHandlerCurrentWriterIndexedByStreamPayloadId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByStreamPayloadId) Has

type WriterHandlerCurrentWriterIndexedByTotalTokens

type WriterHandlerCurrentWriterIndexedByTotalTokens map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByTotalTokens) Has

type WriterHandlerCurrentWriterIndexedByTraceId

type WriterHandlerCurrentWriterIndexedByTraceId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByTraceId) Has

type WriterHandlerCurrentWriterIndexedByTurnId

type WriterHandlerCurrentWriterIndexedByTurnId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByTurnId) Has

type WriterHandlerCurrentWriterSlice

type WriterHandlerCurrentWriterSlice []*CurrentWriterView

func (WriterHandlerCurrentWriterSlice) GroupByCompletedAt

func (WriterHandlerCurrentWriterSlice) GroupByCompletionAcceptedPredictionTokens

func (WriterHandlerCurrentWriterSlice) GroupByCompletionAudioTokens

func (WriterHandlerCurrentWriterSlice) GroupByCompletionReasoningTokens

func (WriterHandlerCurrentWriterSlice) GroupByCompletionRejectedPredictionTokens

func (WriterHandlerCurrentWriterSlice) GroupByCompletionTokens

func (WriterHandlerCurrentWriterSlice) GroupByCost

func (WriterHandlerCurrentWriterSlice) GroupByErrorCode

func (WriterHandlerCurrentWriterSlice) GroupByErrorMessage

func (WriterHandlerCurrentWriterSlice) GroupByFinishReason

func (WriterHandlerCurrentWriterSlice) GroupByIteration

func (WriterHandlerCurrentWriterSlice) GroupByLatencyMs

func (WriterHandlerCurrentWriterSlice) GroupByMessageId

func (WriterHandlerCurrentWriterSlice) GroupByModel

func (WriterHandlerCurrentWriterSlice) GroupByModelKind

func (WriterHandlerCurrentWriterSlice) GroupByPromptAudioTokens

func (WriterHandlerCurrentWriterSlice) GroupByPromptCachedTokens

func (WriterHandlerCurrentWriterSlice) GroupByPromptTokens

func (WriterHandlerCurrentWriterSlice) GroupByProvider

func (WriterHandlerCurrentWriterSlice) GroupByProviderRequestPayloadId

func (WriterHandlerCurrentWriterSlice) GroupByProviderResponsePayloadId

func (WriterHandlerCurrentWriterSlice) GroupByRequestPayloadId

func (WriterHandlerCurrentWriterSlice) GroupByResponsePayloadId

func (WriterHandlerCurrentWriterSlice) GroupByRunId

func (WriterHandlerCurrentWriterSlice) GroupBySpanId

func (WriterHandlerCurrentWriterSlice) GroupByStartedAt

func (WriterHandlerCurrentWriterSlice) GroupByStatus

func (WriterHandlerCurrentWriterSlice) GroupByStreamPayloadId

func (WriterHandlerCurrentWriterSlice) GroupByTotalTokens

func (WriterHandlerCurrentWriterSlice) GroupByTraceId

func (WriterHandlerCurrentWriterSlice) GroupByTurnId

func (WriterHandlerCurrentWriterSlice) IndexByCompletedAt

func (WriterHandlerCurrentWriterSlice) IndexByCompletionAcceptedPredictionTokens

func (WriterHandlerCurrentWriterSlice) IndexByCompletionAudioTokens

func (WriterHandlerCurrentWriterSlice) IndexByCompletionReasoningTokens

func (WriterHandlerCurrentWriterSlice) IndexByCompletionRejectedPredictionTokens

func (WriterHandlerCurrentWriterSlice) IndexByCompletionTokens

func (WriterHandlerCurrentWriterSlice) IndexByCost

func (WriterHandlerCurrentWriterSlice) IndexByErrorCode

func (WriterHandlerCurrentWriterSlice) IndexByErrorMessage

func (WriterHandlerCurrentWriterSlice) IndexByFinishReason

func (WriterHandlerCurrentWriterSlice) IndexByIteration

func (WriterHandlerCurrentWriterSlice) IndexByLatencyMs

func (WriterHandlerCurrentWriterSlice) IndexByMessageId

func (WriterHandlerCurrentWriterSlice) IndexByModel

func (WriterHandlerCurrentWriterSlice) IndexByModelKind

func (WriterHandlerCurrentWriterSlice) IndexByPromptAudioTokens

func (WriterHandlerCurrentWriterSlice) IndexByPromptCachedTokens

func (WriterHandlerCurrentWriterSlice) IndexByPromptTokens

func (WriterHandlerCurrentWriterSlice) IndexByProvider

func (WriterHandlerCurrentWriterSlice) IndexByProviderRequestPayloadId

func (WriterHandlerCurrentWriterSlice) IndexByProviderResponsePayloadId

func (WriterHandlerCurrentWriterSlice) IndexByRequestPayloadId

func (WriterHandlerCurrentWriterSlice) IndexByResponsePayloadId

func (WriterHandlerCurrentWriterSlice) IndexByRunId

func (WriterHandlerCurrentWriterSlice) IndexBySpanId

func (WriterHandlerCurrentWriterSlice) IndexByStartedAt

func (WriterHandlerCurrentWriterSlice) IndexByStatus

func (WriterHandlerCurrentWriterSlice) IndexByStreamPayloadId

func (WriterHandlerCurrentWriterSlice) IndexByTotalTokens

func (WriterHandlerCurrentWriterSlice) IndexByTraceId

func (WriterHandlerCurrentWriterSlice) IndexByTurnId

type WriterHandlerReadIndexes

type WriterHandlerReadIndexes struct {
	CurrentWriter            WriterHandlerCurrentWriterSlice
	CurrentWriterByMessageId WriterHandlerCurrentWriterIndexedByMessageId
}

func BuildWriterHandlerReadIndexes

func BuildWriterHandlerReadIndexes(ctx context.Context, input *Input) (*WriterHandlerReadIndexes, error)

type WriterKeysRow

type WriterKeysRow struct {
	MessageId string `sqlx:"message_id"`
}

Jump to

Keyboard shortcuts

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