parser

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterParser

func RegisterParser(name string, p Parser)

Types

type AhrefsParser added in v1.0.6

type AhrefsParser struct{}

func (*AhrefsParser) Name added in v1.0.6

func (p *AhrefsParser) Name() string

func (*AhrefsParser) Parse added in v1.0.6

func (p *AhrefsParser) Parse(r io.Reader) ([]netip.Prefix, error)

type AmazonParser added in v1.0.6

type AmazonParser struct{}

func (*AmazonParser) Name added in v1.0.6

func (p *AmazonParser) Name() string

func (*AmazonParser) Parse added in v1.0.6

func (p *AmazonParser) Parse(r io.Reader) ([]netip.Prefix, error)

type GitHubParser

type GitHubParser struct{}

func (*GitHubParser) Name

func (p *GitHubParser) Name() string

func (*GitHubParser) Parse

func (p *GitHubParser) Parse(r io.Reader) ([]netip.Prefix, error)

type GoogleParser

type GoogleParser struct{}

func (*GoogleParser) Name

func (p *GoogleParser) Name() string

func (*GoogleParser) Parse

func (p *GoogleParser) Parse(r io.Reader) ([]netip.Prefix, error)

type OpenAIParser added in v1.0.4

type OpenAIParser struct{}

func (*OpenAIParser) Name added in v1.0.4

func (p *OpenAIParser) Name() string

func (*OpenAIParser) Parse added in v1.0.4

func (p *OpenAIParser) Parse(r io.Reader) ([]netip.Prefix, error)

type Parser

type Parser interface {
	Parse(r io.Reader) ([]netip.Prefix, error)
	Name() string
}

func Get

func Get(name string) Parser

type StripeParser

type StripeParser struct{}

func (*StripeParser) Name

func (p *StripeParser) Name() string

func (*StripeParser) Parse

func (p *StripeParser) Parse(r io.Reader) ([]netip.Prefix, error)

type TxtParser

type TxtParser struct{}

func (*TxtParser) Name

func (p *TxtParser) Name() string

func (*TxtParser) Parse

func (p *TxtParser) Parse(r io.Reader) ([]netip.Prefix, error)

Jump to

Keyboard shortcuts

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