handler

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTkey []byte

JWTkey is the 256 bit signing key for HMAC-SHA256

View Source
var JWTlife time.Duration

JWTlife is JWT lifetime in hours

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Model modelInterface
}

Handler makes interface functions available to all

func NewHandler

func NewHandler(x modelInterface) *Handler

NewHandler combines all interface functions

func (*Handler) GetCity

func (h *Handler) GetCity(c echo.Context) (err error)

GetCity handler function

func (*Handler) Logon

func (h *Handler) Logon(c echo.Context) (err error)

Logon handler function

Jump to

Keyboard shortcuts

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