server

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChildServer

type ChildServer interface {
	Route(mux *httprouter.Router)
}

type HostMultiplexer

type HostMultiplexer struct {
	Config *config.Config
	// contains filtered or unexported fields
}

func NewHostMultiplexer

func NewHostMultiplexer(conf *config.Config, frontProxy, utilities http.Handler) *HostMultiplexer

func (*HostMultiplexer) ServeHTTP

func (h *HostMultiplexer) ServeHTTP(w http.ResponseWriter, req *http.Request)

type Internal

type Internal struct {
	Config *config.Config
	// contains filtered or unexported fields
}

func NewInternal

func NewInternal(conf *config.Config, child ...ChildServer) *Internal

func (*Internal) Shutdown

func (s *Internal) Shutdown(ctx context.Context) error

func (*Internal) Start

func (s *Internal) Start() error

type Server

type Server struct {
	Config *config.Config
	// contains filtered or unexported fields
}

func New

func New(conf *config.Config, cluster database.ClusterDatabase, frontProxy *frontproxy.FrontendProxy, c *connector.Server, child ...ChildServer) *Server

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Start

func (s *Server) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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