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

cube

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

Documentation

Index

Constants

View Source
const ReaderDatlyResourceNamespace = "datly_toolapprovalqueue_cube_reader"

DatlyResourceNamespace identifies this package's generated resource filesystem.

Variables

View Source
var ReaderCubeDatly = new(ReaderCubeComponent)
View Source
var ReaderCubeHandler = ReaderCubeComponent{}.DatlyHandler
View Source
var ReaderDatly = new(ReaderComponent)

The public value supports explicit component wiring.

View Source
var ReaderDatlyResources embed.FS

Functions

func NewReaderCube

func NewReaderCube() (rhandler.TypedHandler, error)

func ReaderCubeDatlyType

func ReaderCubeDatlyType() reflect.Type

func ReaderDatlyType

func ReaderDatlyType() reflect.Type

ReaderDatlyType returns the public component type.

Types

type ApprovalReportInput

type ApprovalReportInput struct {
	Internal          bool                    `parameter:"Internal,kind=approvalaccess,in=internal,dataType=bool,required=true"`
	VisibilitySubject *string                 `parameter:"VisibilitySubject,kind=visibility,in=subject,dataType=*string,required=true"`
	Id                string                  `parameter:"Id,kind=query,in=id,dataType=string,required=false" predicate:"equal,q,id"`
	UserId            string                  `parameter:"UserId,kind=query,in=userId,dataType=string,required=false" predicate:"equal,q,user_id"`
	ConversationId    string                  `parameter:"ConversationId,kind=query,in=conversationId,dataType=string,required=false" predicate:"equal,q,conversation_id"`
	TurnId            string                  `parameter:"TurnId,kind=query,in=turnId,dataType=string,required=false" predicate:"equal,q,turn_id"`
	MessageId         string                  `parameter:"MessageId,kind=query,in=messageId,dataType=string,required=false" predicate:"equal,q,message_id"`
	ToolName          string                  `parameter:"ToolName,kind=query,in=toolName,dataType=string,required=false" predicate:"equal,q,tool_name"`
	QueueStatus       string                  `parameter:"QueueStatus,kind=query,in=status,dataType=string,required=false" predicate:"equal,q,status"`
	Fields            []string                `` /* 132-byte string literal not displayed */
	Has               *ApprovalReportInputHas `setMarker:"true" typeName:"ApprovalReportInputHas" json:"-" sqlx:"-"`
}

ApprovalReportInput is the generated input scaffold for reader.

func (*ApprovalReportInput) SetConversationId

func (input *ApprovalReportInput) SetConversationId(value string)

func (*ApprovalReportInput) SetFields

func (input *ApprovalReportInput) SetFields(value []string)

func (*ApprovalReportInput) SetId

func (input *ApprovalReportInput) SetId(value string)

func (*ApprovalReportInput) SetInternal

func (input *ApprovalReportInput) SetInternal(value bool)

func (*ApprovalReportInput) SetMessageId

func (input *ApprovalReportInput) SetMessageId(value string)

func (*ApprovalReportInput) SetQueueStatus

func (input *ApprovalReportInput) SetQueueStatus(value string)

func (*ApprovalReportInput) SetToolName

func (input *ApprovalReportInput) SetToolName(value string)

func (*ApprovalReportInput) SetTurnId

func (input *ApprovalReportInput) SetTurnId(value string)

func (*ApprovalReportInput) SetUserId

func (input *ApprovalReportInput) SetUserId(value string)

func (*ApprovalReportInput) SetVisibilitySubject

func (input *ApprovalReportInput) SetVisibilitySubject(value *string)

type ApprovalReportInputHas

type ApprovalReportInputHas struct {
	Internal          bool
	VisibilitySubject bool
	Id                bool
	UserId            bool
	ConversationId    bool
	TurnId            bool
	MessageId         bool
	ToolName          bool
	QueueStatus       bool
	Fields            bool
}

type ApprovalReportOutput

type ApprovalReportOutput struct {
	Data []*ApprovalReportView `` /* 243-byte string literal not displayed */
}

ApprovalReportOutput is the generated output scaffold for reader.

type ApprovalReportView

type ApprovalReportView struct {
	UserId         string  `groupable:"true" sqlx:"user_id,required=true" json:"userId"`
	ConversationId *string `groupable:"true" sqlx:"conversation_id,refTable=conversation,refColumn=id" json:"conversationId"`
	ToolName       string  `groupable:"true" sqlx:"tool_name,required=true" json:"toolName"`
	Status         string  `groupable:"true" sqlx:"status,required=true" json:"status"`
	Decision       *string `groupable:"true" sqlx:"decision" json:"decision"`
	TotalCount     int     `groupable:"false" sqlx:"total_count" json:"totalCount"`
	PendingCount   int     `groupable:"false" sqlx:"pending_count" json:"pendingCount"`
	OutcomeCount   int     `groupable:"false" sqlx:"outcome_count" json:"outcomeCount"`
	TimedOutCount  int     `groupable:"false" sqlx:"timed_out_count" json:"timedOutCount"`
}

