web

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: BSD-3-Clause Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorMiddleware

func ErrorMiddleware(next echo.HandlerFunc) echo.HandlerFunc

func HTTPErrorHandler

func HTTPErrorHandler(err error, c echo.Context)

Types

type APIServerStartOptions added in v0.27.7

type APIServerStartOptions struct {
	DiscardLogging          bool
	ConfigEnableCertManager bool
}

type Api added in v0.27.8

type Api struct {
	sync.Mutex

	// Address is the network address where the web server will listen on.
	// Defaults to `:9999`.
	Address    string
	TLSAddress string

	// ShutdownTimeout defines the max duration used to wait the web server
	// gracefully shutting down. Defaults to `30 * time.Second`.
	ShutdownTimeout time.Duration
	// contains filtered or unexported fields
}

func NewWithManager added in v0.27.7

func NewWithManager(manager rpaas.RpaasManager) (*Api, error)

New creates an api instance.

func NewWithTargetFactory added in v0.27.7

func NewWithTargetFactory(targetFactory target.Factory, address, addressTLS string, shutdownTimeout time.Duration, shutdownChan chan struct{}) (*Api, error)

func NewWithTargetFactoryWithDefaults added in v0.27.7

func NewWithTargetFactoryWithDefaults(targetFactory target.Factory) (*Api, error)

func (*Api) Start added in v0.27.8

func (a *Api) Start() error

Start runs the web server.

func (*Api) StartWithOptions added in v0.27.8

func (a *Api) StartWithOptions(options APIServerStartOptions) error

func (*Api) Stop added in v0.27.8

func (a *Api) Stop() error

Stop shut down the web server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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