options

package
v4.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UseMd5Hash = useMd5Hash{} //nolint:gochecknoglobals

UseMd5Hash sets flag to use md5 hash

View Source
var UseV2HTTPCheck = useV2HTTPCheck{} //nolint:gochecknoglobals

UseV2HTTPCheck sets flag to use deprecated HTTPCheck

Functions

func Path

func Path(path string) filename

Reader takes path where configuration is stored

func Reader

func Reader(ioReader io.Reader) reader

Reader takes io.Reader that will be used to parse data

Types

type Parser

type Parser struct {
	UseV2HTTPCheck bool
	UseMd5Hash     bool
	Path           string
	Reader         io.Reader
}

type ParserOption

type ParserOption interface {
	Set(p *Parser) error
}

Jump to

Keyboard shortcuts

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