utils

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 GenUUID

func GenUUID() string

func GetConfig

func GetConfig() *entities.AppConfig

func GetGrpcTimeout

func GetGrpcTimeout() int64

func NewConfig

func NewConfig(configPath string) (*entities.AppConfig, error)

func ParseFlags

func ParseFlags() (string, error)

func ReturnResponseMessage

func ReturnResponseMessage(status string, message string, data interface{}) map[string]interface{}

func UpdateChecker

func UpdateChecker(src interface{}, upt interface{}) interface{}

func ValidateConfigPath

func ValidateConfigPath(path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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