Documentation
¶
Index ¶
- Constants
- Variables
- func ReaderDatlyType() reflect.Type
- type Context
- type Input
- func (input *Input) SetActiveReportRunID(value string)
- func (input *Input) SetActiveReportRunIDs(value []string)
- func (input *Input) SetConversationID(value string)
- func (input *Input) SetConversationIDs(value []string)
- func (input *Input) SetInternal(value bool)
- func (input *Input) SetOwnerID(value string)
- func (input *Input) SetOwnerSubject(value *string)
- type InputHas
- type Output
- type ReaderComponent
Constants ¶
View Source
const ReaderDatlyResourceNamespace = "reporting_context_read_reader"
DatlyResourceNamespace identifies this package's generated resource filesystem.
Variables ¶
View Source
var ReaderDatly = new(ReaderComponent)
The public value supports explicit component wiring.
View Source
var ReaderDatlyResources embed.FS
Functions ¶
func ReaderDatlyType ¶
ReaderDatlyType returns the public component type.
Types ¶
type Context ¶
type Context struct {
OwnerId string `sqlx:"owner_id,refTable=report_run,refColumn=owner_id,required=true,primaryKey=true" json:"ownerId"`
ConversationId string `sqlx:"conversation_id,refTable=conversation,refColumn=id,required=true,primaryKey=true" json:"conversationId"`
ActiveReportRunId string `sqlx:"active_report_run_id,refTable=report_run,refColumn=report_run_id,required=true" json:"activeReportRunId"`
Revision int64 `sqlx:"revision,required=true" json:"revision"`
ActivationSource string `sqlx:"activation_source,required=true" json:"activationSource"`
ActorId string `sqlx:"actor_id,required=true" json:"actorId"`
UpdatedAt time.Time `sqlx:"updated_at,required=true" json:"updatedAt"`
}
Context is generated canonical view metadata for reader.
type Input ¶
type Input struct {
Internal bool `parameter:"Internal,kind=reportaccess,in=internal,dataType=bool,required=true"`
OwnerSubject *string `parameter:"OwnerSubject,kind=visibility,in=subject,dataType=*string,required=true"`
OwnerID string `parameter:"OwnerID,kind=query,in=ownerId,dataType=string,required=false" predicate:"equal,c,owner_id"`
ConversationID string `parameter:"ConversationID,kind=query,in=conversationId,dataType=string,required=false" predicate:"equal,c,conversation_id"`
ConversationIDs []string `parameter:"ConversationIDs,kind=query,in=conversationIds,dataType=[]string,required=false" predicate:"in,c,conversation_id"`
ActiveReportRunID string `` /* 133-byte string literal not displayed */
ActiveReportRunIDs []string `` /* 134-byte string literal not displayed */
Has *InputHas `setMarker:"true" typeName:"InputHas" json:"-" sqlx:"-"`
}
Input is the generated input scaffold for reader.
func (*Input) SetActiveReportRunID ¶
func (*Input) SetActiveReportRunIDs ¶
func (*Input) SetConversationID ¶
func (*Input) SetConversationIDs ¶
func (*Input) SetInternal ¶
func (*Input) SetOwnerID ¶
func (*Input) SetOwnerSubject ¶
type Output ¶
type Output struct {
Data []*Context `` /* 222-byte string literal not displayed */
}
Output is the generated output scaffold for reader.
type ReaderComponent ¶
type ReaderComponent struct {
Contract xdatly.Component[Input, Output] "" /* 169-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
Click to show internal directories.
Click to hide internal directories.