consul

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package consul handles seeding capabilities with consul.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter struct {
	// contains filtered or unexported fields
}

Getter implementation of the getter interface.

func New

func New(addr, dc, token string, timeout time.Duration) (*Getter, error)

New constructor. Timeout is set to 60s when 0 is provided

func (*Getter) Get

func (g *Getter) Get(key string) (*string, uint64, error)

Get the specific key value from consul.

Jump to

Keyboard shortcuts

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