grpcjson

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	File string //`validate:"required"`
	// Limit limits total num of ammo. Unlimited if zero.
	Limit int `validate:"min=0"`
	// Passes limits ammo file passes. Unlimited if zero.
	Passes          int `validate:"min=0"`
	ContinueOnError bool
	//Maximum number of byte in an ammo. Default is bufio.MaxScanTokenSize
	MaxAmmoSize int
	Source      Source `config:"source"`
	ChosenCases []string
}

type Provider

type Provider struct {
	ammo.Provider
	Config
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(fs afero.Fs, conf Config) *Provider

type Source

type Source struct {
	Type string
	Path string
}

Jump to

Keyboard shortcuts

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