Documentation ¶
Index ¶
- Variables
- type Registry
- func (r *Registry) AddHttpMiddleware(name string, m []echo.MiddlewareFunc)
- func (r *Registry) AddHttpServer(name string, s *http.Server)
- func (r *Registry) AddListener(name string, l net.Listener)
- func (r *Registry) AddShutdownFunc(name string, f func())
- func (r *Registry) ClearHttpServer(name string)
- func (r *Registry) ClearListener(name string) error
- func (r *Registry) ClearShutdownFunc(name string)
- func (r *Registry) DeleteHttpServer(name string)
- func (r *Registry) DeleteShutdownFunc(name string)
- func (r *Registry) GetHttpMiddleware(name string) ([]echo.MiddlewareFunc, error)
- func (r *Registry) GetHttpServer(name string) (*http.Server, error)
- func (r *Registry) GetListener(name string) (net.Listener, error)
- func (r *Registry) GetListenerNames() map[string]struct{}
- func (r *Registry) GetListenerNamesList() []string
- func (r *Registry) Shutdown()
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 (*Registry) AddShutdownFunc ¶
func (*Registry) ClearHttpServer ¶
func (*Registry) ClearListener ¶
func (*Registry) ClearShutdownFunc ¶
func (*Registry) DeleteHttpServer ¶
func (*Registry) DeleteShutdownFunc ¶
func (*Registry) GetHttpMiddleware ¶
func (*Registry) GetHttpServer ¶
func (*Registry) GetListenerNames ¶
func (*Registry) GetListenerNamesList ¶ added in v0.3.5
Click to show internal directories.
Click to hide internal directories.