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 ¶
GetRegistration downloads the registration data from the registration URL and matches it with the provided hostname.
Click to show internal directories.
Click to hide internal directories.