webrest

package
v0.0.0-...-1e118f8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthAPIRouterInit

func AuthAPIRouterInit(container inversify.Container, router *gin.RouterGroup) error

AuthAPIRouterInit .

func RegisterJwtControllerRoutes

func RegisterJwtControllerRoutes(container inversify.Container, router *gin.RouterGroup)

RegisterJwtControllerRoutes .

func RegisterRoutes

func RegisterRoutes(container inversify.Container, router *gin.RouterGroup)

RegisterRoutes .

func RegisterUserControllerRoutes

func RegisterUserControllerRoutes(container inversify.Container, router *gin.RouterGroup)

RegisterUserControllerRoutes .

Types

type AuthModuleDependencyType

type AuthModuleDependencyType int

AuthModuleDependencyType .

const (
	// JwtControllerSymbol .
	JwtControllerSymbol AuthModuleDependencyType = iota

	// UserControllerSymbol .
	UserControllerSymbol
)

type HTTPServer

type HTTPServer interface {
	// Serve .
	Serve(rootContext context.Context)
}

HTTPServer .

func NewHTTPServerImpl

func NewHTTPServerImpl(container inversify.Container) HTTPServer

NewHTTPServerImpl .

type JwtController

type JwtController interface {
	GetIndex(c *gin.Context)
	Create(c *gin.Context)

	ActionValidate(c *gin.Context)
	ActionInvalidate(c *gin.Context)
}

JwtController .

type UserController

type UserController interface {
	Create(c *gin.Context)

	ActionChangePassword(c *gin.Context)
	ActionResetPassword(c *gin.Context)
	ActionInvalidateTokens(c *gin.Context)
}

UserController .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