Documentation ¶
Index ¶
- func HttpDownload(url string) (data []byte, code int, err error)
- func NewRedis(conf RedisConfig) *redis.ClusterClient
- func RabFini()
- func RabInit(host string, usr string, pass string, name string, logger *utils.Logger) (err error)
- func RabPublish(body []byte, retry int) (err error)
- type RedisConfig
- type S3Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpDownload ¶
封装http协议,用于与外部业务数据交互的上传下载;
func NewRedis ¶
func NewRedis(conf RedisConfig) *redis.ClusterClient
func RabPublish ¶
Types ¶
type RedisConfig ¶
type RedisConfig struct { Addrs []string Password string ReadTimeout time.Duration WriteTimeout time.Duration IdleTimeout time.Duration DialTimeout time.Duration PoolSize int }
redis
type S3Wrapper ¶
type S3Wrapper struct {
// contains filtered or unexported fields
}
func NewS3Wrapper ¶
func (*S3Wrapper) S3Download ¶
Click to show internal directories.
Click to hide internal directories.