route_registrar

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nats

type Nats struct {

	/*User - Descr: User name for NATS authentication Default: <nil>
	 */
	User interface{} `yaml:"user,omitempty"`

	/*Password - Descr: Password for NATS authentication Default: <nil>
	 */
	Password interface{} `yaml:"password,omitempty"`

	/*Machines - Descr: IPs of each NATS cluster member Default: <nil>
	 */
	Machines interface{} `yaml:"machines,omitempty"`

	/*Port - Descr: TCP port of NATS servers Default: <nil>
	 */
	Port interface{} `yaml:"port,omitempty"`
}

* File Generated by enaml generator * !!! Please do not edit this file !!!

type RouteRegistrar

type RouteRegistrar struct {

	/*Routes - Descr: * Array of hashes determining which routes will be registered.
	* Each hash should have 'port', 'uris', 'registration_interval'
	  and 'name' keys.
	* 'registration_interval' is the delay between
	  routing updates. It must be a time duration represented as a string
	  (e.g. "10s").
	  It must parse to a positive time duration i.e. "-5s" is not permitted.
	* Additionally, the 'tags' and 'health_check' keys are optional.
	* 'uris' is an array of URIs to register for the 'port'.
	* 'tags' are included in metrics that gorouter emits to support filtering.
	* 'health_check' is a hash which should have 'name' and 'script_path'.
	* 'health_check.timeout' is optional.
	  If the health_check timeout is not provided, it defaults to half of the
	  value of `registration_interval`.
	  If it is provided it must be a time duration represented as a string (e.g. "10s"),
	  and less than the value of `registration_interval`.
	  It must parse to a positive time duration i.e. "-5s" is not permitted.
	* if the healthcheck is not configured, the route is continually registered.
	* if the healthcheck script exits with success, the route is registered.
	* if the healthcheck script exits with error, the route is unregistered.
	* if a timeout is configured, the healthcheck script must exit within the timeout,
	  otherwise it is terminated (with `SIGKILL`) and the route is unregistered.
	 Default: <nil>
	*/
	Routes interface{} `yaml:"routes,omitempty"`
}

* File Generated by enaml generator * !!! Please do not edit this file !!!

type RouteRegistrarJob added in v0.0.4

type RouteRegistrarJob struct {

	/*Nats - Descr: TCP port of NATS servers Default: <nil>
	 */
	Nats *Nats `yaml:"nats,omitempty"`

	/*RouteRegistrar - Descr: * Array of hashes determining which routes will be registered.
	* Each hash should have 'port', 'uris', 'registration_interval'
	  and 'name' keys.
	* 'registration_interval' is the delay between
	  routing updates. It must be a time duration represented as a string
	  (e.g. "10s").
	  It must parse to a positive time duration i.e. "-5s" is not permitted.
	* Additionally, the 'tags' and 'health_check' keys are optional.
	* 'uris' is an array of URIs to register for the 'port'.
	* 'tags' are included in metrics that gorouter emits to support filtering.
	* 'health_check' is a hash which should have 'name' and 'script_path'.
	* 'health_check.timeout' is optional.
	  If the health_check timeout is not provided, it defaults to half of the
	  value of `registration_interval`.
	  If it is provided it must be a time duration represented as a string (e.g. "10s"),
	  and less than the value of `registration_interval`.
	  It must parse to a positive time duration i.e. "-5s" is not permitted.
	* if the healthcheck is not configured, the route is continually registered.
	* if the healthcheck script exits with success, the route is registered.
	* if the healthcheck script exits with error, the route is unregistered.
	* if a timeout is configured, the healthcheck script must exit within the timeout,
	  otherwise it is terminated (with `SIGKILL`) and the route is unregistered.
	 Default: <nil>
	*/
	RouteRegistrar *RouteRegistrar `yaml:"route_registrar,omitempty"`
}

* File Generated by enaml generator * !!! Please do not edit this file !!!

Jump to

Keyboard shortcuts

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