Documentation
¶
Index ¶
- Variables
- type Client
- type NewClientOptions
- type Operation
- func (o *Operation) Clone() *Operation
- func (operation *Operation) GetID() string
- func (operation *Operation) GetPath() string
- func (operation *Operation) GetTags() []string
- func (operation *Operation) SetID(id string)
- func (operation *Operation) SetPath(path string)
- func (operation *Operation) SetTags(tags []string)
- func (operation *Operation) WithOpenapiOperation(path string, openapiOperation openapi3.Operation) *Operation
- type Operations
- type Request
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = NewClient(NewClientOptions{})
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.6.1
func NewClient ¶ added in v0.6.1
func NewClient(opts NewClientOptions) *Client
func (*Client) WithCookies ¶ added in v0.6.1
type NewClientOptions ¶ added in v0.6.1
type Operation ¶ added in v0.3.1
type Operation struct {
*Request `json:"-" yaml:"-"`
ID string `json:"id" yaml:"id"`
Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
Method string `json:"method" yaml:"method"`
Path string `json:"path" yaml:"path"`
SecuritySchemes []auth.SecurityScheme `json:"security_schemes" yaml:"security_schemes"`
}
func NewOperation ¶ added in v0.3.1
func NewOperationFromRequest ¶ added in v0.4.0
func NewOperationFromRequest(r *Request, securitySchemes []auth.SecurityScheme) *Operation
type Operations ¶ added in v0.3.1
type Operations []*Operation
func (Operations) Len ¶ added in v0.3.1
func (o Operations) Len() int
func (Operations) Less ¶ added in v0.3.1
func (o Operations) Less(i, j int) bool
func (Operations) Swap ¶ added in v0.3.1
func (o Operations) Swap(i, j int)
type Request ¶ added in v0.3.1
type Request struct {
*Client
*http.Request
Header http.Header
Cookies []*http.Cookie
SecurityScheme *auth.SecurityScheme
}
func NewRequest ¶ added in v0.3.0
func (*Request) WithCookies ¶ added in v0.6.1
func (*Request) WithHTTPHeaders ¶ added in v0.6.1
func (*Request) WithSecurityScheme ¶ added in v0.3.1
func (r *Request) WithSecurityScheme(ss *auth.SecurityScheme) *Request
Click to show internal directories.
Click to hide internal directories.