Versions in this module Expand all Collapse all v0 v0.3.0 Oct 5, 2026 v0.2.0 Oct 3, 2026 Changes in this version + var ErrConfiguration = errors.New("invalid admin configuration") + var ErrUnauthenticated = errors.New("admin authentication required") + func ConfigureServer(server *http.Server) + type Authenticator interface + AuthenticateRequest func(*http.Request, bool) (achrix.Principal, error) + type Authorizer interface + Authorize func(context.Context, achrix.Principal, string, string) error + type Config struct + AuthPath string + Language string + Origin string + type Page struct + Data any + Template *template.Template + Title string + type Request struct + Allowed func(capability, target string) bool + Language string + Principal achrix.Principal + Render func(Page) error + type Shell struct + func New(config Config, auth Authenticator, policy Authorizer, surfaces ...Surface) (*Shell, error) + func (s *Shell) Handler() http.Handler + type Surface struct + Capability string + Handler func(http.ResponseWriter, *http.Request, Request) + ID string + Target string + Title Text + type Text struct + English string + Persian string + func (t Text) In(language string) string