Documentation
¶
Index ¶
- Variables
- func DefineComponent(ctx context.Context, srv *datly.Service) (*repository.Component, error)
- type GeneratedFile
- func (p *GeneratedFile) SetChecksum(v string)
- func (p *GeneratedFile) SetContainerID(v string)
- func (p *GeneratedFile) SetConversationID(v string)
- func (p *GeneratedFile) SetCopyMode(v string)
- func (p *GeneratedFile) SetCreatedAt(v time.Time)
- func (p *GeneratedFile) SetErrorMessage(v string)
- func (p *GeneratedFile) SetExpiresAt(v time.Time)
- func (p *GeneratedFile) SetFilename(v string)
- func (p *GeneratedFile) SetID(v string)
- func (p *GeneratedFile) SetMessageID(v string)
- func (p *GeneratedFile) SetMimeType(v string)
- func (p *GeneratedFile) SetMode(v string)
- func (p *GeneratedFile) SetPayloadID(v string)
- func (p *GeneratedFile) SetProvider(v string)
- func (p *GeneratedFile) SetProviderFileID(v string)
- func (p *GeneratedFile) SetSizeBytes(v int)
- func (p *GeneratedFile) SetStatus(v string)
- func (p *GeneratedFile) SetTurnID(v string)
- func (p *GeneratedFile) SetUpdatedAt(v time.Time)
- type GeneratedFileHas
- type Handler
- type Input
- type Output
Constants ¶
This section is empty.
Variables ¶
View Source
var FS embed.FS
View Source
var PackageName = "generatedfile/write"
View Source
var PathURI = "/v1/api/agently/generated-file"
Functions ¶
func DefineComponent ¶
Types ¶
type GeneratedFile ¶
type GeneratedFile struct {
ID string `sqlx:"id,primaryKey" validate:"required"`
ConversationID string `sqlx:"conversation_id" validate:"required"`
TurnID *string `sqlx:"turn_id" json:",omitempty"`
MessageID *string `sqlx:"message_id" json:",omitempty"`
Provider string `sqlx:"provider" validate:"required"`
Mode string `sqlx:"mode" validate:"required"`
CopyMode string `sqlx:"copy_mode" validate:"required"`
Status string `sqlx:"status" validate:"required"`
PayloadID *string `sqlx:"payload_id" json:",omitempty"`
ContainerID *string `sqlx:"container_id" json:",omitempty"`
ProviderFileID *string `sqlx:"provider_file_id" json:",omitempty"`
Filename *string `sqlx:"filename" json:",omitempty"`
MimeType *string `sqlx:"mime_type" json:",omitempty"`
SizeBytes *int `sqlx:"size_bytes" json:",omitempty"`
Checksum *string `sqlx:"checksum" json:",omitempty"`
ErrorMessage *string `sqlx:"error_message" json:",omitempty"`
ExpiresAt *time.Time `sqlx:"expires_at" json:",omitempty"`
CreatedAt *time.Time `sqlx:"created_at" json:",omitempty"`
UpdatedAt *time.Time `sqlx:"updated_at" json:",omitempty"`
Has *GeneratedFileHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}
func (*GeneratedFile) SetChecksum ¶
func (p *GeneratedFile) SetChecksum(v string)
func (*GeneratedFile) SetContainerID ¶
func (p *GeneratedFile) SetContainerID(v string)
func (*GeneratedFile) SetConversationID ¶
func (p *GeneratedFile) SetConversationID(v string)
func (*GeneratedFile) SetCopyMode ¶
func (p *GeneratedFile) SetCopyMode(v string)
func (*GeneratedFile) SetCreatedAt ¶
func (p *GeneratedFile) SetCreatedAt(v time.Time)
func (*GeneratedFile) SetErrorMessage ¶
func (p *GeneratedFile) SetErrorMessage(v string)
func (*GeneratedFile) SetExpiresAt ¶
func (p *GeneratedFile) SetExpiresAt(v time.Time)
func (*GeneratedFile) SetFilename ¶
func (p *GeneratedFile) SetFilename(v string)
func (*GeneratedFile) SetID ¶
func (p *GeneratedFile) SetID(v string)
func (*GeneratedFile) SetMessageID ¶
func (p *GeneratedFile) SetMessageID(v string)
func (*GeneratedFile) SetMimeType ¶
func (p *GeneratedFile) SetMimeType(v string)
func (*GeneratedFile) SetMode ¶
func (p *GeneratedFile) SetMode(v string)
func (*GeneratedFile) SetPayloadID ¶
func (p *GeneratedFile) SetPayloadID(v string)
func (*GeneratedFile) SetProvider ¶
func (p *GeneratedFile) SetProvider(v string)
func (*GeneratedFile) SetProviderFileID ¶
func (p *GeneratedFile) SetProviderFileID(v string)
func (*GeneratedFile) SetSizeBytes ¶
func (p *GeneratedFile) SetSizeBytes(v int)
func (*GeneratedFile) SetStatus ¶
func (p *GeneratedFile) SetStatus(v string)
func (*GeneratedFile) SetTurnID ¶
func (p *GeneratedFile) SetTurnID(v string)
func (*GeneratedFile) SetUpdatedAt ¶
func (p *GeneratedFile) SetUpdatedAt(v time.Time)
type GeneratedFileHas ¶
type GeneratedFileHas struct {
ID bool
ConversationID bool
TurnID bool
MessageID bool
Provider bool
Mode bool
CopyMode bool
Status bool
PayloadID bool
ContainerID bool
ProviderFileID bool
Filename bool
MimeType bool
SizeBytes bool
Checksum bool
ErrorMessage bool
ExpiresAt bool
CreatedAt bool
UpdatedAt bool
}
type Input ¶
type Input struct {
GeneratedFiles []*GeneratedFile `parameter:",kind=body,in=data"`
CurIDs *struct{ Values []string } `parameter:",kind=param,in=GeneratedFiles,dataType=generatedfile/write.GeneratedFiles" codec:"structql,uri=sql/cur_ids.sql"`
Cur []*GeneratedFile `parameter:",kind=view,in=Cur" view:"Cur" sql:"uri=sql/cur_generated_file.sql"`
CurByID map[string]*GeneratedFile
}
Click to show internal directories.
Click to hide internal directories.