helpers

package
v0.0.0-...-e996067 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCookie

func CheckCookie(context echo.Context)

func MakeCookie

func MakeCookie(context echo.Context, name string, value string)

Types

type Template

type Template struct {
	Templates *template.Template
}

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

type User

type User struct {
	Email    string
	ClientID string
	Picture  string
	UserID   string
	Nickname string
}

func ValidateJWT

func ValidateJWT(context echo.Context) (User, error)

Jump to

Keyboard shortcuts

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