prefixset

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPSetFromText

func IPSetFromText(text string) (*netipx.IPSet, error)

IPSetFromText parses prefixes from the text and builds a prefix set.

func IPSetToText

func IPSetToText(s *netipx.IPSet) []byte

IPSetToText returns the text representation of the prefix set.

Types

type Config

type Config struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

Config is the configuration for a prefix set.

func (Config) IPSet

func (psc Config) IPSet() (*netipx.IPSet, error)

IPSet creates a prefix set from the configuration.

Jump to

Keyboard shortcuts

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