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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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