Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
Options *Options
// contains filtered or unexported fields
}
type Operation ¶
type Operation struct {
Path string `json:"path"`
Verb string `json:"verb"`
Tags []string `json:"tags"`
Description string `json:"description"`
Parameters []*Parameter `json:"parameters,omitempty"`
Responses []*Response `json:"responses,omitempty"`
XOperationName string `json:"x-operation-name"`
RawData []byte `json:"-"`
}
type RequestHelper ¶
type RequestHelper struct {
Endpoint string
Uri string
Method string
QueryParam map[string]string
PathParam map[string]string
Headers map[string]string
Body any
Response any
}
func NewRequestHelper ¶
func NewRequestHelper(method, endpoint, uri string) *RequestHelper
func (*RequestHelper) Header ¶
func (u *RequestHelper) Header(name string, value string)
func (*RequestHelper) Param ¶
func (u *RequestHelper) Param(name string, value any)
func (*RequestHelper) Path ¶
func (u *RequestHelper) Path(name string, value string)
Click to show internal directories.
Click to hide internal directories.