config

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2017 License: MIT Imports: 4 Imported by: 20

Documentation

Index

Constants

View Source
const (
	RunModeAll = iota
	RunModeGroup
	RunModeNone
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host         string
	Port         int
	Timeout      time.Duration
	MaxHeaderLen int
	JUnitReport  string
	Strict       bool
	DryRun       bool
	TLS          bool
	Insecure     bool
	Verbose      bool
	Sections     []string
	// contains filtered or unexported fields
}

Config represents the configuration of h2spec.

func (*Config) Addr

func (c *Config) Addr() string

Addr returns the string concatinated with hostname and port number.

func (*Config) RunMode

func (c *Config) RunMode(section string) int

RunMode returns a run mode of specified the section number. This is used to decide whether to run test cases.

func (*Config) TLSConfig

func (c *Config) TLSConfig() *tls.Config

TLSConfig returns a tls.Config based on the configuration of h2spec.

Jump to

Keyboard shortcuts

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