def

package
v0.0.17-beta Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldDef

type FieldDef struct {
	LocationType LocationType
	Name         string
}

func NewFieldDef

func NewFieldDef() *FieldDef

func (*FieldDef) WithLocationType

func (field *FieldDef) WithLocationType(locationType LocationType) *FieldDef

func (*FieldDef) WithName

func (field *FieldDef) WithName(name string) *FieldDef

type HttpRequestDef

type HttpRequestDef struct {
	BodyJson      interface{}
	RequestFields []*FieldDef
	Path          string
	Method        string
	ContentType   string
}

type HttpRequestDefBuilder

type HttpRequestDefBuilder struct {
	// contains filtered or unexported fields
}

func NewHttpRequestDefBuilder

func NewHttpRequestDefBuilder() *HttpRequestDefBuilder

func (*HttpRequestDefBuilder) Build

func (builder *HttpRequestDefBuilder) Build() *HttpRequestDef

func (*HttpRequestDefBuilder) WithBodyJson

func (builder *HttpRequestDefBuilder) WithBodyJson(bodyJson interface{}) *HttpRequestDefBuilder

func (*HttpRequestDefBuilder) WithContentType

func (builder *HttpRequestDefBuilder) WithContentType(contentType string) *HttpRequestDefBuilder

func (*HttpRequestDefBuilder) WithMethod

func (builder *HttpRequestDefBuilder) WithMethod(method string) *HttpRequestDefBuilder

func (*HttpRequestDefBuilder) WithPath

func (builder *HttpRequestDefBuilder) WithPath(path string) *HttpRequestDefBuilder

func (*HttpRequestDefBuilder) WithRequestField

func (builder *HttpRequestDefBuilder) WithRequestField(field *FieldDef) *HttpRequestDefBuilder

type HttpResponseDef

type HttpResponseDef struct {
	BodyJson interface{}
}

type HttpResponseDefBuilder

type HttpResponseDefBuilder struct {
	// contains filtered or unexported fields
}

func NewHttpResponseDefBuilder

func NewHttpResponseDefBuilder() *HttpResponseDefBuilder

func (*HttpResponseDefBuilder) Build

func (builder *HttpResponseDefBuilder) Build() *HttpResponseDef

func (*HttpResponseDefBuilder) WithBodyJson

func (builder *HttpResponseDefBuilder) WithBodyJson(bodyJson interface{}) *HttpResponseDefBuilder

type LocationType

type LocationType int32
const (
	Header LocationType = 1 << iota
	Path
	Query
	Body
)

Jump to

Keyboard shortcuts

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