Documentation
¶
Index ¶
- func LoadFromFile(profile string, configDir string, configuration interface{}) error
- func VerifyTomlFiles(configuration interface{}, configDir string) error
- type BindingInfo
- type ClientInfo
- type ConfigurationStruct
- type LoggingInfo
- type PipeLineInfo
- type PipelineFunction
- type RegistryInfo
- type ServiceInfo
- type WritableInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromFile ¶
LoadFromFile loads .toml file for configuration
func VerifyTomlFiles ¶
VerifyTomlFiles Verifies toml file exists and loads it
Types ¶
type BindingInfo ¶
BindingInfo contains Metadata associated with each binding
type ClientInfo ¶
type ClientInfo struct {
// Host is the hostname or IP address of a service.
Host string
// Port defines the port on which to access a given service
Port int
// Protocol indicates the protocol to use when accessing a given service
Protocol string
}
ClientInfo provides the host and port of another service in the eco-system.
func (ClientInfo) Url ¶
func (c ClientInfo) Url() string
type ConfigurationStruct ¶
type ConfigurationStruct struct {
Writable WritableInfo
Logging LoggingInfo
Registry RegistryInfo
Service ServiceInfo
MessageBus types.MessageBusConfig
Binding BindingInfo
ApplicationSettings map[string]string
Clients map[string]ClientInfo
}
ConfigurationStruct ...
type PipeLineInfo ¶
type PipeLineInfo struct {
ExecutionOrder string
Functions map[string]PipelineFunction
}
type PipelineFunction ¶ added in v1.0.0
type PipelineFunction struct {
// Name string
Parameters map[string]string
Addressable models.Addressable
}
type ServiceInfo ¶
type ServiceInfo struct {
BootTimeout int
CheckInterval string
ClientMonitor int
Host string
Port int
Protocol string
StartupMsg string
ReadMaxLimit int
Timeout int
}
ServiceInfo ...
type WritableInfo ¶
type WritableInfo struct {
LogLevel string
Pipeline PipeLineInfo
}
WritableInfo ...
Click to show internal directories.
Click to hide internal directories.