consul

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: LGPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder() resolver.Builder

NewBuilder returns a builder for a consul resolver.

func Register

func Register(ctx context.Context, name string, host string, port int, target string, ttl int, tags ...string) error

Register is the helper function to register service with Consul server context name - service name host - service host port - service port target - consul dial address, for example: "127.0.0.1:8500" ttl - ttl of the register information

Types

This section is empty.

Jump to

Keyboard shortcuts

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