common_run

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonGinRun

func CommonGinRun(runArr ...RunLoadFn)

func MicHttp added in v1.0.7

func MicHttp(Method, registerCenter string, data map[string]interface{}) (string, error)

func ServiceRegister

func ServiceRegister()

Types

type RunLoad

type RunLoad struct {
	MysqlLoad        bool
	MysqlOption      []gorm.Option
	RedisLoad        bool
	ConfigLoad       bool
	ConfigOption     []pkg.ConfigFn
	FnRouter         []pkg.RouterFun
	IsRegisterCenter bool
}

type RunLoadFn

type RunLoadFn func(load *RunLoad) *RunLoad

func ConfigLoad

func ConfigLoad(c bool) RunLoadFn

func ConfigOption

func ConfigOption(fn ...pkg.ConfigFn) RunLoadFn

func FnRouter

func FnRouter(fun ...pkg.RouterFun) RunLoadFn

func IsRegisterCenter added in v1.0.4

func IsRegisterCenter(c bool) RunLoadFn

func MysqlLoad

func MysqlLoad(mysql bool) RunLoadFn

func MysqlOption

func MysqlOption(optionArr ...gorm.Option) RunLoadFn

func RedisLoad

func RedisLoad(c bool) RunLoadFn

Jump to

Keyboard shortcuts

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