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

read

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

Documentation

Index

Constants

View Source
const ReaderDatlyResourceNamespace = "datly_session_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[SessionInput, SessionOutput] "" /* 148-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 SessionInput

type SessionInput struct {
	Id                 string                        `parameter:"Id,kind=query,in=id,dataType=string,required=false" predicate:"equal,s,id"`
	TechnicalRetention *predicate.TechnicalRetention `` /* 221-byte string literal not displayed */
	Has                *SessionInputHas              `setMarker:"true" typeName:"SessionInputHas" json:"-" sqlx:"-"`
}

SessionInput is the generated input scaffold for reader.

func (*SessionInput) SetId

func (input *SessionInput) SetId(value string)

func (*SessionInput) SetTechnicalRetention

func (input *SessionInput) SetTechnicalRetention(value *predicate.TechnicalRetention)

type SessionInputHas

type SessionInputHas struct {
	Id                 bool
	TechnicalRetention bool
}

type SessionOutput

type SessionOutput struct {
	response.Status `parameter:",kind=output,in=status"`
	Metrics         response.Metrics `parameter:",kind=output,in=metrics" json:"metrics"`
	Data            []*SessionView   `` /* 186-byte string literal not displayed */
}

SessionOutput is the generated output scaffold for reader.

type SessionView

type SessionView struct {
	MaintenanceObservedAt string     `internal:"true" json:"-" sqlx:"maintenance_observed_at"`
	Id                    string     `sqlx:"id,primaryKey=true" json:"id"`
	UserId                string     `sqlx:"user_id,required=true" json:"userId"`
	Provider              string     `sqlx:"provider,required=true" json:"provider"`
	CreatedAt             time.Time  `sqlx:"created_at,required=true" json:"createdAt"`
	ExpiresAt             time.Time  `sqlx:"expires_at,required=true" json:"expiresAt"`
	UpdatedAt             *time.Time `sqlx:"updated_at" json:"updatedAt"`
	Username              *string    `sqlx:"username" json:"username"`
	DisplayName           *string    `sqlx:"display_name" json:"displayName"`
	Email                 *string    `sqlx:"email" json:"email"`
	Subject               *string    `sqlx:"subject" json:"subject"`
}

SessionView 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