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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MaxErrorMessageBytes = 60000
View Source
const WriterDatlyResourceNamespace = "datly_toolcall_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 SanitizeErrorMessage

func SanitizeErrorMessage(value string) string

SanitizeErrorMessage returns a DB-safe, UTF-8-valid tool error summary.

func WriterDatlyType

func WriterDatlyType() reflect.Type

WriterDatlyType returns the public component type.

func WriterHandlerCurrentWriterIndexByAttemptKey

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

func WriterHandlerCurrentWriterIndexByCompletedAtKey

func WriterHandlerCurrentWriterIndexByCompletedAtKey(value *CurrentWriterView) (time.Time, 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 WriterHandlerCurrentWriterIndexByIterationKey

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

func WriterHandlerCurrentWriterIndexByLatencyMsKey

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

func WriterHandlerCurrentWriterIndexByMessageIdKey

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

func WriterHandlerCurrentWriterIndexByOpIdKey

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

func WriterHandlerCurrentWriterIndexByRequestHashKey

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

func WriterHandlerCurrentWriterIndexByRequestPayloadIdKey

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

func WriterHandlerCurrentWriterIndexByResponseOverflowKey

func WriterHandlerCurrentWriterIndexByResponseOverflowKey(value *CurrentWriterView) (bool, bool)

func WriterHandlerCurrentWriterIndexByResponsePayloadIdKey

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

func WriterHandlerCurrentWriterIndexByRetriableKey

func WriterHandlerCurrentWriterIndexByRetriableKey(value *CurrentWriterView) (int, 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 WriterHandlerCurrentWriterIndexByToolKindKey

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

func WriterHandlerCurrentWriterIndexByToolNameKey

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

func WriterHandlerCurrentWriterIndexByTraceIdKey

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

func WriterHandlerCurrentWriterIndexByTurnIdKey

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

Types

type CurrentWriterView

type CurrentWriterView struct {
	ResponseOverflow  bool       `sqlx:"response_overflow" json:"responseOverflow,omitempty"`
	MessageId         string     `validate:"required" sqlx:"message_id,primaryKey,refTable=message,refColumn=id" json:"messageId"`
	OpId              string     `validate:"required" json:"opId" sqlx:"op_id,required=true"`
	Attempt           int        `json:"attempt" sqlx:"attempt,required=true"`
	ToolName          string     `validate:"required" json:"toolName" sqlx:"tool_name,required=true"`
	ToolKind          string     `validate:"required" json:"toolKind" sqlx:"tool_kind,required=true"`
	Status            string     `validate:"required" json:"status" sqlx:"status,required=true"`
	Cost              *float64   `sqlx:"cost" json:"cost,omitempty"`
	RequestPayloadId  *string    `json:"requestPayloadId" sqlx:"request_payload_id,refTable=call_payload,refColumn=id"`
	ResponsePayloadId *string    `json:"responsePayloadId" sqlx:"response_payload_id,refTable=call_payload,refColumn=id"`
	TurnId            *string    `sqlx:"turn_id,refTable=turn,refColumn=id" json:"turnId,omitempty"`
	RequestHash       *string    `sqlx:"request_hash" json:"requestHash,omitempty"`
	ErrorCode         *string    `sqlx:"error_code" json:"errorCode,omitempty"`
	ErrorMessage      *string    `sqlx:"error_message" json:"errorMessage,omitempty"`
	Retriable         *int       `sqlx:"retriable" json:"retriable,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"`
	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"`
	ToolCalls     []*ToolCall          `` /* 203-byte string literal not displayed */
	WriterKeys    []WriterKeysRow      `` /* 134-byte string literal not displayed */
	CurrentWriter []*CurrentWriterView `` /* 167-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

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) SetOrphanColumn

func (input *Input) SetOrphanColumn(value string)

func (*Input) SetOrphanDetach

func (input *Input) SetOrphanDetach(value bool)

func (*Input) SetToolCalls

func (input *Input) SetToolCalls(value []*ToolCall)

func (*Input) SetWriterKeys

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

type InputHas

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

type Lifecycle

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

Lifecycle customizes role Input.ToolCalls.

func (*Lifecycle) AfterQueue

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

func (*Lifecycle) AfterSequence

func (hooks *Lifecycle) AfterSequence(ctx context.Context, entity *ToolCall, state xhandler.LifecycleContext[ToolCall, 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 Output

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

Output is the generated output scaffold for writer.

type ToolCall

type ToolCall struct {
	ShouldDelete      bool         `sqlx:"-" writer:"delete" json:"shouldDelete,omitempty"`
	ResponseOverflow  bool         `sqlx:"-" json:"responseOverflow,omitempty"`
	MessageId         string       `validate:"required" sqlx:"message_id,primaryKey,refTable=message,refColumn=id" json:"messageId"`
	OpId              string       `validate:"required" json:"opId" sqlx:"op_id,required=true"`
	Attempt           int          `json:"attempt" sqlx:"attempt,required=true"`
	ToolName          string       `validate:"required" json:"toolName" sqlx:"tool_name,required=true"`
	ToolKind          string       `validate:"required" json:"toolKind" sqlx:"tool_kind,required=true"`
	Status            string       `validate:"required" json:"status" sqlx:"status,required=true"`
	Cost              *float64     `sqlx:"cost" json:"cost,omitempty"`
	RequestPayloadId  *string      `json:"requestPayloadId" sqlx:"request_payload_id,refTable=call_payload,refColumn=id"`
	ResponsePayloadId *string      `json:"responsePayloadId" sqlx:"response_payload_id,refTable=call_payload,refColumn=id"`
	TurnId            *string      `sqlx:"turn_id,refTable=turn,refColumn=id" json:"turnId,omitempty"`
	RequestHash       *string      `sqlx:"request_hash" json:"requestHash,omitempty"`
	ErrorCode         *string      `sqlx:"error_code" json:"errorCode,omitempty"`
	ErrorMessage      *string      `sqlx:"error_message" json:"errorMessage,omitempty"`
	Retriable         *int         `sqlx:"retriable" json:"retriable,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"`
	RunId             *string      `sqlx:"run_id" json:"runId,omitempty"`
	Iteration         *int         `sqlx:"iteration" json:"iteration,omitempty"`
	Has               *ToolCallHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-" typeName:"ToolCallHas"`
}

ToolCall is generated canonical view metadata for writer.

func (*ToolCall) GetAttempt

func (entity *ToolCall) GetAttempt() int

func (*ToolCall) GetCompletedAt

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

func (*ToolCall) GetCost

func (entity *ToolCall) GetCost() *float64

func (*ToolCall) GetErrorCode

func (entity *ToolCall) GetErrorCode() *string

func (*ToolCall) GetErrorMessage

func (entity *ToolCall) GetErrorMessage() *string

func (*ToolCall) GetIteration

func (entity *ToolCall) GetIteration() *int

func (*ToolCall) GetLatencyMs

func (entity *ToolCall) GetLatencyMs() *int

func (*ToolCall) GetMessageId

func (entity *ToolCall) GetMessageId() string

func (*ToolCall) GetOpId

func (entity *ToolCall) GetOpId() string

func (*ToolCall) GetRequestHash

func (entity *ToolCall) GetRequestHash() *string

func (*ToolCall) GetRequestPayloadId

func (entity *ToolCall) GetRequestPayloadId() *string

func (*ToolCall) GetResponseOverflow

func (entity *ToolCall) GetResponseOverflow() bool

func (*ToolCall) GetResponsePayloadId

func (entity *ToolCall) GetResponsePayloadId() *string

func (*ToolCall) GetRetriable

func (entity *ToolCall) GetRetriable() *int

func (*ToolCall) GetRunId

func (entity *ToolCall) GetRunId() *string

func (*ToolCall) GetShouldDelete

func (entity *ToolCall) GetShouldDelete() bool

func (*ToolCall) GetSpanId

func (entity *ToolCall) GetSpanId() *string

func (*ToolCall) GetStartedAt

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

func (*ToolCall) GetStatus

func (entity *ToolCall) GetStatus() string

func (*ToolCall) GetToolKind

func (entity *ToolCall) GetToolKind() string

func (*ToolCall) GetToolName

func (entity *ToolCall) GetToolName() string

func (*ToolCall) GetTraceId

func (entity *ToolCall) GetTraceId() *string

func (*ToolCall) GetTurnId

func (entity *ToolCall) GetTurnId() *string

func (*ToolCall) SetAttempt

func (entity *ToolCall) SetAttempt(value int)

func (*ToolCall) SetCompletedAt

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

func (*ToolCall) SetCost

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

func (*ToolCall) SetErrorCode

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

func (*ToolCall) SetErrorMessage

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

func (*ToolCall) SetIteration

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

func (*ToolCall) SetLatencyMs

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

func (*ToolCall) SetMessageId

func (entity *ToolCall) SetMessageId(value string)

func (*ToolCall) SetOpId

func (entity *ToolCall) SetOpId(value string)

func (*ToolCall) SetRequestHash

func (entity *ToolCall) SetRequestHash(value *string)

func (*ToolCall) SetRequestPayloadId

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

func (*ToolCall) SetResponseOverflow

func (entity *ToolCall) SetResponseOverflow(value bool)

func (*ToolCall) SetResponsePayloadId

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

func (*ToolCall) SetRetriable

func (entity *ToolCall) SetRetriable(value *int)

func (*ToolCall) SetRunId

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

func (*ToolCall) SetShouldDelete

func (entity *ToolCall) SetShouldDelete(value bool)

func (*ToolCall) SetSpanId

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

func (*ToolCall) SetStartedAt

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

func (*ToolCall) SetStatus

func (entity *ToolCall) SetStatus(value string)

func (*ToolCall) SetToolKind

func (entity *ToolCall) SetToolKind(value string)

func (*ToolCall) SetToolName

func (entity *ToolCall) SetToolName(value string)

func (*ToolCall) SetTraceId

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

func (*ToolCall) SetTurnId

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

type ToolCallHas

type ToolCallHas struct {
	ShouldDelete      bool
	ResponseOverflow  bool
	MessageId         bool
	OpId              bool
	Attempt           bool
	ToolName          bool
	ToolKind          bool
	Status            bool
	Cost              bool
	RequestPayloadId  bool
	ResponsePayloadId bool
	TurnId            bool
	RequestHash       bool
	ErrorCode         bool
	ErrorMessage      bool
	Retriable         bool
	StartedAt         bool
	CompletedAt       bool
	LatencyMs         bool
	TraceId           bool
	SpanId            bool
	RunId             bool
	Iteration         bool
}

type WriterComponent

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

type WriterHandlerCurrentWriterGroupedByAttempt map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByAttempt) Has

type WriterHandlerCurrentWriterGroupedByCompletedAt

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

func (WriterHandlerCurrentWriterGroupedByCompletedAt) 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 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 WriterHandlerCurrentWriterGroupedByOpId

type WriterHandlerCurrentWriterGroupedByOpId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByOpId) Has

type WriterHandlerCurrentWriterGroupedByRequestHash

type WriterHandlerCurrentWriterGroupedByRequestHash map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByRequestHash) Has

type WriterHandlerCurrentWriterGroupedByRequestPayloadId

type WriterHandlerCurrentWriterGroupedByRequestPayloadId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByRequestPayloadId) Has

type WriterHandlerCurrentWriterGroupedByResponseOverflow

type WriterHandlerCurrentWriterGroupedByResponseOverflow map[bool][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByResponseOverflow) Has

type WriterHandlerCurrentWriterGroupedByResponsePayloadId

type WriterHandlerCurrentWriterGroupedByResponsePayloadId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByResponsePayloadId) Has

type WriterHandlerCurrentWriterGroupedByRetriable

type WriterHandlerCurrentWriterGroupedByRetriable map[int][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByRetriable) 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 WriterHandlerCurrentWriterGroupedByToolKind

type WriterHandlerCurrentWriterGroupedByToolKind map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByToolKind) Has

type WriterHandlerCurrentWriterGroupedByToolName

type WriterHandlerCurrentWriterGroupedByToolName map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByToolName) Has

type WriterHandlerCurrentWriterGroupedByTraceId

type WriterHandlerCurrentWriterGroupedByTraceId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByTraceId) Has

type WriterHandlerCurrentWriterGroupedByTurnId

type WriterHandlerCurrentWriterGroupedByTurnId map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedByTurnId) Has

type WriterHandlerCurrentWriterIndexedByAttempt

type WriterHandlerCurrentWriterIndexedByAttempt map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByAttempt) Has

type WriterHandlerCurrentWriterIndexedByCompletedAt

type WriterHandlerCurrentWriterIndexedByCompletedAt map[time.Time]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByCompletedAt) 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 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 WriterHandlerCurrentWriterIndexedByOpId

type WriterHandlerCurrentWriterIndexedByOpId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByOpId) Has

type WriterHandlerCurrentWriterIndexedByRequestHash

type WriterHandlerCurrentWriterIndexedByRequestHash map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByRequestHash) Has

type WriterHandlerCurrentWriterIndexedByRequestPayloadId

type WriterHandlerCurrentWriterIndexedByRequestPayloadId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByRequestPayloadId) Has

type WriterHandlerCurrentWriterIndexedByResponseOverflow

type WriterHandlerCurrentWriterIndexedByResponseOverflow map[bool]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByResponseOverflow) Has

type WriterHandlerCurrentWriterIndexedByResponsePayloadId

type WriterHandlerCurrentWriterIndexedByResponsePayloadId map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByResponsePayloadId) Has

type WriterHandlerCurrentWriterIndexedByRetriable

type WriterHandlerCurrentWriterIndexedByRetriable map[int]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByRetriable) 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 WriterHandlerCurrentWriterIndexedByToolKind

type WriterHandlerCurrentWriterIndexedByToolKind map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByToolKind) Has

type WriterHandlerCurrentWriterIndexedByToolName

type WriterHandlerCurrentWriterIndexedByToolName map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedByToolName) 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) GroupByAttempt

func (WriterHandlerCurrentWriterSlice) GroupByCompletedAt

func (WriterHandlerCurrentWriterSlice) GroupByCost

func (WriterHandlerCurrentWriterSlice) GroupByErrorCode

func (WriterHandlerCurrentWriterSlice) GroupByErrorMessage

func (WriterHandlerCurrentWriterSlice) GroupByIteration

func (WriterHandlerCurrentWriterSlice) GroupByLatencyMs

func (WriterHandlerCurrentWriterSlice) GroupByMessageId

func (WriterHandlerCurrentWriterSlice) GroupByOpId

func (WriterHandlerCurrentWriterSlice) GroupByRequestHash

func (WriterHandlerCurrentWriterSlice) GroupByRequestPayloadId

func (WriterHandlerCurrentWriterSlice) GroupByResponseOverflow

func (WriterHandlerCurrentWriterSlice) GroupByResponsePayloadId

func (WriterHandlerCurrentWriterSlice) GroupByRetriable

func (WriterHandlerCurrentWriterSlice) GroupByRunId

func (WriterHandlerCurrentWriterSlice) GroupBySpanId

func (WriterHandlerCurrentWriterSlice) GroupByStartedAt

func (WriterHandlerCurrentWriterSlice) GroupByStatus

func (WriterHandlerCurrentWriterSlice) GroupByToolKind

func (WriterHandlerCurrentWriterSlice) GroupByToolName

func (WriterHandlerCurrentWriterSlice) GroupByTraceId

func (WriterHandlerCurrentWriterSlice) GroupByTurnId

func (WriterHandlerCurrentWriterSlice) IndexByAttempt

func (WriterHandlerCurrentWriterSlice) IndexByCompletedAt

func (WriterHandlerCurrentWriterSlice) IndexByCost

func (WriterHandlerCurrentWriterSlice) IndexByErrorCode

func (WriterHandlerCurrentWriterSlice) IndexByErrorMessage

func (WriterHandlerCurrentWriterSlice) IndexByIteration

func (WriterHandlerCurrentWriterSlice) IndexByLatencyMs

func (WriterHandlerCurrentWriterSlice) IndexByMessageId

func (WriterHandlerCurrentWriterSlice) IndexByOpId

func (WriterHandlerCurrentWriterSlice) IndexByRequestHash

func (WriterHandlerCurrentWriterSlice) IndexByRequestPayloadId

func (WriterHandlerCurrentWriterSlice) IndexByResponseOverflow

func (WriterHandlerCurrentWriterSlice) IndexByResponsePayloadId

func (WriterHandlerCurrentWriterSlice) IndexByRetriable

func (WriterHandlerCurrentWriterSlice) IndexByRunId

func (WriterHandlerCurrentWriterSlice) IndexBySpanId

func (WriterHandlerCurrentWriterSlice) IndexByStartedAt

func (WriterHandlerCurrentWriterSlice) IndexByStatus

func (WriterHandlerCurrentWriterSlice) IndexByToolKind

func (WriterHandlerCurrentWriterSlice) IndexByToolName

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