api

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type API

type API struct {
	Values   *common.Values
	Db       *mongo.Database
	Redis    *redis.Client
	Transfer *transfer.Transfer
	Hertz    *server.Hertz

	IndexController   *index.Controller
	IndexService      *index.Service
	ValuesController  *values.Controller
	ValuesService     *values.Service
	SessionController *sessions.Controller
	SessionService    *sessions.Service
	DslController     *dsl.Controller
	DslService        *dsl.Service
	UsersController   *users.Controller
	UsersService      *users.Service
}

func (*API) AccessLog

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

AccessLog 日志

func (*API) Auth

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

Auth 认证

func (*API) ErrHandler

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

ErrHandler 错误处理

func (*API) Initialize

func (x *API) Initialize(ctx context.Context) (err error)

Initialize 初始化

func (*API) Routes

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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