web

package
v0.0.0-...-ca24b28 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(config Config) http.Handler

Types

type Config

type Config struct {
	DBLoggingEnabled     bool
	SkipVerifySSL        bool
	Port                 int
	CORSOrigin           string
	QueueWaitMaxDuration int
	MaxQueueLength       int
	SQLDB                *sql.DB
	Queue                gobble.QueueInterface
	Logger               lager.Logger

	UAATokenValidator *uaa.TokenValidator
	UAAHost           string
	UAAClientID       string
	UAAClientSecret   string
	DefaultUAAScopes  []string
	CCHost            string
}

type Muxer

type Muxer struct {
	*mux.Router
}

func NewMuxer

func NewMuxer() Muxer

func (Muxer) GetRouter

func (m Muxer) GetRouter() *mux.Router

func (Muxer) Handle

func (m Muxer) Handle(method, path string, handler stack.Handler, middleware ...stack.Middleware)

func (Muxer) Match

func (m Muxer) Match(request *http.Request) http.Handler

type Server

type Server struct{}

func NewServer

func NewServer() Server

func (Server) Run

func (s Server) Run(config Config)

type VersionRouter

type VersionRouter map[int]http.Handler

func (VersionRouter) ServeHTTP

func (vr VersionRouter) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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