client

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: AGPL-3.0-or-later Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultServerAddr = "localhost:50051"

DefaultServerAddr is the default address for the client to connect to.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App is the client application.

func New

func New(params NewParams) *App

New creates a new App instance.

func (*App) Run

func (a *App) Run(ctx context.Context) error

Run starts the application, and blocks until it is closed.

It returns nil if the application was closed by the user, or an error if it closed for any other reason.

type NewParams

type NewParams struct {
	ClipboardAvailable bool
	ServerAddr         string
	InsecureSkipVerify bool
	BuildInfo          domain.BuildInfo
	Screen             *terminal.Screen
	Logger             *slog.Logger
}

NewParams contains the parameters for the App.

Jump to

Keyboard shortcuts

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