registry

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalReg = Registry{
	// contains filtered or unexported fields
}
View Source
var (
	ShutdownTimeout = 5 * time.Second
)

Functions

This section is empty.

Types

type Registry

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

func (*Registry) AddHttpMiddleware

func (r *Registry) AddHttpMiddleware(name string, m []echo.MiddlewareFunc)

func (*Registry) AddHttpServer

func (r *Registry) AddHttpServer(name string, s *http.Server)

func (*Registry) AddListener

func (r *Registry) AddListener(name string, l net.Listener)

func (*Registry) AddShutdownFunc

func (r *Registry) AddShutdownFunc(name string, f func())

func (*Registry) ClearHttpServer

func (r *Registry) ClearHttpServer(name string)

func (*Registry) ClearListener

func (r *Registry) ClearListener(name string) error

func (*Registry) ClearShutdownFunc

func (r *Registry) ClearShutdownFunc(name string)

func (*Registry) DeleteHttpServer

func (r *Registry) DeleteHttpServer(name string)

func (*Registry) DeleteShutdownFunc

func (r *Registry) DeleteShutdownFunc(name string)

func (*Registry) GetHttpMiddleware

func (r *Registry) GetHttpMiddleware(name string) ([]echo.MiddlewareFunc, error)

func (*Registry) GetHttpServer

func (r *Registry) GetHttpServer(name string) (*http.Server, error)

func (*Registry) GetListener

func (r *Registry) GetListener(name string) (net.Listener, error)

func (*Registry) GetListenerNames

func (r *Registry) GetListenerNames() map[string]struct{}

func (*Registry) GetListenerNamesList added in v0.3.5

func (r *Registry) GetListenerNamesList() []string

func (*Registry) Shutdown

func (r *Registry) Shutdown()

Jump to

Keyboard shortcuts

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