src.elv.shsrc.elv.sh/pkg/daemon/internal/api Index | Files

package api

import "src.elv.sh/pkg/daemon/internal/api"

Package api defines types and constants useful for the API between the daemon service and client.

Index

Constants

const ServiceName = "Daemon"

ServiceName is the name of the RPC service exposed by the daemon.

const Version = -93

Version is the API version. It should be bumped any time the API changes.

Types

type AddCmdRequest

type AddCmdRequest struct {
	Text string
}

type AddCmdResponse

type AddCmdResponse struct {
	Seq int
}

type AddDirRequest

type AddDirRequest struct {
	Dir       string
	IncFactor float64
}

type AddDirResponse

type AddDirResponse struct{}

type CmdRequest

type CmdRequest struct {
	Seq int
}

type CmdResponse

type CmdResponse struct {
	Text string
}

type CmdsRequest

type CmdsRequest struct {
	From int
	Upto int
}

type CmdsResponse

type CmdsResponse struct {
	Cmds []string
}

type CmdsWithSeqRequest

type CmdsWithSeqRequest struct {
	From int
	Upto int
}

type CmdsWithSeqResponse

type CmdsWithSeqResponse struct {
	Cmds []storedefs.Cmd
}

type DelCmdRequest

type DelCmdRequest struct {
	Seq int
}

type DelCmdResponse

type DelCmdResponse struct {
}

type DelDirRequest

type DelDirRequest struct {
	Dir string
}

type DelDirResponse

type DelDirResponse struct{}

type DirsRequest

type DirsRequest struct {
	Blacklist map[string]struct{}
}

type DirsResponse

type DirsResponse struct {
	Dirs []storedefs.Dir
}

type NextCmdRequest

type NextCmdRequest struct {
	From   int
	Prefix string
}

type NextCmdResponse

type NextCmdResponse struct {
	Seq  int
	Text string
}

type NextCmdSeqRequest

type NextCmdSeqRequest struct{}

type NextCmdSeqResponse

type NextCmdSeqResponse struct {
	Seq int
}

type PidRequest

type PidRequest struct{}

type PidResponse

type PidResponse struct {
	Pid int
}

type PrevCmdRequest

type PrevCmdRequest struct {
	Upto   int
	Prefix string
}

type PrevCmdResponse

type PrevCmdResponse struct {
	Seq  int
	Text string
}

type VersionRequest

type VersionRequest struct{}

type VersionResponse

type VersionResponse struct {
	Version int
}

Source Files

api.go

Version
v0.21.0 (latest)
Published
Aug 13, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
2 hours ago

Tools for package owners.