Documentation ¶
Index ¶
- Variables
- func BlockExit(callback BlockExitEndCallback)
- func InitService(appName string, settingsInst interface{}, initFunction InitFunction, ...)
- func ServiceSettings(creator settings.WatcherSettingsCreator, service ConsulService) (result *settings.Configuration, err error)
- type BlockExitEndCallback
- type ConsulService
- type Env
- type InitFunction
- type ServiceHealthCheck
- type ServiceInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ConsulClient *api.Client
ConsulClient - client for consul (if it is using)
Functions ¶
func BlockExit ¶ added in v1.0.2
func BlockExit(callback BlockExitEndCallback)
BlockExit - block exit (daemon mode)
func InitService ¶ added in v1.0.14
func InitService(appName string, settingsInst interface{}, initFunction InitFunction, service ConsulService, version string)
func ServiceSettings ¶
func ServiceSettings(creator settings.WatcherSettingsCreator, service ConsulService) (result *settings.Configuration, err error)
ServiceSettings - setup micro-service configuration
Types ¶
type BlockExitEndCallback ¶ added in v1.0.2
type BlockExitEndCallback func()
BlockExitEndCallback - callback function
type ConsulService ¶ added in v1.0.4
type ConsulService interface { Init(config settings.Configuration) GetServiceInfo() ServiceInfo GetServiceHealthCheck() []ServiceHealthCheck }
ConsulService - consul service
type InitFunction ¶ added in v1.0.14
type InitFunction func(config *appSettings.Configuration) error
type ServiceHealthCheck ¶ added in v1.0.4
ServiceHealthCheck - service health checker
type ServiceInfo ¶ added in v1.0.4
type ServiceInfo struct {
Ports *[]int
}
ServiceInfo - service information
Click to show internal directories.
Click to hide internal directories.