Source File
api.go
Belonging Package
src.elv.sh/pkg/daemon/internal/api
// Package api defines types and constants useful for the API between the daemon// service and client.package apiimport ()// ServiceName is the name of the RPC service exposed by the daemon.const ServiceName = "Daemon"// Basic requests.type VersionRequest struct{}type VersionResponse struct {Version int}type PidRequest struct{}type PidResponse struct {Pid int}// Cmd requests.type NextCmdSeqRequest struct{}type NextCmdSeqResponse struct {Seq int}type AddCmdRequest struct {Text string}type AddCmdResponse struct {Seq int}type DelCmdRequest struct {Seq int}type DelCmdResponse struct {}type CmdRequest struct {Seq int}type CmdResponse struct {Text string}type CmdsRequest struct {From intUpto int}type CmdsResponse struct {Cmds []string}type CmdsWithSeqRequest struct {From intUpto int}type CmdsWithSeqResponse struct {Cmds []store.Cmd}type NextCmdRequest struct {From intPrefix string}type NextCmdResponse struct {Seq intText string}type PrevCmdRequest struct {Upto intPrefix string}type PrevCmdResponse struct {Seq intText string}// Dir requests.type AddDirRequest struct {Dir stringIncFactor float64}type AddDirResponse struct{}type DelDirRequest struct {Dir string}type DelDirResponse struct{}type DirsRequest struct {Blacklist map[string]struct{}}type DirsResponse struct {Dirs []store.Dir}// SharedVar requests.type SharedVarRequest struct {Name string}type SharedVarResponse struct {Value string}type SetSharedVarRequest struct {Name stringValue string}type SetSharedVarResponse struct{}type DelSharedVarRequest struct {Name string}type DelSharedVarResponse struct{}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)