Files
spellbook/internal/models/models.go
T
abelith 3673d318a1 feat
- sqlite adapter
2026-08-03 22:15:26 +05:00

37 lines
481 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 {
Cursor int
Limit int
Tags []string
}