uncors

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const DisclaimerMessage = `` /* 155-byte string literal not displayed */
View Source
const NewVersionIsAvailable = `` /* 135-byte string literal not displayed */

Variables

View Source
var (
	ProxyLogger  = log.NewLogger(" PROXY  ", style(pterm.FgBlack, pterm.BgLightBlue))
	MockLogger   = log.NewLogger(" MOCK   ", style(pterm.FgBlack, pterm.BgLightMagenta))
	StaticLogger = log.NewLogger(" STATIC ", style(pterm.FgBlack, pterm.BgLightWhite))
	CacheLogger  = log.NewLogger(" CACHE  ", style(pterm.FgBlack, pterm.BgLightYellow))
)

Functions

func Logo(version string) string

Types

type App

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

func CreateApp

func CreateApp(fs afero.Fs, version string) *App

func (*App) Close

func (app *App) Close() error

func (*App) HTTPAddr

func (app *App) HTTPAddr() net.Addr

func (*App) HTTPSAddr

func (app *App) HTTPSAddr() net.Addr

func (*App) Restart

func (app *App) Restart(ctx context.Context, uncorsConfig *config.UncorsConfig)

func (*App) Shutdown

func (app *App) Shutdown(ctx context.Context) error

func (*App) Start

func (app *App) Start(ctx context.Context, uncorsConfig *config.UncorsConfig)

func (*App) Wait

func (app *App) Wait()

Jump to

Keyboard shortcuts

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