Documentation
¶
Index ¶
- type Array
- type Builtin
- type Call
- func (call *Call) AllFields() []*Field
- func (call *Call) Body() Type
- func (call *Call) Consumes() []string
- func (call *Call) DefaultConsumes() string
- func (call *Call) Header() Type
- func (call *Call) Method() string
- func (call *Call) Name() string
- func (call *Call) Optionals() []*Field
- func (call *Call) Path() Type
- func (call *Call) Query() Type
- func (call *Call) RequestPath() string
- func (call *Call) Requireds() []*Field
- func (call *Call) Responses() []*Response
- func (call *Call) SecuritySettings() []*SecuritySettings
- func (call *Call) Verb() string
- type ClientDefinition
- type Field
- type Hints
- type Incomplete
- type Response
- type SecuritySettings
- type Service
- type Struct
- type Type
- type TypeDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
func (*Array) ResolveIncomplete ¶
type Call ¶
type Call struct {
// contains filtered or unexported fields
}
func (*Call) DefaultConsumes ¶
func (*Call) RequestPath ¶
func (*Call) SecuritySettings ¶
func (call *Call) SecuritySettings() []*SecuritySettings
type ClientDefinition ¶
type ClientDefinition struct {
// contains filtered or unexported fields
}
func Compile ¶
func Compile(spec openapi.OpenAPI, defaultServiceName string) (*ClientDefinition, error)
func (*ClientDefinition) Definitions ¶
func (c *ClientDefinition) Definitions() map[string]TypeDefinition
func (*ClientDefinition) ServiceNames ¶
func (c *ClientDefinition) ServiceNames() []string
func (*ClientDefinition) Services ¶
func (c *ClientDefinition) Services() map[string]*Service
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) ContainerName ¶
type Incomplete ¶
type Incomplete string
func (Incomplete) Name ¶
func (v Incomplete) Name() string
func (Incomplete) ResolveIncomplete ¶
func (v Incomplete) ResolveIncomplete(ctx *compileCtx) (Type, error)
func (Incomplete) SetName ¶
func (v Incomplete) SetName(s string)
type SecuritySettings ¶
type SecuritySettings struct {
// contains filtered or unexported fields
}
func (*SecuritySettings) Definition ¶
func (ss *SecuritySettings) Definition() openapi.SecurityScheme
func (*SecuritySettings) Scopes ¶
func (ss *SecuritySettings) Scopes() []string
type Struct ¶
type Struct struct {
// contains filtered or unexported fields
}
func (*Struct) ResolveIncomplete ¶
type TypeDefinition ¶
TypeDefinition gives you the context where this type was generated
Click to show internal directories.
Click to hide internal directories.