Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExamplePairing ¶
type ExternalDocumentation ¶
type Info ¶
type Info struct { Title string `json:"title"` Description string `json:"description"` Version string `json:"version"` Contact Contact `json:"contact,omitempty"` Socials []*SocialInfo `json:"x-social,omitempty"` }
type Method ¶
type Method struct { Name string `json:"name"` Tags []Tag `json:"tags,omitempty"` Summary string `json:"summary"` Params []Param `json:"params"` Result Result `json:"result"` Examples []ExamplePairing `json:"examples,omitempty"` }
func (*Method) MethodName ¶
type OpenRPC ¶
type OpenRPC struct { Package string `json:"-"` Version string `json:"openrpc"` Info Info `json:"info"` Methods []Method `json:"methods"` Servers []Server `json:"servers"` Components struct { Schemas map[string]Schema `json:"schemas"` } `json:"components"` }
func NewOpenRPCSpec1 ¶
func NewOpenRPCSpec1() *OpenRPC
func (*OpenRPC) AddMethods ¶
func (*OpenRPC) AddSchemas ¶
type Schema ¶
type Schema struct { Ref string `json:"$ref,omitempty"` Description string `json:"description,omitempty"` Type string `json:"type,omitempty"` Title string `json:"title,omitempty"` Required []string `json:"required,omitempty"` Items Items `json:"items,omitempty"` Properties map[string]Schema `json:"properties,omitempty"` OneOf []Schema `json:"oneOf,omitempty"` AnyOf []Schema `json:"anyOf,omitempty"` AllOf []Schema `json:"allOf,omitempty"` Enum []string `json:"enum,omitempty"` Pattern string `json:"pattern,omitempty"` }
type ServerVariable ¶
type SocialInfo ¶
Click to show internal directories.
Click to hide internal directories.