server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheckHandler

func HealthCheckHandler(w http.ResponseWriter, r *http.Request)

func HealthCheckUpJson

func HealthCheckUpJson() string

func JwksHandler

func JwksHandler(w http.ResponseWriter, r *http.Request, jwksJson string)

Types

type HealthCheck

type HealthCheck struct {
	Status string `json:"status"`
}

type Server

type Server struct {
	*http.Server
	*config.ServerConfig
}

func NewServer

func NewServer(conf *config.ServerConfig, jwksJson string) (*Server, error)

NewServer constructs a new http.Server and registers the handlers

func (*Server) Start

func (serv *Server) Start() error

Jump to

Keyboard shortcuts

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