msginengine

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RsaDecrypt

func RsaDecrypt(msg string) ([]byte, error)

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(ginEngine *gin.Engine, opts ...EngineOption) *Engine

func ReleasesEngine

func ReleasesEngine() *Engine

func (*Engine) EasyCombine

func (e *Engine) EasyCombine(group string, grs ...IGRouter) *Engine

如果使用 这个函数的话会自动加载Group,请注意!!!!

func (*Engine) NewAuthRouterGroup

func (e *Engine) NewAuthRouterGroup(group string) *gin.RouterGroup

func (*Engine) NewRouterGroup

func (e *Engine) NewRouterGroup(group string) *gin.RouterGroup

func (*Engine) Start

func (e *Engine) Start(port string)

func (*Engine) WithOptions

func (e *Engine) WithOptions(opts ...EngineOption) *Engine

type EngineOption

type EngineOption interface {
	// contains filtered or unexported methods
}

func EnableJwtAuth

func EnableJwtAuth() EngineOption

开启jwt 验证

func EnablePingCheck

func EnablePingCheck() EngineOption

func EnablePostBodyDecrypt

func EnablePostBodyDecrypt(d reqDecrypt) EngineOption

开启请求body解密

func PrintReq

func PrintReq() EngineOption

打印请求

func PrintResp

func PrintResp() EngineOption

打印响应

type IGRouter

type IGRouter interface {
	SetAuthRg(authRg *gin.RouterGroup)
	SetRg(rg *gin.RouterGroup)
	InitRouter()
}

Jump to

Keyboard shortcuts

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