Documentation
¶
Index ¶
Constants ¶
View Source
const ReaderDatlyResourceNamespace = "datly_user_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 ReaderComponent ¶
type ReaderComponent struct {
Contract xdatly.Component[UserInput, UserOutput] "" /* 140-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 UserInput ¶
type UserInput struct {
Id string `parameter:"Id,kind=query,in=id,dataType=string,required=false" predicate:"equal,t,id"`
Username string `parameter:"Username,kind=query,in=username,dataType=string,required=false" predicate:"equal,t,username"`
Subject string `parameter:"Subject,kind=query,in=subject,dataType=string,required=false" predicate:"equal,t,subject"`
Provider string `parameter:"Provider,kind=query,in=provider,dataType=string,required=false" predicate:"equal,t,provider"`
Has *UserInputHas `setMarker:"true" typeName:"UserInputHas" json:"-" sqlx:"-"`
}
UserInput is the generated input scaffold for reader.
func (*UserInput) SetProvider ¶
func (*UserInput) SetSubject ¶
func (*UserInput) SetUsername ¶
type UserOutput ¶
type UserOutput struct {
response.Status `parameter:",kind=output,in=status"`
Metrics response.Metrics `parameter:",kind=output,in=metrics" json:"metrics"`
Data []*UserView `` /* 157-byte string literal not displayed */
}
UserOutput is the generated output scaffold for reader.
type UserView ¶
type UserView struct {
CreatedAt time.Time `sqlx:"created_at,required=true" json:"createdAt"`
Disabled int `sqlx:"disabled,required=true" json:"disabled"`
Id string `sqlx:"id,primaryKey=true" json:"id"`
Provider string `sqlx:"provider,required=true" json:"provider"`
Timezone string `sqlx:"timezone,required=true" json:"timezone"`
Username string `sqlx:"username,required=true" json:"username"`
DisplayName *string `sqlx:"display_name" json:"displayName"`
Email *string `sqlx:"email" json:"email"`
Subject *string `sqlx:"subject" json:"subject"`
HashIp *string `sqlx:"hash_ip" json:"hashIp"`
DefaultAgentRef *string `sqlx:"default_agent_ref" json:"defaultAgentRef"`
DefaultModelRef *string `sqlx:"default_model_ref" json:"defaultModelRef"`
DefaultEmbedderRef *string `sqlx:"default_embedder_ref" json:"defaultEmbedderRef"`
Settings *string `sqlx:"settings" json:"settings"`
UpdatedAt *time.Time `sqlx:"updated_at" json:"updatedAt"`
}
UserView is generated canonical view metadata for reader.
Click to show internal directories.
Click to hide internal directories.