gpmodel

package
v0.0.0-...-5341101 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Key, Value string
}

type RequestGroup

type RequestGroup struct {
	Name           string
	Parent         *RequestGroup
	Children       []*RequestGroup
	Requests       []*RequestSpec
	SourceFilename string
}

RequestGroup represents a collection of RequestSpec s and child RequestGroup s

func NewGroup

func NewGroup(name string) *RequestGroup

func (*RequestGroup) AddChild

func (g *RequestGroup) AddChild(child *RequestGroup)

used by tests

func (*RequestGroup) LinkParent

func (g *RequestGroup) LinkParent(p *RequestGroup)

func (*RequestGroup) NextSibling

func (g *RequestGroup) NextSibling() *RequestGroup

func (*RequestGroup) PreviousSibling

func (g *RequestGroup) PreviousSibling() *RequestGroup

type RequestSpec

type RequestSpec struct {
	Name       string
	Method     string
	UrlPattern string
	Headers    []Header
	Body       string
	PostScript Script
}

type Script

type Script struct {
	Type string
	Text string
}

type VarGroup

type VarGroup struct {
	Name           string
	Variables      map[string]string
	SourceFilename string
}

VarGroup represents a collection of key value pairs under a name, generally from a single source

Jump to

Keyboard shortcuts

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