controllers

package
v0.0.0-...-2c85299 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountHandler

func AccountHandler(app *mvc.Application)

AccountHandler func

Types

type AccountController

type AccountController struct {
	Ctx            iris.Context
	AccountService services.AccountService
	Result         MvcResult
}

AccountController type

func (*AccountController) BeforeActivation

func (c *AccountController) BeforeActivation(b mvc.BeforeActivation)

BeforeActivation fuc

func (*AccountController) PostSignin

func (c *AccountController) PostSignin() (results string)

PostSignin func

func (*AccountController) PostSignup

func (c *AccountController) PostSignup() MvcResult

PostSignup method

func (*AccountController) PostTest

func (c *AccountController) PostTest() string

PostTest func

type AuthController

type AuthController struct {
	Ctx         iris.Context
	AuthService services.AuthService
}

AuthController struct

func (*AuthController) BeforeActivation

func (c *AuthController) BeforeActivation(b mvc.BeforeActivation)

BeforeActivation function

func (*AuthController) PostSignin

func (c *AuthController) PostSignin() string

PostSignin func

type MvcResult

type MvcResult interface {
	GenerateResult(int, string, interface{}) (result *mvcResult)
}

func NewMvcResult

func NewMvcResult(result *interface{}) MvcResult

type OtpController

type OtpController struct {
	Ctx        iris.Context
	OtpService services.OtpService
	Result     MvcResult
}

func (*OtpController) BeforeActivation

func (c *OtpController) BeforeActivation(b mvc.BeforeActivation)

BeforeActivation fuc

func (*OtpController) PostSendOTP

func (c *OtpController) PostSendOTP() MvcResult

Jump to

Keyboard shortcuts

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