refresher

package
v0.0.0-...-575b356 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefreshFunc

type RefreshFunc func() (*tls.Certificate, time.Time, error)

type Refresher

type Refresher struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(
	ctx context.Context,
	logger *zap.Logger,
	afterFailurePeriod time.Duration,
	refreshFunc RefreshFunc,
) (*Refresher, error)

func (*Refresher) GetCurrent

func (r *Refresher) GetCurrent() *tls.Certificate

Jump to

Keyboard shortcuts

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