application

package
v0.0.0-...-fdfa60e Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name     = "Sshwifty"
	FullName = "Sshwifty Web SSH Client"
	Author   = "Ni Rui <ranqus@gmail.com>"
	URL      = "https://github.com/nirui/sshwifty"
)

Plate information

Variables

This section is empty.

Functions

func DefaultProccessSignallerBuilder

func DefaultProccessSignallerBuilder() chan os.Signal

DefaultProccessSignallerBuilder the default ProccessSignallerBuilder

Types

type Application

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

Application contains data required for the application, and yes I don't like to write comments

func New

func New(screen io.Writer, logger log.Logger) Application

New creates a new Application

func (Application) Run

func (a Application) Run(
	cLoader configuration.Loader,
	closeSigBuilder ProccessSignallerBuilder,
	commands command.Commands,
	handlerBuilder server.HandlerBuilderBuilder,
) error

Run execute the application. It will return when the application is finished running

type ProccessSignaller

type ProccessSignaller chan os.Signal

ProccessSignaller send signal to the running application

type ProccessSignallerBuilder

type ProccessSignallerBuilder func() chan os.Signal

ProccessSignallerBuilder builds a ProccessSignaler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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