Back to

Package msginengine

Latest Go to latest

The highest tagged major version is .

Published: Apr 1, 2020 | License: MIT | Module:


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


func PrintReq

func PrintReq() EngineOption


func PrintResp

func PrintResp() EngineOption


type IGRouter

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

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