services

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 9 Imported by: 3

README

为了防止循环依赖, 这个目录不允许使用@Bean注解

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Init bool

Init 单元测试辅助 如果一个单元测试连配置都都不使用, 想来也无需初始化了

Functions

func GetAllProvider

func GetAllProvider() []interface{}

Types

type Config

type Config struct {
	M map[interface{}]interface{}
}

func NewConfig

func NewConfig(m map[interface{}]interface{}) *Config

func (*Config) Get

func (c *Config) Get() map[interface{}]interface{}

func (*Config) GetBool

func (c *Config) GetBool(key string, def ...bool) bool

func (*Config) GetConfig

func (c *Config) GetConfig(key string) *Config

func (*Config) GetInt

func (c *Config) GetInt(key string, def ...int) int

func (*Config) GetKey

func (c *Config) GetKey(key string) map[interface{}]interface{}

func (*Config) GetString

func (c *Config) GetString(key string, def ...string) string

type Container

type Container struct{}

func NewContainer

func NewContainer() *Container

func (*Container) Run

func (a *Container) Run(servers []constraint.KernelServer)

Run 统一启动服务

type HttpServer

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

HttpServer 封装一些被(工具生成的)代码调用的函数

func NewHttpServer

func NewHttpServer() *HttpServer

func (*HttpServer) GetEngine

func (receiver *HttpServer) GetEngine() *gin.Engine

func (*HttpServer) Init

func (receiver *HttpServer) Init()

func (*HttpServer) RunListener

func (receiver *HttpServer) RunListener()

func (*HttpServer) SetDebug

func (receiver *HttpServer) SetDebug(isDebug bool)

func (*HttpServer) SetEngine

func (receiver *HttpServer) SetEngine(engine *gin.Engine)

func (*HttpServer) SetPort

func (receiver *HttpServer) SetPort(port int)

type Redis

type Redis struct {
	*redis.Client
}

Directories

Path Synopsis
gen for home toolset
gen for home toolset

Jump to

Keyboard shortcuts

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