Versions in this module Expand all Collapse all v0 v0.1.0 Dec 21, 2024 Changes in this version + func Authorize(authz *policy.Client, getEnv interfaces.Env) func(next http.Handler) http.Handler + func Logging(next http.Handler) http.Handler + type HTTPAuthzInput struct + Body string + Env types.EnvVars + Header map[string][]string + Method string + Path string + Query url.Values + Remote string + type HTTPAuthzOutput struct + Deny bool + type Option func(cfg *Server) + func WithAuthzPolicy(authz *policy.Client) Option + func WithEnableGraphiQL() Option + func WithEnv(env interfaces.Env) Option + func WithResolver(resolver *graphql.Resolver) Option + type Server struct + func New(hdlr interfaces.AlertHandler, options ...Option) *Server + func (x *Server) Run(addr string) error + func (x *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + type StatusCodeWriter struct + func (x *StatusCodeWriter) WriteHeader(code int)