api

package
v1.0.1-0...-55f3d51 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BenchmarkHandler

type BenchmarkHandler struct {
	// contains filtered or unexported fields
}

BenchmarkHandler type

func NewBenchmarkHandler

func NewBenchmarkHandler() *BenchmarkHandler

NewBenchmarkHandler type

func (*BenchmarkHandler) BenchmarkLargeMap

func (h *BenchmarkHandler) BenchmarkLargeMap(c echo.Context) error

BenchmarkLargeMap large query with map

func (*BenchmarkHandler) BenchmarkUser

func (h *BenchmarkHandler) BenchmarkUser(c echo.Context) error

BenchmarkUser large query without map or slice

type JwtClaims

type JwtClaims struct {
	ID        uint64 `json:"id"`
	Username  string `json:"username"`
	Lastname  string `json:"lastname"`
	Firstname string `json:"firstname"`
	jwt.StandardClaims
}

JwtClaims are custom claims extending default ones.

type UserHandler

type UserHandler struct {
	// contains filtered or unexported fields
}

UserHandler type

func NewUserHandler

func NewUserHandler() *UserHandler

NewUserHandler type

func (*UserHandler) ChangePassword

func (h *UserHandler) ChangePassword(c echo.Context) error

ChangePassword changes user password

func (*UserHandler) GetUserDetailsHandler

func (h *UserHandler) GetUserDetailsHandler(c echo.Context) error

GetUserDetailsHandler displays authenticated user information

func (*UserHandler) LoginHandler

func (h *UserHandler) LoginHandler(c echo.Context) error

LoginHandler make authentication

Jump to

Keyboard shortcuts

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