graph

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasLink(
	src, dst string,
	domainMatch DomainMatchFunc,
	graphs ...*Graph,
) (hasLink bool)

Types

type DomainMatchFunc

type DomainMatchFunc func(domain string) bool

type Graph

type Graph struct {
	// contains filtered or unexported fields
}

func New

func New() (g *Graph)

func (*Graph) AddEdge

func (g *Graph) AddEdge(src, dst, domain string)
func (g *Graph) HasLink(
	src []string,
	dst string,
	domainMatch DomainMatchFunc,
) (hasLink bool, reached []string)

Jump to

Keyboard shortcuts

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