echohandler

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	*securelink.BaseHandler
	Echo *echo.Echo
	// contains filtered or unexported fields
}

Handler provides the interface for securelink.Handler interface with support for Echo http framework

func New

func New(addr net.Addr, name string, tlsConfig *tls.Config) (*Handler, error)

New builds a new Handler with the given addr for the net.Listener interface, name which is used to deregister a service and the TLS configuration for Echo

func (*Handler) Handle

func (h *Handler) Handle(conn net.Conn) error

Handle provides the securelink.Handler interface

func (*Handler) Match

func (h *Handler) Match(serverName string) bool

Match implements the securelink.Handler

func (*Handler) Start

func (h *Handler) Start() error

Start needs to be called after all routes are registered

Jump to

Keyboard shortcuts

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