Documentation ¶
Index ¶
- type FieldDef
- type FilePart
- type FormData
- type HttpRequestDef
- type HttpRequestDefBuilder
- func (builder *HttpRequestDefBuilder) Build() *HttpRequestDef
- func (builder *HttpRequestDefBuilder) WithContentType(contentType string) *HttpRequestDefBuilder
- func (builder *HttpRequestDefBuilder) WithMethod(method string) *HttpRequestDefBuilder
- func (builder *HttpRequestDefBuilder) WithPath(path string) *HttpRequestDefBuilder
- func (builder *HttpRequestDefBuilder) WithRequestField(field *FieldDef) *HttpRequestDefBuilder
- func (builder *HttpRequestDefBuilder) WithResponse(response interface{}) *HttpRequestDefBuilder
- func (builder *HttpRequestDefBuilder) WithResponseField(field *FieldDef) *HttpRequestDefBuilder
- type LocationType
- type MultiPart
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 JsonTag string KindName string }
func NewFieldDef ¶
func NewFieldDef() *FieldDef
func (*FieldDef) WithJsonTag ¶
func (*FieldDef) WithKindName ¶
func (*FieldDef) WithLocationType ¶
func (field *FieldDef) WithLocationType(locationType LocationType) *FieldDef
type FilePart ¶
type FilePart struct { Headers textproto.MIMEHeader Content *os.File }
func NewFilePart ¶
type HttpRequestDef ¶
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) 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
func (*HttpRequestDefBuilder) WithResponse ¶
func (builder *HttpRequestDefBuilder) WithResponse(response interface{}) *HttpRequestDefBuilder
func (*HttpRequestDefBuilder) WithResponseField ¶
func (builder *HttpRequestDefBuilder) WithResponseField(field *FieldDef) *HttpRequestDefBuilder
type LocationType ¶
type LocationType int32
const ( Header LocationType = 1 << iota Path Query Body Form Cname )
Click to show internal directories.
Click to hide internal directories.