adapters

package
v0.4.24 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMongoClient

func CreateMongoClient(ctx context.Context, cfg *config.Config) *mongo.Client

func CreatePostgresClient

func CreatePostgresClient(ctx context.Context, cfg *config.Config) *gorm.DB

func CreateRedisClient added in v0.3.10

func CreateRedisClient(ctx context.Context, cfg *config.Config) *redis.Client

func CreateSentry added in v0.3.0

func CreateSentry(cfg *config.Config) error

func NewKafkaConn added in v0.3.2

func NewKafkaConn(cfg *config.Config) (*kafka.Conn, error)

Types

type Adapter

type Adapter interface {
	CreateClient(ctx context.Context, options *models.DBOptions) interface{}
}

Jump to

Keyboard shortcuts

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