candidate

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MaxCount = 32
View Source
const MaxLength = 128

Variables

View Source
var ErrInvalid = errors.New("invalid candidate")

Functions

func ParseLocalAddrs

func ParseLocalAddrs(values []string) []net.Addr

func ParsePeerAddrs

func ParsePeerAddrs(values []string, opts ...Option) []net.Addr

func StringifyLocalAddrs

func StringifyLocalAddrs(addrs []net.Addr) []string

func ValidateClaimStrings

func ValidateClaimStrings(values []string, opts ...Option) error

Types

type Option

type Option func(*policy)

func AllowLoopback

func AllowLoopback() Option

Jump to

Keyboard shortcuts

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