web

package
v0.0.0-...-35e93be Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApp

func GetApp(botSession *discordgo.Session, OAuth2Config *oauth2.Config, ctx *fiber.Ctx) (err error)

GET /app -> handler

func GetCallback

func GetCallback(signingSecret, randomState string, oauth2Config *oauth2.Config, ctx *fiber.Ctx) (err error)

GET /callback -> handler

func GetGuild

func GetGuild(botSession *discordgo.Session, ctx *fiber.Ctx) error

GET /guild -> handler

func GetHome

func GetHome(ctx *fiber.Ctx) error

func GetLogin

func GetLogin(randomState string, OAuth2Config *oauth2.Config, ctx *fiber.Ctx) error

GET /login -> handler

func InitializeWeb

func InitializeWeb(app *fiber.App, cfg *config.Config, botSession *discordgo.Session, oauth2Config *oauth2.Config)

func JWTWareErrorHandler

func JWTWareErrorHandler(ctx *fiber.Ctx, err error) error

func OpenLogFile

func OpenLogFile(logFilePath string) (LogFile *os.File, err error)

func RegisterMiddleware

func RegisterMiddleware(app *fiber.App, LogFile *os.File)

Types

This section is empty.

Jump to

Keyboard shortcuts

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