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

Documentation

Index

Constants

View Source
const ReaderDatlyResourceNamespace = "datly_generatedfile_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 GeneratedFileView

type GeneratedFileView struct {
	Id             string     `sqlx:"id,primaryKey=true" json:"id"`
	ConversationId string     `sqlx:"conversation_id,refTable=conversation,refColumn=id,required=true" json:"conversationId"`
	Provider       string     `sqlx:"provider,required=true" json:"provider"`
	Mode           string     `sqlx:"mode,required=true" json:"mode"`
	CopyMode       string     `sqlx:"copy_mode,required=true" json:"copyMode"`
	Status         string     `sqlx:"status,required=true" json:"status"`
	TurnId         *string    `sqlx:"turn_id" json:"turnId"`
	MessageId      *string    `sqlx:"message_id" json:"messageId"`
	PayloadId      *string    `sqlx:"payload_id" json:"payloadId"`
	ContainerId    *string    `sqlx:"container_id" json:"containerId"`
	ProviderFileId *string    `sqlx:"provider_file_id" json:"providerFileId"`
	Filename       *string    `sqlx:"filename" json:"filename"`
	MimeType       *string    `sqlx:"mime_type" json:"mimeType"`
	SizeBytes      *int       `sqlx:"size_bytes" json:"sizeBytes"`
	Checksum       *string    `sqlx:"checksum" json:"checksum"`
	ErrorMessage   *string    `sqlx:"error_message" json:"errorMessage"`
	ExpiresAt      *time.Time `sqlx:"expires_at" json:"expiresAt"`
	CreatedAt      *time.Time `sqlx:"created_at,required=true" json:"createdAt"`
	UpdatedAt      *time.Time `sqlx:"updated_at,required=true" json:"updatedAt"`
}

GeneratedFileView is generated canonical view metadata for reader.

type Input

type Input struct {
	ConversationID  string     `parameter:"ConversationID,kind=query,in=conversationId,dataType=string,required=false" predicate:"equal,gf,conversation_id"`
	ConversationIDs []string   `parameter:"ConversationIDs,kind=query,in=conversationIds,dataType=[]string,required=false" predicate:"in,gf,conversation_id"`
	TurnID          string     `parameter:"TurnID,kind=query,in=turnId,dataType=string,required=false" predicate:"equal,gf,turn_id"`
	MessageID       string     `parameter:"MessageID,kind=query,in=messageId,dataType=string,required=false" predicate:"equal,gf,message_id"`
	ID              string     `parameter:"ID,kind=query,in=id,dataType=string,required=false" predicate:"equal,gf,id"`
	Provider        string     `parameter:"Provider,kind=query,in=provider,dataType=string,required=false" predicate:"equal,gf,provider"`
	Status          string     `parameter:"Status,kind=query,in=status,dataType=string,required=false" predicate:"equal,gf,status"`
	Since           *time.Time `parameter:"Since,kind=query,in=since,dataType=*time.Time,required=false" predicate:"greater_or_equal,gf,created_at"`
	Has             *InputHas  `setMarker:"true" typeName:"InputHas" json:"-" sqlx:"-"`
}

Input is the generated input scaffold for reader.

func (*Input) SetConversationID

func (input *Input) SetConversationID(value string)

func (*Input) SetConversationIDs

func (input *Input) SetConversationIDs(value []string)

func (*Input) SetID

func (input *Input) SetID(value string)

func (*Input) SetMessageID

func (input *Input) SetMessageID(value string)

func (*Input) SetProvider

func (input *Input) SetProvider(value string)

func (*Input) SetSince

func (input *Input) SetSince(value *time.Time)

func (*Input) SetStatus

func (input *Input) SetStatus(value string)

func (*Input) SetTurnID

func (input *Input) SetTurnID(value string)

type InputHas

type InputHas struct {
	ConversationID  bool
	ConversationIDs bool
	TurnID          bool
	MessageID       bool
	ID              bool
	Provider        bool
	Status          bool
	Since           bool
}

type Output

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

Output is the generated output scaffold for reader.

type ReaderComponent

type ReaderComponent struct {
	Contract xdatly.Component[Input, Output] "" /* 150-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

Jump to

Keyboard shortcuts

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