web

package
v0.0.0-...-0a4ec91 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFormValueTrue

func IsFormValueTrue(v string) bool

func NewServer

func NewServer(opts types.WebOptions) *http.Server

Types

type Auth

type Auth struct {
	Token *types.Token
	User  *types.User
}

Auth result

func (Auth) IsBlocked

func (a Auth) IsBlocked() bool

func (Auth) IsLoggedIn

func (a Auth) IsLoggedIn() bool

func (Auth) IsLoggedInAsAdmin

func (a Auth) IsLoggedInAsAdmin() bool

Jump to

Keyboard shortcuts

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