Documentation
¶
Index ¶
- Constants
- Variables
- func PreviewURL(id string) string
- func Register(app core.App)
- func SetPinned(ctx context.Context, app core.App, actorID, appID string, pinned bool) error
- type CreateInput
- type GetInput
- type ListInput
- type ReplaceInput
- type Result
- func Create(ctx context.Context, app core.App, actorID string, input CreateInput) Result
- func Get(ctx context.Context, app core.App, actorID string, input GetInput) Result
- func List(ctx context.Context, app core.App, actorID string, input ListInput) Result
- func Replace(ctx context.Context, app core.App, actorID string, input ReplaceInput) Result
- func Search(ctx context.Context, app core.App, actorID string, input SearchInput) Result
- func Update(ctx context.Context, app core.App, actorID string, input UpdateInput) Result
- func WriteChunk(ctx context.Context, app core.App, actorID string, input WriteChunkInput) Result
- type SearchInput
- type SearchMatch
- type Summary
- type UpdateInput
- type WriteChunkInput
Constants ¶
View Source
const (
CollectionName = "ai_micro_apps"
)
Variables ¶
View Source
var ErrPinLimit = errors.New("you can pin at most 6 micro apps")
Functions ¶
func PreviewURL ¶
Types ¶
type CreateInput ¶
type ReplaceInput ¶
type Result ¶
type Result struct {
OK bool `json:"ok"`
ID string `json:"id"`
Result string `json:"result"`
PreviewURL string `json:"previewUrl"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
AppStatus string `json:"appStatus,omitempty"`
HTML string `json:"html,omitempty"`
Matches []SearchMatch `json:"matches,omitempty"`
Items []Summary `json:"items,omitempty"`
Page int `json:"page,omitempty"`
PerPage int `json:"perPage,omitempty"`
HasMore bool `json:"hasMore,omitempty"`
SourceLength int `json:"sourceLength,omitempty"`
Replacements int `json:"replacements,omitempty"`
Error string `json:"error"`
}
func WriteChunk ¶
type SearchInput ¶
type SearchMatch ¶
type UpdateInput ¶
type WriteChunkInput ¶
Click to show internal directories.
Click to hide internal directories.