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.
Click to show internal directories.
Click to hide internal directories.