Documentation
¶
Overview ¶
Package staff serves platform-wide information to the configured verified Clerk user.
Index ¶
- type System
- func (s *System) Companies(w http.ResponseWriter, r *http.Request)
- func (s *System) Me(w http.ResponseWriter, r *http.Request)
- func (s *System) Only(next http.HandlerFunc) http.HandlerFunc
- func (s *System) Operations(w http.ResponseWriter, r *http.Request)
- func (s *System) Stats(w http.ResponseWriter, r *http.Request)
- func (s *System) Users(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type System ¶
type System struct {
Config *ConfigBuilder.Config
}
func New ¶
func New(cfg *ConfigBuilder.Config) *System
func (*System) Only ¶
func (s *System) Only(next http.HandlerFunc) http.HandlerFunc
Only must be wrapped in RequireUser: it never accepts a company role or SDK credential as staff access.
func (*System) Operations ¶
func (s *System) Operations(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.