Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RestrictTo ¶
* RestrictTo returns an http.HandlerFunc middleware that ensures the principal * is of the provided type. In case there is no authenticated principal, * or the principal type doesn't match, an error is rendered.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.