server

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 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 *configv2.Config
	// contains filtered or unexported fields
}

func NewHostMultiplexer

func NewHostMultiplexer(conf *configv2.Config, authProxy, utilities http.Handler) *HostMultiplexer

func (*HostMultiplexer) ServeHTTP

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

type Internal

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

func NewInternal

func NewInternal(conf *configv2.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 *configv2.Config
	// contains filtered or unexported fields
}

func New

func New(conf *configv2.Config, cluster database.ClusterDatabase, authProxy *authproxy.AuthProxy, 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