server

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: BSD-3-Clause Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port uint, trustProxyCount uint, st *store.Store, oidcConfig auth.OIDCConfig) (*Server, error)

func (*Server) HandleFile

func (s *Server) HandleFile(w http.ResponseWriter, r *http.Request)

func (*Server) HandleHealth

func (s *Server) HandleHealth(w http.ResponseWriter, r *http.Request)

HandleHealth returns the health status of the server

func (*Server) HandleLanding

func (s *Server) HandleLanding(w http.ResponseWriter, r *http.Request)

func (*Server) HandleOIDCConfig

func (s *Server) HandleOIDCConfig(w http.ResponseWriter, r *http.Request)

func (*Server) HandleSPA

func (s *Server) HandleSPA(w http.ResponseWriter, r *http.Request)

HandleSPA serves the embedded SPA directory

func (*Server) RenderTemplate

func (s *Server) RenderTemplate(w http.ResponseWriter, tName string)

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