hpx

package
v0.0.0-...-dfe096b Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrResp

func ErrResp(err error) error

ErrResp handler中调用的错误翻译方法

Types

type Config

type Config struct {
	// 地址:端口
	LocalAddr string `toml:"local_addr"`
	// 是否启用
	SwaggerEnabled bool `toml:"swagger_enabled"`
}

type IHpx

type IHpx interface {
	Handle(registerRouter RegisterRouter) (*gin.Engine, error)
}

IHpx Hpx标准

func New

func New() IHpx

type RegisterRouter

type RegisterRouter func(engine *gin.Engine, trans ut.Translator) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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