Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLLMGatewayEnabled ¶
Types ¶
type Repository ¶
type Template ¶
type Template struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
IsGlobal bool `json:"isGlobal"`
IsPremium bool `json:"isPremium"`
Readme string `json:"readme"`
Tags []string `json:"tags"`
Repository Repository `json:"repository"`
MediaURL string `json:"mediaURL"`
CreatedAt time.Time `json:"createdAt"`
}
func GetTemplate ¶
func (Template) DefaultDir ¶
func (Template) FilterValue ¶
type TemplateList ¶
type TemplateList struct {
Templates []Template `json:"data"`
Count int `json:"count"`
TotalCount int `json:"totalCount"`
Next string `json:"next"`
Previous string `json:"previous"`
}
func GetPublicTemplatesSorted ¶ added in v0.2.0
func GetPublicTemplatesSorted() (*TemplateList, error)
func GetTemplates ¶
func GetTemplates() (*TemplateList, error)
func (TemplateList) ExcludePremium ¶ added in v0.2.0
func (tl TemplateList) ExcludePremium() TemplateList
func (TemplateList) SortByName ¶ added in v0.2.0
func (tl TemplateList) SortByName() TemplateList
func (TemplateList) SortNewestFirst ¶ added in v0.2.0
func (tl TemplateList) SortNewestFirst() TemplateList
Click to show internal directories.
Click to hide internal directories.