Files
threshold/internal/libs/endpoint/doc.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
598 B
Go
Raw Normal View History

2021-09-13 20:26:54 -04:00
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
2023-02-02 17:15:17 -08:00
2021-09-13 20:26:54 -04:00
package endpoint
// This package contains enpoint-related libraries.
//
// Currently, this consists only of a preference chooser that, given inputs of
// IP addresses/DNS names and a user-defined preference string, can select the
// most preferred endpoint to use. If no user-defined preference string is
// supplied, an endpoint is selected at random. Creating a preferencer will
// validate input, so calling NewPreferencer and ignoring the returned struct is
// a fine way to validate incoming preference order statements.