Files
spellbook/internal/models/models.go
T
abelith 80a90b65bb chore: sql builder instead of row sql
feat: extensive search queries
2026-08-15 13:51:15 +05:00

41 lines
576 B
Go

package models
import (
"io"
"time"
)
type Spell struct {
Id int
Name string
Spell string
ShortDesc string
Description string
Tags []string
}
type SpellCast struct {
Spell Spell
Args map[string]string
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
}
type CastResult struct {
ExitCode int
Err error
Duration time.Duration
Meta map[string]any
}
type SearchQuery struct {
Text string
Name string
Description string
Command string
Tags []string
Cursor int
Limit int
}