setup

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: BSD-3-Clause Imports: 24 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAMQPQueue

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

SetUpAMQPQueue returns *queue.MachineryQueue instance of AMQP queue.

func NewAliAMQPQueue

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

NewAliAMQPQueue returns *kelvinsqueue.MachineryQueue instance of aliyun AMQP queue.

func NewG2Cache added in v1.6.3

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

func NewMongoDBClient

func NewMongoDBClient(mongodbSetting *setting.MongoDBSettingS) (*qmgo.QmgoClient, error)

func NewMySQLWithGORM

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

NewMySQLWithGORM NewMySQL returns *gorm.DB instance.

func NewMySQLWithXORM

func NewMySQLWithXORM(mysqlSetting *setting.MysqlSettingS) (xorm.EngineInterface, error)

NewMySQLWithXORM NewMySQL returns *xorm.DB instance.

func NewRedis

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

NewRedis returns *redis.Pool instance.

func NewRedisQueue

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

NewRedisQueue returns *kelvinsqueue.MachineryQueue instance of redis queue.

func SetGORMCreateCallback

func SetGORMCreateCallback(db *gorm.DB, callback func(scope *gorm.Scope))

SetGORMCreateCallback is set create callback

func SetGORMDeleteCallback

func SetGORMDeleteCallback(db *gorm.DB, callback func(scope *gorm.Scope))

SetGORMDeleteCallback is set delete callback

func SetGORMUpdateCallback

func SetGORMUpdateCallback(db *gorm.DB, callback func(scope *gorm.Scope))

SetGORMUpdateCallback is set update callback

Types

This section is empty.

Jump to

Keyboard shortcuts

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