registration

package
v0.14.41 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	Ticker *memoryless.Ticker // Ticker determines the interval to reload the data.
	// contains filtered or unexported fields
}

Loader is a structure to load registration data from siteinfo.

func NewLoader

func NewLoader(ctx context.Context, url *url.URL, hostname, exp string, svcs map[string][]string, config memoryless.Config) (*Loader, error)

NewLoader returns a new loader for registration data.

func (*Loader) GetRegistration

func (ldr *Loader) GetRegistration(ctx context.Context) (*v2.Registration, error)

GetRegistration downloads the registration data from the registration URL and matches it with the provided hostname.

Jump to

Keyboard shortcuts

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