auth_operations

package
v0.0.0-...-e56e09a Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateToken

func ValidateToken(tokenHeader string) bool

middleware to protect private pages

Types

type Claims

type Claims struct {
	Username string `json:"username"`
	jwt.StandardClaims
}

func (*Claims) SetToken

func (c *Claims) SetToken(username string) string

func (*Claims) ValidateLogin

func (c *Claims) ValidateLogin(username string, password string) (bool, error)

Jump to

Keyboard shortcuts

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