package
0.0.0-20200610072636-3c57ce01c3a2
Repository: https://github.com/xiorcale/rubus-api.git
Documentation: pkg.go.dev
# Functions
ExtractIDFromToken extracts the `User` ID included inside the token from the current context.
FilterAdmin checks if the `User` has an administrator `Role`.
FilterIDOrAdmin checks if the `User` is the same as the given `uid` or and admin.
# Structs
AdminController -.
AuthenticationController -.
DeviceController -.
ProvisionerController -.
UserController -.