Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Axios = "axios"
View Source
var BrowserFetch = "browser-fetch"
View Source
var Clients = []string{Axios, NodeFetch, BrowserFetch}
View Source
var NodeFetch = "node-fetch"
Functions ¶
Types ¶
type AxiosGenerator ¶ added in v2.2.0
type AxiosGenerator struct { Modules *Modules CommonGenerator // contains filtered or unexported fields }
func (*AxiosGenerator) ApiClient ¶ added in v2.2.0
func (g *AxiosGenerator) ApiClient(api *spec.Api) *generator.CodeFile
func (*AxiosGenerator) ErrorResponses ¶ added in v2.2.0
func (g *AxiosGenerator) ErrorResponses(httpErrors *spec.HttpErrors) *generator.CodeFile
type ClientGenerator ¶
type CommonGenerator ¶ added in v2.2.0
type CommonGenerator struct { Modules *Modules // contains filtered or unexported fields }
func (*CommonGenerator) Errors ¶ added in v2.2.0
func (g *CommonGenerator) Errors(httpErrors *spec.HttpErrors) *generator.CodeFile
func (*CommonGenerator) ParamsBuilder ¶ added in v2.2.0
func (g *CommonGenerator) ParamsBuilder() *generator.CodeFile
type FetchGenerator ¶ added in v2.2.0
type FetchGenerator struct { Modules *Modules CommonGenerator // contains filtered or unexported fields }
func (*FetchGenerator) ApiClient ¶ added in v2.2.0
func (g *FetchGenerator) ApiClient(api *spec.Api) *generator.CodeFile
func (*FetchGenerator) ErrorResponses ¶ added in v2.2.0
func (g *FetchGenerator) ErrorResponses(httpErrors *spec.HttpErrors) *generator.CodeFile
type Generator ¶ added in v2.2.0
type Generator struct { validations.Validation CommonGenerator ClientGenerator Modules *Modules }
func NewClientGenerator ¶
Click to show internal directories.
Click to hide internal directories.