app

package
v0.1.1-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveReconnectableSSH added in v0.1.0

func ResolveReconnectableSSH(ctx context.Context, profile config.Profile, allowPlaintext, skipHostKeyCheck bool, onStatus func(ssh.StatusEvent)) (*ssh.ReconnectDialer, *errors.XError)

ResolveReconnectableSSH creates an SSH ReconnectDialer for long-lived connections (e.g. the proxy command). It wraps the SSH connection with automatic keepalive monitoring and reconnection on failure.

func ResolveSSH added in v0.0.9

func ResolveSSH(ctx context.Context, profile config.Profile, allowPlaintext, skipHostKeyCheck bool) (*ssh.Client, *errors.XError)

Types

type App

type App struct {
	Version string
	Commit  string
	Date    string
}

func New

func New(version, commit, date string) App

func (App) BuildSpec

func (a App) BuildSpec() spec.Spec

func (App) VersionInfo

func (a App) VersionInfo() VersionInfo

type Connection added in v0.0.9

type Connection struct {
	DB        *sql.DB
	SSHClient *ssh.Client
	Profile   config.Profile
	// contains filtered or unexported fields
}

func ResolveConnection added in v0.0.9

func ResolveConnection(ctx context.Context, opts ConnectionOptions) (*Connection, *errors.XError)

func (*Connection) Close added in v0.0.9

func (c *Connection) Close() error

type ConnectionOptions added in v0.0.9

type ConnectionOptions struct {
	Profile          config.Profile
	AllowPlaintext   bool
	SkipHostKeyCheck bool
}

type VersionInfo

type VersionInfo struct {
	Version string `json:"version" yaml:"version"`
	Commit  string `json:"commit,omitempty" yaml:"commit,omitempty"`
	Date    string `json:"date,omitempty" yaml:"date,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL