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

read

package
v0.1.57 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_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

func ReaderDatlyType() reflect.Type

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

func (input *UserInput) SetId(value string)

func (*UserInput) SetProvider

func (input *UserInput) SetProvider(value string)

func (*UserInput) SetSubject

func (input *UserInput) SetSubject(value string)

func (*UserInput) SetUsername

func (input *UserInput) SetUsername(value string)

type UserInputHas

type UserInputHas struct {
	Id       bool
	Username bool
	Subject  bool
	Provider bool
}

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.

Jump to

Keyboard shortcuts

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