common_run

package
v1.0.29 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 8 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, serverName string, EndPoint string, data map[string]interface{}) (string, error)

MicHttp 服务请求

func ServiceRegister

func ServiceRegister()

ServiceRegister 注册中心服务

Types

type MysqlConnet added in v1.0.11

type MysqlConnet func(db *gorm.DB)

type RunLoad

type RunLoad struct {
	MysqlLoad        bool
	MysqlOption      []gorm.Option
	MysqlCoonn       MysqlConnet
	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 MysqlConn added in v1.0.11

func MysqlConn(conn MysqlConnet) 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