consul

package
v0.0.0-...-b6e3791 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package consul contains types and utilities for updating data from Consul.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowlistRefresher

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

AllowlistRefresher is a refresh wrapper that updates the allowlist.

func NewAllowlistRefresher

func NewAllowlistRefresher(
	allowlist *ratelimit.DynamicAllowlist,
	consulURL *url.URL,
) (l *AllowlistRefresher, err error)

NewAllowlistRefresher returns a properly initialized *AllowlistRefresher.

func (*AllowlistRefresher) Refresh

func (l *AllowlistRefresher) Refresh(ctx context.Context) (err error)

Refresh implements the agdservice.Refresher interface for *AllowlistRefresher.

Jump to

Keyboard shortcuts

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