util

package
v0.0.0-...-c111925 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultNav = []NavItem{
	{URL: "/", Label: "Sites"},
}

Functions

func IsProduction

func IsProduction() bool

func WrapHandler

func WrapHandler(f http.Handler) func(ctx *fiber.Ctx) error

Types

type DashboardContext

type DashboardContext struct {
	Me    *auth.UserInfo
	Nav   []navItemInfo
	Error *string
}

func CreateContext

func CreateContext(c *fiber.Ctx) DashboardContext
type NavItem struct {
	URL   string
	Label string
}

Jump to

Keyboard shortcuts

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