index

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// UnimplementedHandler 默认未实现处理
	UnimplementedHandler = func(c echo.Context) error {
		return c.String(`Unimplemented`)
	}
	// DefaultIndexHandler 默认首页处理
	DefaultIndexHandler = article.List
	// DefaultSearchHandler 默认搜索处理
	DefaultSearchHandler = UnimplementedHandler
)
View Source
var CookieMaxAge = 86400 * 365

CookieMaxAge 允许设置的Cookie最大有效时长(单位:秒)

Functions

func Advert(ctx echo.Context) error

func AdvertsHTML

func AdvertsHTML(data echo.Data)

func Custom

func Custom(c echo.Context) error

func ErrorCode

func ErrorCode(c echo.Context) error

func Forgot

func Forgot(c echo.Context) error

Forgot 忘记密码

func Index

func Index(c echo.Context) error
func Search(c echo.Context) error

func SecureKey

func SecureKey(c echo.Context) error

func SetJWTData

func SetJWTData(c echo.Context, m *modelCustomer.Customer) error

func SignIn

func SignIn(c echo.Context) error

SignIn 登录

func SignOut

func SignOut(c echo.Context) error

SignOut 退出登录

func SignUp

func SignUp(c echo.Context) error

SignUp 注册

func Verification

func Verification(c echo.Context) error

Verification /verification/callback/:provider/:recid/:timestamp/:token

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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