Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotRunning = errors.New("tb daemon is not running")
Functions ¶
func SocketPath ¶
func SocketPath() string
func StopAfterReply ¶ added in v0.5.3
Types ¶
type Request ¶
type Request struct {
Cmd string `json:"cmd"`
Args json.RawMessage `json:"args,omitempty"`
Cwd string `json:"cwd,omitempty"`
}
type Response ¶
type Response struct {
OK bool `json:"ok"`
Exit int `json:"exit"`
Text string `json:"text,omitempty"`
JSON json.RawMessage `json:"json,omitempty"`
Image []byte `json:"image,omitempty"`
More bool `json:"more,omitempty"`
Stderr bool `json:"stderr,omitempty"`
}
func StopDaemon ¶ added in v0.5.3
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) StopOnSignals ¶ added in v0.5.3
Click to show internal directories.
Click to hide internal directories.