watcher

package module
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 5 Imported by: 1

README

Consul watcher for Application settings

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsulWatcher

func NewConsulWatcher[T any](consul *api.Client, key string) settings.Watcher[T]

NewConsulWatcher - create new consul watcher

Types

type ConsulWatcher

type ConsulWatcher[T any] struct {
	// contains filtered or unexported fields
}

ConsulWatcher - watcher setting in consul server

func (*ConsulWatcher[T]) Setup

func (watcher *ConsulWatcher[T]) Setup(cfg *settings.Configuration[T], creator settings.WatcherSettingsCreator[T]) (err error)

Setup - setup settings for watcher

Jump to

Keyboard shortcuts

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