ApprovalReportView is generated canonical view metadata for reader.

type ReaderComponent

type ReaderComponent struct {
	Contract xdatly.Component[ApprovalReportInput, ApprovalReportOutput] "" /* 217-byte string literal not displayed */
}

Component is the generated component scaffold for reader.

func (ReaderComponent) EmbedFS

func (ReaderComponent) EmbedFS() *embed.FS

func (ReaderComponent) EmbedNamespace

func (ReaderComponent) EmbedNamespace() string

type ReaderCubeComponent

type ReaderCubeComponent struct {
	Contract xdatly.Component[ReaderCubeInput, ReaderCubeOutput] "" /* 164-byte string literal not displayed */
}

func (ReaderCubeComponent) DatlyHandler

func (ReaderCubeComponent) DatlyHandler(name string) func() (rhandler.TypedHandler, error)

type ReaderCubeDimensions

type ReaderCubeDimensions struct {
	UserId         bool "json:\"userId,omitempty\" desc:\"user_id\""
	ConversationId bool "json:\"conversationId,omitempty\" desc:\"conversation_id\""
	ToolName       bool "json:\"toolName,omitempty\" desc:\"tool_name\""
	Status         bool "json:\"status,omitempty\" desc:\"status\""
	Decision       bool "json:\"decision,omitempty\" desc:\"decision\""
}

type ReaderCubeFilters

type ReaderCubeFilters struct {
	Id             *string               "json:\"id,omitempty\""
	UserId         *string               "json:\"userId,omitempty\""
	ConversationId *string               "json:\"conversationId,omitempty\""
	TurnId         *string               "json:\"turnId,omitempty\""
	MessageId      *string               "json:\"messageId,omitempty\""
	ToolName       *string               "json:\"toolName,omitempty\""
	QueueStatus    *string               "json:\"queueStatus,omitempty\""
	Has            *ReaderCubeFiltersHas "setMarker:\"true\" json:\"-\" sqlx:\"-\""
}

func (*ReaderCubeFilters) SetConversationId

func (v *ReaderCubeFilters) SetConversationId(value *string)

func (*ReaderCubeFilters) SetId

func (v *ReaderCubeFilters) SetId(value *string)

func (*ReaderCubeFilters) SetMessageId

func (v *ReaderCubeFilters) SetMessageId(value *string)

func (*ReaderCubeFilters) SetQueueStatus

func (v *ReaderCubeFilters) SetQueueStatus(value *string)

func (*ReaderCubeFilters) SetToolName

func (v *ReaderCubeFilters) SetToolName(value *string)

func (*ReaderCubeFilters) SetTurnId

func (v *ReaderCubeFilters) SetTurnId(value *string)

func (*ReaderCubeFilters) SetUserId

func (v *ReaderCubeFilters) SetUserId(value *string)

type ReaderCubeFiltersHas

type ReaderCubeFiltersHas struct {
	Id             bool
	UserId         bool
	ConversationId bool
	TurnId         bool
	MessageId      bool
	ToolName       bool
	QueueStatus    bool
}

type ReaderCubeInput

type ReaderCubeInput struct {
	Dimensions ReaderCubeDimensions "json:\"dimensions,omitempty\" desc:\"Selected grouping dimensions\" parameter:\"Dimensions,kind=body,in=dimensions\""
	Measures   ReaderCubeMeasures   "json:\"measures,omitempty\" desc:\"Selected aggregate measures\" parameter:\"Measures,kind=body,in=measures\""
	Filters    ReaderCubeFilters    "json:\"filters,omitempty\" desc:\"Report filters\" parameter:\"Filters,kind=body,in=filters\""
	OrderBy    []string             "json:\"orderBy,omitempty\" desc:\"Grouped result ordering\" parameter:\"OrderBy,kind=body,in=orderBy\""
	Limit      *int                 "json:\"limit,omitempty\" desc:\"Maximum grouped rows\" parameter:\"Limit,kind=body,in=limit\""
	Offset     *int                 "json:\"offset,omitempty\" desc:\"Grouped row offset\" parameter:\"Offset,kind=body,in=offset\""
}

type ReaderCubeMeasures

type ReaderCubeMeasures struct {
	TotalCount    bool "json:\"totalCount,omitempty\" desc:\"total_count\""
	PendingCount  bool "json:\"pendingCount,omitempty\" desc:\"pending_count\""
	OutcomeCount  bool "json:\"outcomeCount,omitempty\" desc:\"outcome_count\""
	TimedOutCount bool "json:\"timedOutCount,omitempty\" desc:\"timed_out_count\""
}

type ReaderCubeOutput

type ReaderCubeOutput = ApprovalReportOutput

Jump to

Keyboard shortcuts

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