handler

package
v0.0.0-...-c9ddd94 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 19 Imported by: 0

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 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, 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