app

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package app - application entry points

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	/*
		Start the server and its components

			@param ctx context.Context - execution context
			@param serverErrors chan error - channel used to broadcast a fatal runtime
				failure (e.g. one of the HTTP servers failing on ListenAndServe) back to
				the caller so it can trigger shutdown
	*/
	Start(ctx context.Context, serverErrors chan error) error

	/*
		Stop shutdown the server and its components

			@param ctx context.Context - execution context
	*/
	Stop(ctx context.Context) error
}

Server REST PTY server

func BuildNewServer

func BuildNewServer(
	parentCtx context.Context, configs models.ApplicationConfig,
) (Server, error)

BuildNewServer build new REST PTY server

@param parentCtx context.Context - parent execution context for all running tasks
@param configs models.ApplicationConfig - server config
@returns new server

Jump to

Keyboard shortcuts

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