config

package
v2.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: MIT Imports: 4 Imported by: 19

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
	Path         string
	Timeout      time.Duration
	MaxHeaderLen int
	JUnitReport  string
	Strict       bool
	DryRun       bool
	TLS          bool
	Insecure     bool
	Verbose      bool
	Sections     []string

	CertFile    string
	CertKeyFile string
	Exec        string
	FromPort    int
	// 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) IsBrowserMode

func (c *Config) IsBrowserMode() bool

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) Scheme

func (c *Config) Scheme() string

func (*Config) TLSConfig

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

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