config

package
v0.0.0-...-ce1d5a6 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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