Documentation ¶
Index ¶
- Constants
- Variables
- func AddPlugin(serviceName string, pluginName string, config map[string]interface{}) (string, bool)
- func CheckServices(then bool)
- func HealthCheck()
- func LoadServices(jsonData bool)
- func RemovePlugin(serviceName string, pluginName string) (string, bool)
- func SyncPlugins(proxyName string)
- type Server
- type Service
- type URL
Constants ¶
View Source
const ( // WarningColor yellow color WarningColor = "\033[1;33m%s\033[0m" // ErrorColor red color ErrorColor = "\033[1;31m%s\033[0m" )
Variables ¶
View Source
var Services []Service
Services define all services that connect to gateway
Functions ¶
func CheckServices ¶
func CheckServices(then bool)
CheckServices function for check if service is available or not params: then : mean that function call at start or later in health
func HealthCheck ¶
func HealthCheck()
HealthCheck function for check all services per hour in goroutine
func LoadServices ¶
func LoadServices(jsonData bool)
LoadServices function for loading services from json file
func RemovePlugin ¶
RemovePlugin from proxy
func SyncPlugins ¶
func SyncPlugins(proxyName string)
SyncPlugins after load from db, sync functions to struct cause method address after app execution not meaning anything
Types ¶
Click to show internal directories.
Click to hide internal directories.