Documentation ¶
Index ¶
- Constants
- func EntityUpdateCheck(check func(interface{}, interface{}) interface{}, origin interface{}, ...)
- func GenUUID() string
- func GetConfig() *entities.AppConfig
- func GetGrpcTimeout() int64
- func NewConfig(configPath string) (*entities.AppConfig, error)
- func ParseFlags() (string, error)
- func ReturnResponseMessage(status string, message string, data interface{}) map[string]interface{}
- func UpdateChecker(src interface{}, upt interface{}) interface{}
- func ValidateConfigPath(path string) error
Constants ¶
View Source
const CODE_FAILED uint16 = 500
View Source
const CODE_NOT_FOUND uint16 = 400
View Source
const CODE_SUCCESS uint16 = 200
View Source
const KEY_PREFIX_COMPUTE string = "compute:"
View Source
const KEY_PREFIX_NETWORK string = "network:"
View Source
const KEY_PREFIX_SCENARIO string = "scenario:"
View Source
const KEY_PREFIX_SERVICE string = "service:"
View Source
const KEY_PREFIX_TEST string = "test:"
View Source
const KEY_PREFIX_TOPOLOGY string = "topology:"
View Source
const MERAK_AGENT string = "AGENT"
View Source
const MERAK_COMPUTE string = "COMPUTE"
View Source
const MERAK_NETWORK string = "NETWORK"
View Source
const MERAK_TOPOLOGY string = "TOPOLOGY"
Variables ¶
This section is empty.
Functions ¶
func EntityUpdateCheck ¶
func EntityUpdateCheck(check func(interface{}, interface{}) interface{}, origin interface{}, update interface{})
func GetGrpcTimeout ¶
func GetGrpcTimeout() int64
func ParseFlags ¶
func ReturnResponseMessage ¶
func UpdateChecker ¶
func UpdateChecker(src interface{}, upt interface{}) interface{}
func ValidateConfigPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.