api

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Routes added in v0.0.28

func Routes(
	api *API,
	index *index.Controller,
	values *values.Controller,
	sessions *sessions.Controller,
	dsl *dsl.Controller,
) (h *server.Hertz, err error)

Types

type API

type API struct {
	Values        *common.Values
	ValuesService *values.Service
	IndexService  *index.Service
	UsersService  *users.Service
}

func (*API) Auth

func (x *API) Auth() (*jwt.HertzJWTMiddleware, error)

Auth 认证守护

func (*API) Engine added in v0.0.28

func (x *API) Engine() (h *server.Hertz, err error)

Engine 创建服务

func (*API) ErrHandler

func (x *API) ErrHandler() app.HandlerFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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