Documentation
¶
Overview ¶
Package control implements a tiny request/response protocol over a Unix socket so `yomiro gw status/pause/resume/reload` can talk to a running daemon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
Action string `json:"action"` // "status", "pause", "resume", "reload"
Args map[string]any `json:"args,omitempty"`
}
Request is a single command from the CLI.
type Response ¶
type Response struct {
OK bool `json:"ok"`
Detail string `json:"detail,omitempty"`
Data map[string]any `json:"data,omitempty"`
}
Response is the daemon's reply.
Click to show internal directories.
Click to hide internal directories.