Documentation
¶
Index ¶
- func CatchPanic(ctx context.Context)
- func GetLogLevel() wool.Loglevel
- func Init(ctx context.Context) (*wool.Provider, error)
- func LoadNetworkEndpointFromEnvironmentVariables(ctx context.Context) error
- func LoadOverrides(ctx context.Context) error
- func LoadService(ctx context.Context) error
- func Version() string
- func WithRoot(dir string)
- type Configuration
- type EndpointOverride
- type INetworkEndpoint
- type NetworkEndpoint
- type NetworkEndpointNotFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatchPanic ¶ added in v0.0.7
func GetLogLevel ¶ added in v0.0.11
func LoadNetworkEndpointFromEnvironmentVariables ¶ added in v0.0.11
func LoadOverrides ¶ added in v0.0.7
func LoadService ¶ added in v0.0.7
Types ¶
type Configuration ¶ added in v0.0.7
type Configuration struct {
Endpoints []EndpointOverride
}
type EndpointOverride ¶ added in v0.0.7
type INetworkEndpoint ¶ added in v0.0.7
type INetworkEndpoint interface { IsPresent() bool WithDefault(backup string) INetworkEndpoint Host() string PortAddress() string }
type NetworkEndpoint ¶
type NetworkEndpoint struct {
Values []string
}
func GetEndpoint ¶ added in v0.0.12
func GetEndpoint(ctx context.Context, name string) (*NetworkEndpoint, error)
func (*NetworkEndpoint) Host ¶
func (e *NetworkEndpoint) Host() string
func (*NetworkEndpoint) IsPresent ¶ added in v0.0.7
func (e *NetworkEndpoint) IsPresent() bool
func (*NetworkEndpoint) PortAddress ¶
func (e *NetworkEndpoint) PortAddress() string
func (*NetworkEndpoint) WithDefault ¶
func (e *NetworkEndpoint) WithDefault(backup string) INetworkEndpoint
type NetworkEndpointNotFound ¶ added in v0.0.7
type NetworkEndpointNotFound struct {
// contains filtered or unexported fields
}
func (*NetworkEndpointNotFound) Host ¶ added in v0.0.7
func (e *NetworkEndpointNotFound) Host() string
func (*NetworkEndpointNotFound) IsPresent ¶ added in v0.0.7
func (e *NetworkEndpointNotFound) IsPresent() bool
func (*NetworkEndpointNotFound) PortAddress ¶ added in v0.0.7
func (e *NetworkEndpointNotFound) PortAddress() string
func (*NetworkEndpointNotFound) WithDefault ¶ added in v0.0.7
func (e *NetworkEndpointNotFound) WithDefault(backup string) INetworkEndpoint
Click to show internal directories.
Click to hide internal directories.