Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunHTTPServer ¶
func RunHTTPServer(server *Server)
RunHTTPServer starts the HTTP server and listens on the configured port. The port is determined by the SCYLLARIDAE_PORT environment variable, defaulting to 8080. This function blocks and will panic if the server fails to start.
Types ¶
type Server ¶
type Server struct {
Config *scyllaridae.ServerConfig
KeySets *lru.LRU[string, jwk.Set]
}
func (*Server) JWTAuthMiddleware ¶
JWTAuthMiddleware validates a JWT token and adds claims to the context
func (*Server) LoggingMiddleware ¶
func (*Server) MessageHandler ¶
func (s *Server) MessageHandler(w http.ResponseWriter, r *http.Request)
func (*Server) SetupRouter ¶
Click to show internal directories.
Click to hide internal directories.