# Functions
Asset loads and returns the asset for the given name.
AssetDir returns the file names below a certain directory embedded in the file by go-bindata.
AssetInfo loads and returns the asset info for the given name.
AssetNames returns the names of the assets.
Bool is used to initialize bool pointers in struct literals.
Create is used to create a new Agent.
DecodeCheckDefinition is used to decode a check definition.
DecodeConfig reads the configuration from the given reader in JSON format and decodes it into a proper Config structure.
DecodeServiceDefinition is used to decode a service definition.
DefaultConfig is used to return a sane default configuration.
DevConfig is used to return a set of configuration to use for dev mode.
ExecScript returns a command to execute a script.
No description provided by the author
FixupLockDelay is used to handle parsing the JSON body to session/create and properly parsing out the lock delay duration value.
LevelFilter returns a LevelFilter that is configured with the log levels that we use.
MergeConfig merges two configurations together to make a single new configuration.
MustAsset is like Asset but panics when Asset would return an error.
NewAgentRPC is used to create a new Agent RPC handler.
NewDNSServer starts a new DNS server to provide an agent interface.
NewHTTPServers starts new HTTP servers to provide an interface to the agent.
NewLogWriter creates a logWriter with the given buffer capacity.
NewProvider creates a new SCADA provider using the given configuration.
NewRPCClient is used to create a new RPC client given the address.
ProviderConfig returns the configuration for the SCADA provider.
ProviderService returns the service information for the provider.
ReadConfigPaths reads the paths in the given order to load configurations.
RestoreAsset restores an asset under the given directory.
RestoreAssets restores an asset under the given directory recursively.
ValidateLevelFilter verifies that the log levels within the filter are valid.
# Constants
4KB.
Use this user agent when doing requests for HTTP health checks.
No description provided by the author
Do not allow for a interval below this value.
No description provided by the author
4KB.
# Structs
AddressConfig is used to provide address overrides for specific services.
No description provided by the author
The agent is the long running process that is run on every machine.
No description provided by the author
No description provided by the author
ChecKDefinition is used to JSON decode the Check definitions.
CheckDocker is used to periodically invoke a script to determine the health of an application running inside a Docker Container.
CheckHTTP is used to periodically make an HTTP request to determine the health of a given check.
CheckMonitor is used to periodically invoke a script to determine the health of a given check.
CheckTCP is used to periodically make an TCP/UDP connection to determine the health of a given check.
CheckTTL is used to apply a TTL to check status, and enables clients to set the status of a check but upon the TTL expiring, the check status is automatically set to critical.
CheckType is used to create either the CheckMonitor or the CheckTTL.
Command is a Command implementation that runs a Consul agent.
Config is the configuration that can be set for an Agent.
DNSConfig is used to fine tune the DNS sub-system.
DNSServer is used to wrap an Agent and expose various service discovery endpoints using a DNS interface.
GatedWriter is an io.Writer implementation that buffers all of its data into an internal buffer until it is told to let data through.
HTTPServer is used to wrap an Agent and expose various API's in a RESTful manner.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Ports is used to simplify the configuration by providing default ports, and allowing the addresses to only be specified once.
RPCClient is the RPC client to make requests to the agent RPC.
ServiceDefinition is used to JSON decode the Service definitions.
ServiceSummary is used to summarize a service.
SyslogWrapper is used to cleanup log messages before writing them to a Syslogger.
UnixSocketConfig stores information about various unix sockets which Consul creates and uses for communication.
UnixSocketPermissions contains information about a unix socket, and implements the FilePermissions interface.
UserEventParam is used to parameterize a user event.
# Interfaces
CheckNotifier interface is used by the CheckMonitor to notify when a check has a status update.
A custom interface since go-dockerclient doesn't have one We will use this interface in our test to inject a fake client.
FilePermissions is an interface which allows a struct to set ownership and permissions easily on a file it describes.
LogHandler interface is used for clients that want to subscribe to logs, for example to stream them over an IPC mechanism.
# Type aliases
AppendSliceValue implements the flag.Value interface and allows multiple calls to the same variable to append a list.
No description provided by the author
StreamHandle is an opaque handle passed to stop to stop streaming.