base

package
v0.0.0-...-84e4fc3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBInstance

func DBInstance() *mongo.Database

DBInstance 数据库实例

func IPInfo

func IPInfo(ip string) (ip2region.IpInfo, error)

IPInfo ip信息

func MinioCli

func MinioCli() (*minio.Client, error)

MinioCli 客户端

func PasswordAlgo

func PasswordAlgo(password string) string

PasswordAlgo 密码加密

func SendActiveEmail

func SendActiveEmail(siteName, siteHost, activeToken, email string) error

SendActiveEmail 发送激活帐号邮件

func SendResetPasswordEmail

func SendResetPasswordEmail(siteName, siteHost, userName, email, activeToken, passwd string) error

SendResetPasswordEmail 发送重置密码邮件

func SimpleRegion

func SimpleRegion(ip string) string

SimpleRegion 简单区域

Types

This section is empty.

Jump to

Keyboard shortcuts

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