Documentation ¶
Index ¶
- func CloseDb()
- func Db(name ...string) *gorm.DB
- func GetConfig(name string) any
- func Log() *zap.Logger
- func Mgo(databaseName ...string) error
- func Redis(name ...string) *aredis.ClientRedis
- func Register(ada serve.WebFrameWork)
- type Engine
- func (eng *Engine) AddFunc(f ...func()) *Engine
- func (eng *Engine) AddRemoteProvider(provider, endpoint, path string) *Engine
- func (eng *Engine) Close(f ...func()) *Engine
- func (eng *Engine) Etcd(host []string, path, username, pwd string) *Engine
- func (eng *Engine) Serve(app interface{}) *Engine
- func (eng *Engine) SetConfig(filePath ...string) *Engine
- func (eng *Engine) SetLog(filePath string) *Engine
- func (eng *Engine) SetPort(port string) *Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Redis ¶ added in v1.5.2
func Redis(name ...string) *aredis.ClientRedis
Redis Select a different redis
Types ¶
type Engine ¶
type Engine struct { Adapter serve.WebFrameWork Srv *http.Server Config config.ConfigStr // contains filtered or unexported fields }
Engine is the core component of antgo.
func (*Engine) AddRemoteProvider ¶ added in v1.5.2
AddSecureRemoteProvider.<添加远程连接>
Click to show internal directories.
Click to hide internal directories.