setup

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewG2Cache added in v1.1.0

func NewG2Cache(g2cacheSetting *setting.G2CacheSettingS, out g2cache.OutCache, local g2cache.LocalCache) (*g2cache.G2Cache, error)

func NewMySQLGORMEngine

func NewMySQLGORMEngine(mysqlSetting *setting.MysqlSettingS) (*gorm.DB, error)

NewMySQL returns *gorm.DB instance.

func NewMySQLXORMEngine

func NewMySQLXORMEngine(mysqlSetting *setting.MysqlSettingS) (*xorm.Engine, error)

NewMySQL returns *xorm.DB instance.

func NewRedis

func NewRedis(redisSetting *setting.RedisSettingS) (*redis.Pool, error)

func NewServerMux

func NewServerMux() *http.ServeMux

NewServerMux ...

func SetUpAMQPQueue

func SetUpAMQPQueue(amqpQueueSetting *setting.QueueAMQPSettingS, namedTaskFuncs map[string]interface{}) *queue.MachineryQueue

SetUpAMQPQueue returns *queue.MachineryQueue instance of AMQP queue.

func SetUpAliAMQPQueue

func SetUpAliAMQPQueue(aliAMQPQueueSetting *setting.QueueAliAMQPSettingS, namedTaskFuncs map[string]interface{}) *queue.MachineryQueue

SetUpAliAMQPQueue returns *queue.MachineryQueue instance of aliyun AMQP queue.

func SetUpRedisQueue

func SetUpRedisQueue(redisQueueSetting *setting.QueueRedisSettingS, namedTaskFuncs map[string]interface{}) *queue.MachineryQueue

SetUpRedisQueue returns *queue.MachineryQueue instance of redis queue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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