rules

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeaderList

type HeaderList map[string]string

type MethodRule

type MethodRule struct {
	Path            string     `json:"path"`
	Query           string     `json:"query"`
	ResponseCode    int        `json:"response_code"`
	ResponseHeaders HeaderList `json:"response_headers"`
	ResponseBody    string     `json:"response_body"`
}

type MethodRules

type MethodRules []MethodRule

type Ruleset

type Ruleset struct {
	Methods map[string]MethodRules `json:"methods"`
}

func LoadRules

func LoadRules(RuleFile string) (*Ruleset, error)

Jump to

Keyboard shortcuts

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