api

package
v0.0.0-...-faef437 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountHandler

func NewAccountHandler(app *echo.Group, as domain.AccountService, j *JWT)

NewAccountHandler ...

func NewRedirectHandler

func NewRedirectHandler(app *echo.Group, rs domain.RedirectService)

NewRedirectHandler ...

func NewUserURLHandler

func NewUserURLHandler(app *echo.Group, us domain.UserURLService)

NewUserURLHandler ...

Types

type AccountHandler

type AccountHandler struct {
	domain.AccountService
	*JWT
}

AccountHandler ...

type Claims

type Claims struct {
	Account string `json:"account"`
	Role    string `json:"role"`
	jwt.StandardClaims
}

Claims ...

type JWT

type JWT struct {
	JWTSecret []byte
}

JWT ...

func (*JWT) AuthRequired

func (j *JWT) AuthRequired(next echo.HandlerFunc) echo.HandlerFunc

AuthRequired is a middleware for account service

type RedirectHandler

type RedirectHandler struct {
	domain.RedirectService
}

RedirectHandler ...

type Response

type Response map[string]interface{}

Response ...

type UserURLHandler

type UserURLHandler struct {
	domain.UserURLService
}

UserURLHandler ...

Jump to

Keyboard shortcuts

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