Versions in this module Expand all Collapse all v1 v1.0.0 Aug 30, 2026 v0 v0.11.1 Aug 22, 2026 v0.11.0 Aug 22, 2026 Changes in this version + type Entry struct + Args []string + Builtin bool + Config string + Display string + Executable string + SHA256 string type InspectResult + func InspectEntry(ctx context.Context, configured Entry, configPath string) InspectResult type Status + Args []string + Builtin bool + Display string + Executable string + Source string v0.10.1 Aug 20, 2026 v0.10.0 Aug 19, 2026 Changes in this version + const MaxFrameBytes + const PhaseInitialize + const PhaseOK + const PhaseProtocol + const PhaseRegister + const PhaseResolve + const PhaseShutdown + const ProtocolVersion + const RPCErrorCanceled + func IsTerminal(err error) bool + func ResolveExecutable(entry, configPath string) (string, error) + func SHA256File(path string) (string, error) + type Client struct + func (c *Client) Call(ctx context.Context, method string, params any, result any) error + func (c *Client) Close() error + func (c *Client) SetPlugin(name string) + func (c *Client) Snapshot() Snapshot + type Error struct + Code int + Hint string + Kind Kind + Message string + Method string + Plugin string + SuggestedStatement string + func (e *Error) Error() string + type InspectResult struct + Capabilities *database.Capabilities + Error string + Path string + Phase string + Snapshot *Snapshot + func Inspect(ctx context.Context, entry, configPath string) InspectResult + type Kind string + const KindAuthentication + const KindCancelled + const KindConnection + const KindOperation + const KindPluginCrash + const KindProtocol + const KindUnsupported + const KindValidation + type Loader struct + func Load(ctx context.Context, configPath string, entries []string, ...) (*Loader, []error) + func LoadPinned(ctx context.Context, configPath string, entries []string, ...) (*Loader, []error) + func (l *Loader) Close() error + func (l *Loader) EntryForService(service sharedsql.Service) (string, bool) + func (l *Loader) Restart(ctx context.Context, identifier string) error + func (l *Loader) Snapshots() []Snapshot + func (l *Loader) Statuses() []Status + type Snapshot struct + Error string + ExitStatus int + InFlight int + InitDuration time.Duration + PID int + Path string + Plugin string + ProtocolVersion int + Running bool + Stderr []string + type Status struct + Entry string + Error string + ExitStatus int + Fingerprint string + InFlight int + InitDuration time.Duration + PID int + Path string + Plugin string + ProtocolVersion int + Running bool + Stderr []string + Trusted bool + type TerminalError struct + Err error + func (e *TerminalError) Error() string + func (e *TerminalError) Unwrap() error