Documentation ¶
Index ¶
- Constants
- Variables
- func InitMysql(mysqlAttr *sysconf.MysqlAttr) error
- func RegisterToConsul(listenIP string, listenPort int, consulServerIP string, healthCheckPort int) error
- func SendReqToFinanceSvr(interfaceName string, realReq interface{}) (*base.ProtoResponseS, error)
- type ConfigMgr
- type ConfigS
Constants ¶
View Source
const ( ConsulServName string = "SailCraft-OMSvr" ConsulHealthCheckUrlFmt string = "http://%s:%d/OMSvr/healthCheck" )
Variables ¶
View Source
var ( ConsulServInstanceID string ConsulClient *api.Client )
View Source
var (
GDBEngine *mysql.DBEngineInfoS = nil
)
Functions ¶
func RegisterToConsul ¶
func SendReqToFinanceSvr ¶
func SendReqToFinanceSvr(interfaceName string, realReq interface{}) (*base.ProtoResponseS, error)
Types ¶
type ConfigMgr ¶
type ConfigMgr struct {
// contains filtered or unexported fields
}
var (
GConfig *ConfigMgr
)
func (*ConfigMgr) GetSysConfPath ¶
func (*ConfigMgr) ParseConfig ¶
func (*ConfigMgr) ReloadConfig ¶
Click to show internal directories.
Click to hide internal directories.