Versions in this module Expand all Collapse all v0 v0.6.0 Mar 6, 2026 Changes in this version + func ListenAndServe(ctx context.Context, addrPath string, handler Handler, logger *slog.Logger) error + type ConnectParams struct + Host string + IdentityFile string + Passphrase string + Password string + Port int + User string + type CoreAdapter struct + Core *server.Core + func (a *CoreAdapter) Connect(ctx context.Context, params ConnectParams) error + func (a *CoreAdapter) ConnectedHosts() []string + func (a *CoreAdapter) Disconnect(ctx context.Context, params DisconnectParams) error + type DisconnectParams struct + Host string + type Handler interface + Connect func(ctx context.Context, params ConnectParams) error + ConnectedHosts func() []string + Disconnect func(ctx context.Context, params DisconnectParams) error + type Request struct + Command string + Params json.RawMessage + type Response struct + Data json.RawMessage + Error string + OK bool + type Server struct + type StatusData struct + ConnectedHosts []string