listener

package
v0.0.0-...-834981a Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, context *config.ManagementContext, httpPort, httpsPort int, getter HandlerGetter)

Types

type Controller

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

type HandlerGetter

type HandlerGetter func() http.Handler

type Server

type Server struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, listenConfigs v3.ListenConfigInterface, handler HandlerGetter, httpPort, httpsPort int) *Server

func (*Server) Disable

func (s *Server) Disable(config *v3.ListenConfig)

func (*Server) Enable

func (s *Server) Enable(config *v3.ListenConfig) (bool, error)

func (*Server) Handler

func (s *Server) Handler() http.Handler

func (*Server) Shutdown

func (s *Server) Shutdown() error

Jump to

Keyboard shortcuts

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