consul

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(c *consul.Config) registry.Option

func Connect

func Connect() registry.Option

Connect specifies services should be registered as Consul Connect services

func NewRegistry

func NewRegistry(opts ...registry.Option) registry.Registry

func TCPCheck

func TCPCheck(t time.Duration) registry.Option

TCPCheck will tell the service provider to check the service address and port every `t` interval. It will enabled only if `t` is greater than 0. See `TCP + Interval` for more information [1].

[1] https://www.consul.io/docs/agent/checks.html

Types

This section is empty.

Jump to

Keyboard shortcuts

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