connect

package
v0.0.0-...-618bfa9 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMinioClient

func CreateMinioClient(host string, port int, accessKeyId string, accessKeyKey string) *minio.Client

func CreatePostgresConn

func CreatePostgresConn(host string, port int, username string, password string, dbName string) (*gorm.DB, error)

func CreateRedisClient

func CreateRedisClient(host string, port int, password string, pDB int) *redis.Pool

func CreateSQLite3Conn

func CreateSQLite3Conn(dbPath string) (*gorm.DB, error)

dbPath: ./data/test.db

func CreateSmsClient

func CreateSmsClient(secretId, secretKey, region string) (*sms.Client, error)

func CreateSmsRequest

func CreateSmsRequest(appId, sign, templateId, pPhone string, pCode []string) *sms.SendSmsRequest

Types

This section is empty.

Jump to

Keyboard shortcuts

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