28 lines
530 B
Go
28 lines
530 B
Go
package main
|
|
|
|
type TextSpan struct {
|
|
Text string `json:"text"`
|
|
Pos int `json:"pos"`
|
|
Len int `json:"len"`
|
|
Append bool `json:"append"`
|
|
}
|
|
|
|
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"`
|
|
}
|
|
|
|
type ProcessTextResponse struct {
|
|
Output []TextSpan `json:"output"`
|
|
}
|