schema_v1p2

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoopSpec

type LoopSpec struct {
	Collection string
	Map        string
	Variable   string
	Key        string
	Value      string
	Body       []ResponseConfig
}

type RequestConfig

type RequestConfig struct {
	Field          string
	Comment        string
	Value          string
	ValueIsFile    bool   `yaml:"value_is_file"`
	InputParameter string `yaml:"input_parameter"`
}

type ResponseConfig

type ResponseConfig struct {
	Comment   []string
	Define    string
	Print     []string
	Loop      *LoopSpec
	WriteFile *WriteFileSpec
}

type Sample

type Sample struct {
	ID              string `yaml:"id"`
	Title           string
	RegionTag       string `yaml:"region_tag"`
	Description     string
	Service         string
	Rpc             string
	CallingPatterns []string `yaml:"calling_patterns"`
	Request         []RequestConfig
	Response        []ResponseConfig
	SampleType      []string `yaml:"sample_type"`
}

func (*Sample) IsDocSample added in v0.9.8

func (s *Sample) IsDocSample() bool

IsDocSample returns true iff s.SampleType specifies s should generate in-code (language doc) samples.

func (*Sample) IsStandaloneSample added in v0.9.8

func (s *Sample) IsStandaloneSample() bool

IsStandaloneSample returns true iff s.SampleType specifies s should generate standalone samples.

type SampleConfig

type SampleConfig struct {
	Type    string
	Version string `yaml:"schema_version"`
	Samples []*Sample
}

type WriteFileSpec

type WriteFileSpec struct {
	Contents string
	FileName []string `yaml: file_name`
}

Jump to

Keyboard shortcuts

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