Documentation ¶
Index ¶
- func DatabaseProvider(db *gorm.DB) gin.HandlerFunc
- func PaginatedDatabaseProvider(db *gorm.DB, config PaginationConfig) gin.HandlerFunc
- func RedisProvider(redis *redis.Client) gin.HandlerFunc
- func RequireAdmin() gin.HandlerFunc
- func RequireAdminOrTGOwner() gin.HandlerFunc
- func RequireLogin() gin.HandlerFunc
- func RequirePeerOwnerOrAdmin() gin.HandlerFunc
- func RequireRepeaterOwnerOrAdmin() gin.HandlerFunc
- func RequireSelfOrAdmin() gin.HandlerFunc
- func RequireSuperAdmin() gin.HandlerFunc
- func RequireTalkgroupOwnerOrAdmin() gin.HandlerFunc
- func SuspendedUserLockout() gin.HandlerFunc
- func TracingProvider() gin.HandlerFunc
- func VersionProvider(version, commit string) gin.HandlerFunc
- type PaginationConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatabaseProvider ¶
func DatabaseProvider(db *gorm.DB) gin.HandlerFunc
func PaginatedDatabaseProvider ¶
func PaginatedDatabaseProvider(db *gorm.DB, config PaginationConfig) gin.HandlerFunc
func RedisProvider ¶
func RedisProvider(redis *redis.Client) gin.HandlerFunc
func RequireAdmin ¶
func RequireAdmin() gin.HandlerFunc
func RequireAdminOrTGOwner ¶
func RequireAdminOrTGOwner() gin.HandlerFunc
func RequireLogin ¶
func RequireLogin() gin.HandlerFunc
func RequirePeerOwnerOrAdmin ¶ added in v1.0.35
func RequirePeerOwnerOrAdmin() gin.HandlerFunc
func RequireRepeaterOwnerOrAdmin ¶
func RequireRepeaterOwnerOrAdmin() gin.HandlerFunc
func RequireSelfOrAdmin ¶
func RequireSelfOrAdmin() gin.HandlerFunc
func RequireSuperAdmin ¶
func RequireSuperAdmin() gin.HandlerFunc
func RequireTalkgroupOwnerOrAdmin ¶
func RequireTalkgroupOwnerOrAdmin() gin.HandlerFunc
func SuspendedUserLockout ¶ added in v1.0.14
func SuspendedUserLockout() gin.HandlerFunc
func TracingProvider ¶
func TracingProvider() gin.HandlerFunc
func VersionProvider ¶ added in v1.0.57
func VersionProvider(version, commit string) gin.HandlerFunc
Types ¶
type PaginationConfig ¶
Click to show internal directories.
Click to hide internal directories.