dequoter/models.go

28 lines
530 B
Go
Raw Normal View History

2025-09-06 01:26:54 +00:00
package main
type TextSpan struct {
Text string `json:"text"`
Pos int `json:"pos"`
Len int `json:"len"`
Append bool `json:"append"`
2025-09-06 01:26:54 +00:00
}
type ProcessTextRequest struct {
Action string `json:"action"`
Input []TextSpan `json:"input"`
}
type ListProcessorsResponse struct {
Name string `json:"name"`
Label string `json:"label"`
}
type SetStatusbarMessage struct {
Message string `json:"message"`
Error bool `json:"error"`
}
2025-09-06 01:26:54 +00:00
type ProcessTextResponse struct {
Output []TextSpan `json:"output"`
}