server

package
v0.0.0-...-20a1e23 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunHTTPServer

func RunHTTPServer(server *Server)

Types

type Server

type Server struct {
	Config  *scyllaridae.ServerConfig
	KeySets *lru.LRU[string, jwk.Set]
}

func (*Server) JWTAuthMiddleware

func (s *Server) JWTAuthMiddleware(next http.Handler) http.Handler

JWTAuthMiddleware validates a JWT token and adds claims to the context

func (*Server) LoggingMiddleware

func (s *Server) LoggingMiddleware(next http.Handler) http.Handler

func (*Server) MessageHandler

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

func (*Server) SetupRouter

func (server *Server) SetupRouter() *mux.Router

Jump to

Keyboard shortcuts

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