Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Components ¶
type Components struct {
ContentDescriptors map[string]*ContentDescriptor `json:"contentDescriptors"`
Schemas map[string]spec.Schema `json:"schemas"`
Examples map[string]Example `json:"examples"`
Links map[string]Link `json:"links"`
Errors map[string]Error `json:"errors"`
ExamplePairingObjects map[string]ExamplePairing `json:"examplePairingObjects"`
Tags map[string]Tag `json:"tags"`
}
type ContentDescriptor ¶
type ContentDescriptor struct {
Content
}
func (*ContentDescriptor) UnmarshalJSON ¶
func (cd *ContentDescriptor) UnmarshalJSON(data []byte) error
type Error ¶
type ExamplePairing ¶
type ExternalDocs ¶
type FieldMap ¶
type FieldMap struct {
// contains filtered or unexported fields
}
func NewFieldMap ¶
func NewFieldMap() *FieldMap
type Method ¶
type Method struct {
Name string `json:"name"`
Tags []Tag `json:"tags"`
Summary string `json:"summary"`
Description string `json:"description"`
ExternalDocs ExternalDocs `json:"externalDocs"`
Params []*ContentDescriptor `json:"params"`
Result *ContentDescriptor `json:"result"`
Deprecated bool `json:"deprecated"`
Servers []Server `json:"servers"`
Errors []Error `json:"errors"`
Links []Link `json:"links"`
ParamStructure string `json:"paramStructure"`
Examples []ExamplePairing `json:"examples"`
}
type ObjectMap ¶
type ObjectMap struct {
// contains filtered or unexported fields
}
func NewObjectMap ¶
func NewObjectMap() *ObjectMap
type OpenRPCSpec1 ¶
type OpenRPCSpec1 struct {
OpenRPC string `json:"openrpc"`
Info Info `json:"info"`
Servers []Server `json:"servers"`
Methods []Method `json:"methods"`
Components Components `json:"components"`
ExternalDocs ExternalDocs `json:"externalDocs"`
Objects *ObjectMap `json:"-"`
}
func NewOpenRPCSpec1 ¶
func NewOpenRPCSpec1() *OpenRPCSpec1
type ServerVariable ¶
Click to show internal directories.
Click to hide internal directories.