Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasPerm ¶
func HasPerm(ctx context.Context, defaultPerms []Permission, perm Permission) bool
func PermissionedProxy ¶
func PermissionedProxy(validPerms, defaultPerms []Permission, in interface{}, out interface{})
Types ¶
type Handler ¶
type Handler struct { Verify func(ctx context.Context, token string) ([]Permission, error) Next http.HandlerFunc }
type Permission ¶
type Permission string
Click to show internal directories.
Click to hide internal directories.