Back to godoc.org

Package msginengine

v0.0.37
Latest Go to latest

The highest tagged major version is .

Published: Apr 1, 2020 | License: MIT | Module: github.com/dipperin/go-ms-toolkit

Index

func RsaDecrypt

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

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()
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier