common

package
v0.0.0-...-b988991 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 InitMysql

func InitMysql(mysqlAttr *sysconf.MysqlAttr) error

func RegisterToConsul

func RegisterToConsul(listenIP string, listenPort int, consulServerIP string, healthCheckPort int) error

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 *ConfigMgr) GetSysConfPath() string

func (*ConfigMgr) Init

func (configMgr *ConfigMgr) Init(configFile string) error

func (*ConfigMgr) ParseConfig

func (configMgr *ConfigMgr) ParseConfig() error

func (*ConfigMgr) ReloadConfig

func (configMgr *ConfigMgr) ReloadConfig() string

type ConfigS

type ConfigS struct {
	SysConfPath string `json:"SysConfPath"`
}

Jump to

Keyboard shortcuts

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