Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ServiceConfig ¶
type ServiceConfig struct {
ServiceCustomConfig ServiceCustomConfig
}
func (*ServiceConfig) UpdateFromRaw ¶
func (sw *ServiceConfig) UpdateFromRaw(rawConfig interface{}) bool
UpdateFromRaw updates the service's full configuration from raw data received from the Service Provider.
type ServiceCustomConfig ¶
type ServiceCustomConfig struct { MyserviceInfo ClientInfo CommandClientInfo ClientInfo NotificationClientInfo ClientInfo SchedulerClientInfo ClientInfo RuleEngineClientInfo ClientInfo }
func (*ServiceCustomConfig) Validate ¶
func (scc *ServiceCustomConfig) Validate() error
Validate ensures your custom configuration has proper values.
Click to show internal directories.
Click to hide internal directories.