package
0.6.1
Repository: https://github.com/traggo/server.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CleanUp clean up expired devices.
GetCreateSession gets the create session callback.
GetDestroySession gets the destroy session callback.
GetDevice returns the authenticated device or nil.
GetUser returns the authenticated user or panics.
HasRole checks if the current user has sufficient permissions.
Middleware is the auth middleware which sets user and device context parameters.
WithCreateSession adds the create session method.
WithDestroySession adds the destroy session method.
WithDevice adds the authenticated device to the context.
WithUser adds the authenticated user to the context.