consul

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 4 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 NewWithFolderPrefix added in v0.18.0

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

NewWithFolderPrefix 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