database

package
v0.0.0-...-3b2859e Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MysqlInstance *sql.DB
View Source
var RedisInstance []*redis.Client

0 for awaiting email verification (email, verification code) (ttl: 15 minutes) 1 for refresh token customer key: refresh_token value: JSON of user-agent and id (ttl: 14 day??) 2 for refresh token staff key: refresh_token value: JSON of user-agent, id, username, fin_user, inv_user, sys_admin (ttl: 14 day??) 3 for customer_cart counts (ttl: 14 day) key: customer_id value: counts 4 for area suggestion result for global (ttl: 30 day) key: area_id value: JSON of area response 5 for get rates by product result for global (ttl: 10 day): key: product_id_area_id value: JSON of freight response 6 for total sold by product for global (ttl: 10 day): key: product_id value: total sold

Functions

func InitAdminAccount

func InitAdminAccount() error

func NewMysql

func NewMysql() error

func NewRedis

func NewRedis() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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