check

package
v0.0.0-...-0b37329 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	Check(context.Context, *sample.Set) *Results
}

type IpniNonStreamingChecker

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

func NewIpniNonStreamingChecker

func NewIpniNonStreamingChecker(o ...Option) (*IpniNonStreamingChecker, error)

func (*IpniNonStreamingChecker) Check

type Option

type Option func(*options) error

func WithCascadeLabels

func WithCascadeLabels(l []string) Option

func WithCheckTimeout

func WithCheckTimeout(checkTimeout time.Duration) Option

func WithHttpClient

func WithHttpClient(httpClient *http.Client) Option

func WithIpniEndpoint

func WithIpniEndpoint(endpoint string) Option

func WithName

func WithName(name string) Option

func WithParallelism

func WithParallelism(parallelism int) Option

type Result

type Result struct {
	Multihash  multihash.Multihash
	Err        error
	StatusCode int
	Timeout    time.Duration
	Elapsed    time.Duration
	Streaming  bool
}

type Results

type Results struct {
	Results       []*Result
	SampleSetName string
	CheckerName   string
}

Jump to

Keyboard shortcuts

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