models

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkChecker

type LinkChecker interface {
	CheckLink(ctx context.Context, link SourcedLink) bool
}

LinkChecker ...

type LinkExtractor

type LinkExtractor interface {
	ExtractLinks(ctx context.Context, threadID int, link string) ([]string, error)
}

LinkExtractor ...

type LinkHandler

type LinkHandler interface {
	HandleLink(ctx context.Context, link SourcedLink)
}

LinkHandler ...

type LinkTransformer added in v1.11.1

type LinkTransformer interface {
	TransformLinks(
		links []string,
		response *http.Response,
		responseContent []byte,
	) ([]string, error)
}

LinkTransformer ...

type SourcedLink struct {
	SourceLink string
	Link       string
}

SourcedLink ...

Jump to

Keyboard shortcuts

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