package
Version:
v0.7.6
Opens a new window with list of versions in this module.
Published: Jul 22, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package proto defines the daemon wire protocol: newline-delimited JSON.
type Request struct {
Op string `json:"op"`
Args map[string]any `json:"args,omitempty"`
}
Request is one operation call. Args are op-specific.
type Response struct {
OK bool `json:"ok"`
Data any `json:"data,omitempty"`
Error string `json:"error,omitempty"`
}
Response is the daemon's reply. Exactly one of Data/Error is meaningful.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.