Documentation
¶
Index ¶
- Constants
- Variables
- func NewReaderCube() (rhandler.TypedHandler, error)
- func ReaderCubeDatlyType() reflect.Type
- func ReaderDatlyType() reflect.Type
- type MessageReportInput
- func (input *MessageReportInput) SetConversationId(value string)
- func (input *MessageReportInput) SetFields(value []string)
- func (input *MessageReportInput) SetInternal(value bool)
- func (input *MessageReportInput) SetRoles(value []string)
- func (input *MessageReportInput) SetStatuses(value []string)
- func (input *MessageReportInput) SetTurnId(value string)
- func (input *MessageReportInput) SetVisibilitySubject(value *string)
- type MessageReportInputHas
- type MessageReportOutput
- type MessageReportView
- type ReaderComponent
- type ReaderCubeComponent
- type ReaderCubeDimensions
- type ReaderCubeFilters
- type ReaderCubeFiltersHas
- type ReaderCubeInput
- type ReaderCubeMeasures
- type ReaderCubeOutput
Constants ¶
View Source
const ReaderDatlyResourceNamespace = "datly_message_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 ReaderDatlyType ¶
ReaderDatlyType returns the public component type.
Types ¶
type MessageReportInput ¶
type MessageReportInput struct {
Internal bool `parameter:"Internal,kind=messageaccess,in=internal,dataType=bool,required=true"`
VisibilitySubject *string `parameter:"VisibilitySubject,kind=visibility,in=subject,dataType=*string,required=true"`
ConversationId string `parameter:"ConversationId,kind=query,in=conversationId,dataType=string,required=false" predicate:"equal,m,conversation_id"`
TurnId string `parameter:"TurnId,kind=query,in=turnId,dataType=string,required=false" predicate:"equal,m,turn_id"`
Roles []string `parameter:"Roles,kind=query,in=roles,dataType=[]string,required=false" predicate:"in,m,role"`
Statuses []string `parameter:"Statuses,kind=query,in=statuses,dataType=[]string,required=false" predicate:"in,m,status"`
Fields []string `` /* 132-byte string literal not displayed */
Has *MessageReportInputHas `setMarker:"true" typeName:"MessageReportInputHas" json:"-" sqlx:"-"`
}
MessageReportInput is the generated input scaffold for reader.
func (*MessageReportInput) SetConversationId ¶
func (input *MessageReportInput) SetConversationId(value string)
func (*MessageReportInput) SetFields ¶
func (input *MessageReportInput) SetFields(value []string)
func (*MessageReportInput) SetInternal ¶
func (input *MessageReportInput) SetInternal(value bool)
func (*MessageReportInput) SetRoles ¶
func (input *MessageReportInput) SetRoles(value []string)
func (*MessageReportInput) SetStatuses ¶
func (input *MessageReportInput) SetStatuses(value []string)
func (*MessageReportInput) SetTurnId ¶
func (input *MessageReportInput) SetTurnId(value string)
func (*MessageReportInput) SetVisibilitySubject ¶
func (input *MessageReportInput) SetVisibilitySubject(value *string)
type MessageReportInputHas ¶
type MessageReportOutput ¶
type MessageReportOutput struct {
Data []*MessageReportView `` /* 219-byte string literal not displayed */
}
MessageReportOutput is the generated output scaffold for reader.
type MessageReportView ¶
type MessageReportView struct {
ConversationId string `groupable:"true" sqlx:"conversation_id,refTable=conversation,refColumn=id,required=true" json:"conversationId"`
Role string `groupable:"true" sqlx:"role,required=true" json:"role"`
Type string `groupable:"true" sqlx:"type,required=true" json:"type"`
Status *string `groupable:"true" sqlx:"status" json:"status"`
Phase *string `groupable:"true" sqlx:"phase" json:"phase"`
Iteration *int `groupable:"true" sqlx:"iteration" json:"iteration"`
RecordCount int `groupable:"false" sqlx:"record_count" json:"recordCount"`
PendingCount int `groupable:"false" sqlx:"pending_count" json:"pendingCount"`
UserCount int `groupable:"false" sqlx:"user_count" json:"userCount"`
AssistantCount int `groupable:"false" sqlx:"assistant_count" json:"assistantCount"`
}
MessageReportView is generated canonical view metadata for reader.
type ReaderComponent ¶
type ReaderComponent struct {
Contract xdatly.Component[MessageReportInput, MessageReportOutput] "" /* 211-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] "" /* 158-byte string literal not displayed */
}
func (ReaderCubeComponent) DatlyHandler ¶
func (ReaderCubeComponent) DatlyHandler(name string) func() (rhandler.TypedHandler, error)
type ReaderCubeDimensions ¶
type ReaderCubeDimensions struct {
ConversationId bool "json:\"conversationId,omitempty\" desc:\"conversation_id\""
Role bool "json:\"role,omitempty\" desc:\"role\""
Type bool "json:\"type,omitempty\" desc:\"type\""
Status bool "json:\"status,omitempty\" desc:\"status\""
Phase bool "json:\"phase,omitempty\" desc:\"phase\""
Iteration bool "json:\"iteration,omitempty\" desc:\"iteration\""
}
type ReaderCubeFilters ¶
type ReaderCubeFilters struct {
ConversationId *string "json:\"conversationId,omitempty\""
TurnId *string "json:\"turnId,omitempty\""
Roles *[]string "json:\"roles,omitempty\""
Statuses *[]string "json:\"statuses,omitempty\""
Has *ReaderCubeFiltersHas "setMarker:\"true\" json:\"-\" sqlx:\"-\""
}
func (*ReaderCubeFilters) SetConversationId ¶
func (v *ReaderCubeFilters) SetConversationId(value *string)
func (*ReaderCubeFilters) SetRoles ¶
func (v *ReaderCubeFilters) SetRoles(value *[]string)
func (*ReaderCubeFilters) SetStatuses ¶
func (v *ReaderCubeFilters) SetStatuses(value *[]string)
func (*ReaderCubeFilters) SetTurnId ¶
func (v *ReaderCubeFilters) SetTurnId(value *string)
type ReaderCubeFiltersHas ¶
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 {
RecordCount bool "json:\"recordCount,omitempty\" desc:\"record_count\""
PendingCount bool "json:\"pendingCount,omitempty\" desc:\"pending_count\""
UserCount bool "json:\"userCount,omitempty\" desc:\"user_count\""
AssistantCount bool "json:\"assistantCount,omitempty\" desc:\"assistant_count\""
}
type ReaderCubeOutput ¶
type ReaderCubeOutput = MessageReportOutput
Click to show internal directories.
Click to hide internal directories.