handler

package
v0.0.0-...-60e4288 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(db *gorm.DB) fiber.Handler

func Config

func Config(conf *model.Config) fiber.Handler

func DefaultError

func DefaultError(c *fiber.Ctx, err error) error

func ListRunner

func ListRunner(conf *model.Config) fiber.Handler

func LoginRequired

func LoginRequired(responseJSON bool) fiber.Handler

func Logout

func Logout(db *gorm.DB) fiber.Handler

func NotFund

func NotFund(c *fiber.Ctx) error

func NotInRoom

func NotInRoom(pubsub *hub.Hub) fiber.Handler

func Oauth2Callback

func Oauth2Callback(config *oauth2.Config, cache *bigcache.BigCache, db *gorm.DB) fiber.Handler

func Oauth2Login

func Oauth2Login(config *oauth2.Config, cache *bigcache.BigCache) fiber.Handler

func RunCode

func RunCode(conf *model.Config, cache *bigcache.BigCache, h *hub.Hub) fiber.Handler

func User

func User(c *fiber.Ctx) error

func WS

func WS(pubsub *hub.Hub) func(c *websocket.Conn)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL