conf

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ACCESS_TOKEN_KEY string = "I87$lkM0" //分站间access token加密用key
View Source
const CONFIG_FILE = "/etc/ttl/site%s.conf"

配置文件路径

View Source
const TABLE_PRE = "ttl_"

数据表前缀

View Source
const T_balance_type = TABLE_PRE + "balance_type"
View Source
const T_balance_type_limit = TABLE_PRE + "balance_type_limit"
View Source
const T_business = TABLE_PRE + "business"
View Source
const T_business_access_token = TABLE_PRE + "business_access_token"
View Source
const T_business_bill_log = TABLE_PRE + "business_bill_log"
View Source
const T_business_credit_log = TABLE_PRE + "business_credit_log"
View Source
const T_business_log = TABLE_PRE + "business_log"
View Source
const T_business_money = TABLE_PRE + "business_money"
View Source
const T_business_money_log = TABLE_PRE + "business_money_log"
View Source
const T_category = TABLE_PRE + "category"
View Source
const T_config = TABLE_PRE + "config"
View Source
const T_coupon = TABLE_PRE + "coupon"
View Source
const T_coupon_product = TABLE_PRE + "coupon_product"
View Source
const T_distribution = TABLE_PRE + "distribution" //配送地址表
View Source
const T_marking = TABLE_PRE + "marketing"
View Source
const T_nav = TABLE_PRE + "xshop_nav"
View Source
const T_order = TABLE_PRE + "xshop_order"
View Source
const T_order_log = TABLE_PRE + "order_log"
View Source
const T_order_product = TABLE_PRE + "xshop_order_product"
View Source
const T_order_product_tourist = TABLE_PRE + "xshop_order_product_tourist"
View Source
const T_payment = TABLE_PRE + "payment"
View Source
const T_product = TABLE_PRE + "xshop_product"
View Source
const T_product_scenic_spot = TABLE_PRE + "xshop_product_scenic_spot"
View Source
const T_product_sku = TABLE_PRE + "xshop_product_sku"
View Source
const T_product_special_price = TABLE_PRE + "xshop_product_special_price"
View Source
const T_product_special_sales = TABLE_PRE + "xshop_product_special_sales"
View Source
const T_product_subsite = TABLE_PRE + "xshop_product_subsite"
View Source
const T_product_tag = TABLE_PRE + "xshop_product_tag"
View Source
const T_recharge_log = TABLE_PRE + "recharge_log"
View Source
const T_scenic_spot = TABLE_PRE + "scenic_spot"
View Source
const T_send_msg = TABLE_PRE + "send_msg"
View Source
const T_service_tag = TABLE_PRE + "xshop_service_tag"
View Source
const T_sms_log = TABLE_PRE + "sms_log"
View Source
const T_subsite = TABLE_PRE + "subsite"
View Source
const T_user = TABLE_PRE + "user"
View Source
const T_user_address = TABLE_PRE + "xshop_address"
View Source
const T_user_balance_limit = TABLE_PRE + "user_balance_limit"
View Source
const T_user_coupon = TABLE_PRE + "user_coupon"
View Source
const T_user_favorite = TABLE_PRE + "xshop_favorite"
View Source
const T_user_group = TABLE_PRE + "user_group"
View Source
const T_user_group_balance_limit = TABLE_PRE + "user_group_balance_limit"
View Source
const T_user_log = TABLE_PRE + "user_log"
View Source
const T_user_money = TABLE_PRE + "user_money"
View Source
const T_user_money_log = TABLE_PRE + "user_money_log"
View Source
const T_user_token = TABLE_PRE + "user_token"
View Source
const T_verify_code = TABLE_PRE + "verify_code"

码库

View Source
const T_verify_code_batch = TABLE_PRE + "verify_code_batch"
View Source
const T_verify_code_batch_list = TABLE_PRE + "verify_code_batch_list"

Variables

View Source
var ACCESS_TOKEN_DURATION int64 = 7200 //分站间access token过期时长
View Source
var CHANNEL_API_PORT = "7985" //串货服务api端口
View Source
var COUPON_API_PORT = "7977" //优惠券api端口
View Source
var COUPON_RPC_PORT = "7972" //优惠券rpc 端口
View Source
var COUPON_RPC_URL string = "" //coupon rpc url
View Source
var DBHOST string = "localhost"

数据库连接配置

View Source
var DBNAME string = "dev_tetele_net"
View Source
var DBPORT string = "3306"
View Source
var DBPWD string = "fly123456"
View Source
var DBUSER string = "tetele"
View Source
var MARKETING_API_PORT = "7981" //营销服务api端口
View Source
var MASTER_URL = "https://master.tetele.net"

总站地址

View Source
var MQHOST string = "127.0.0.1"

消息队列连接配置

View Source
var MQPORT string = "5672"
View Source
var MQPWD string = "fly1234567@"
View Source
var MQUSER string = "tetele"
View Source
var MQVHOST string = "ttl"
View Source
var NEWS_API_PORT = "7978" //公告服务api端口
View Source
var ORDER_API_PORT = "7984" //订单服务api端口
View Source
var ORDER_RPC_PORT string = "7973" //order rpc端口
View Source
var ORDER_RPC_URL string = "" //order rpc url
View Source
var PRODUCT_API_PORT = "7982" //商品服务端口
View Source
var SCAN_PAY_API_PORT = "7961" //扫码支付服务api端口
View Source
var SHOP_API_PORT = "7989" //商家/店铺服务端口
View Source
var SITE_API_PORT = "7975" //站点基础配置端口
View Source
var SITE_RPC_PORT = "7971" //站点基础配置RPC端口
View Source
var SITE_RPC_URL string = "" //site rpc url
View Source
var USER_API_PORT = "7987" //用户服务api端口
View Source
var USER_RPC_PORT = "7976" //用户RPC服务端口
View Source
var USER_RPC_URL string = "" //user rpc url
View Source
var USER_TOKEN_DURATION int64 = 0 //用户token过期时长
View Source
var USER_TOKEN_KEY = "i3d6o32wo8fvs1fvdpwens" //用户TOKEN加密转换key
View Source
var VERIFY_API_PORT = "7988" //核销服务api端口

Functions

func GetConfig

func GetConfig(Type ...string)

*

  • 取配置

func GetPort

func GetPort(t string) string

*

  • 获取端口
  • 2020/05/29
  • gz

Types

This section is empty.

Jump to

Keyboard shortcuts

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