Documentation
¶
Index ¶
- func SortItems(items []Item, sortSpec sdk.SortSpec) error
- type DalleDress
- func (dd *DalleDress) Action(short bool) string
- func (dd *DalleDress) Adjective(short bool) string
- func (dd *DalleDress) Adverb(short bool) string
- func (dd *DalleDress) ArtStyle(short bool, which int) string
- func (dd *DalleDress) BackStyle(short bool) string
- func (dd *DalleDress) Color(short bool, which int) string
- func (dd *DalleDress) Composition(short bool) string
- func (dd *DalleDress) Emotion(short bool) string
- func (dd *DalleDress) ExecuteTemplate(t *template.Template, f func(s string) string) (string, error)
- func (dd *DalleDress) FromTemplate(templateStr string) (string, error)
- func (dd *DalleDress) Gaze(short bool) string
- func (dd *DalleDress) HasLitStyle() bool
- func (dd *DalleDress) LitPrompt(short bool) string
- func (dd *DalleDress) LitStyle(short bool) string
- func (dd *DalleDress) LitStyleDescr() string
- func (dd *DalleDress) Noun(short bool) string
- func (dd *DalleDress) Occupation(short bool) string
- func (d *DalleDress) String() string
- func (dd *DalleDress) Viewpoint(short bool) string
- type Database
- type Generator
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DalleDress ¶
type DalleDress struct {
Original string `json:"original"`
OriginalName string `json:"originalName"`
FileName string `json:"fileName"`
FileSize int64 `json:"fileSize"`
ModifiedAt int64 `json:"modifiedAt"`
Seed string `json:"seed"`
Prompt string `json:"prompt"`
DataPrompt string `json:"dataPrompt"`
TitlePrompt string `json:"titlePrompt"`
TersePrompt string `json:"tersePrompt"`
EnhancedPrompt string `json:"enhancedPrompt"`
Attribs []prompt.Attribute `json:"attributes"`
AttribMap map[string]prompt.Attribute `json:"-"`
SeedChunks []string `json:"seedChunks"`
SelectedTokens []string `json:"selectedTokens"`
SelectedRecords []string `json:"selectedRecords"`
ImageURL string `json:"imageUrl"`
GeneratedPath string `json:"generatedPath"`
AnnotatedPath string `json:"annotatedPath"`
DownloadMode string `json:"downloadMode"`
IPFSHash string `json:"ipfsHash"`
CacheHit bool `json:"cacheHit"`
Completed bool `json:"completed"`
Series string `json:"series"`
}
DalleDress represents a generated prompt and its associated attributes.
func (*DalleDress) Action ¶
func (dd *DalleDress) Action(short bool) string
func (*DalleDress) Adjective ¶
func (dd *DalleDress) Adjective(short bool) string
func (*DalleDress) Adverb ¶
func (dd *DalleDress) Adverb(short bool) string
func (*DalleDress) BackStyle ¶
func (dd *DalleDress) BackStyle(short bool) string
func (*DalleDress) Composition ¶
func (dd *DalleDress) Composition(short bool) string
func (*DalleDress) Emotion ¶
func (dd *DalleDress) Emotion(short bool) string
func (*DalleDress) ExecuteTemplate ¶
func (*DalleDress) FromTemplate ¶
func (dd *DalleDress) FromTemplate(templateStr string) (string, error)
func (*DalleDress) Gaze ¶
func (dd *DalleDress) Gaze(short bool) string
func (*DalleDress) HasLitStyle ¶
func (dd *DalleDress) HasLitStyle() bool
func (*DalleDress) LitPrompt ¶
func (dd *DalleDress) LitPrompt(short bool) string
func (*DalleDress) LitStyle ¶
func (dd *DalleDress) LitStyle(short bool) string
func (*DalleDress) LitStyleDescr ¶
func (dd *DalleDress) LitStyleDescr() string
func (*DalleDress) Noun ¶
func (dd *DalleDress) Noun(short bool) string
func (*DalleDress) Occupation ¶
func (dd *DalleDress) Occupation(short bool) string
func (*DalleDress) String ¶
func (d *DalleDress) String() string
func (*DalleDress) Viewpoint ¶
func (dd *DalleDress) Viewpoint(short bool) string
type Database ¶
type Database struct {
ID string `json:"id"`
Name string `json:"name"`
DatabaseName string `json:"databaseName"` // Internal name from DatabaseNames (e.g., "nouns")
Count uint64 `json:"count"` // Total record count
Sample string `json:"sample"` // Sample record (first record)
Filtered string `json:"filtered"` // Filter status indicator
Version string `json:"version"` // Version from CSV (e.g., "v0.1.0")
Columns []string `json:"columns"` // Column names
Description string `json:"description"` // Database description
LastUpdated int64 `json:"lastUpdated"` // Timestamp
CacheHit bool `json:"cacheHit"` // Whether loaded from cache
}
type Item ¶ added in v6.6.6
type Item struct {
ID string `json:"id"`
DatabaseName string `json:"databaseName"` // Which database this record belongs to
Index uint64 `json:"index"` // Item index/position
Version string `json:"version"` // Version from CSV (e.g., "v0.1.0")
Value string `json:"value"` // The actual record value
Remainder string `json:"remainder"` // Remaining CSV columns joined
}
Click to show internal directories.
Click to hide internal directories.