transport

package
v0.0.0-...-833cb33 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	Server *http.Server
	Cfg    *config.Kernel
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(cfg *config.Kernel, logger log.Logger, handlers ...Handler) *HTTPServer

func (HTTPServer) HealthCheck

func (s HTTPServer) HealthCheck(w http.ResponseWriter, r *http.Request)

type Handler

type Handler interface {
	SetRoutes(public, private, admin *mux.Router)
	GetName() string
}

type Proxy

type Proxy struct {
	HTTP *HTTPServer
}

func NewProxy

func NewProxy(server *HTTPServer) *Proxy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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