server

package
v0.0.0-...-9265221 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSessionID = errors.New("no session id presented in the request")

ErrNoSessionID is returned from request

Functions

This section is empty.

Types

type Gateway

type Gateway struct {
	ProtectedSitesConfig map[string]config.ProtectedSiteConfig
	SessionRepository    repo.SessionRepository
}

Gateway main structure, holds protected sites config and session repository

func NewGateway

func NewGateway(protectedSitesConfig []config.ProtectedSiteConfig, sessionRepository repo.SessionRepository) *Gateway

NewGateway constructs new Gateway Instance

func (*Gateway) ServeHTTP

func (g *Gateway) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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