Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfoSchema ¶
type InfoSchema struct { AllowToken int `json:"allowToken"` Description string `json:"description"` Method string `json:"method"` Name string `json:"name"` Parameters *JSONSchema `json:"parameters"` Returns *JSONSchema `json:"returns"` Permissions map[string]interface{} `json:"permissions"` Protected int `json:"protected"` }
type JSONSchema ¶
type JSONSchema struct { AdditionalProperties *SchemaOrBool `json:"additionalProperties"` Description string `json:"description"` Properties map[string]*JSONSchema `json:"properties"` Default interface{} `json:"default"` Type *SchemaOrString `json:"type"` Items *JSONSchema `json:"items"` Links []*Link `json:"links"` Optional SpecialBool `json:"optional"` TypeText string `json:"typeText"` Format *StringOrMap `json:"format"` }
type SchemaOrBool ¶
type SchemaOrBool struct { Schema *JSONSchema Bool SpecialBool }
func (*SchemaOrBool) UnmarshalJSON ¶
func (s *SchemaOrBool) UnmarshalJSON(data []byte) error
type SchemaOrString ¶
type SchemaOrString struct { Schema *JSONSchema String string }
func (*SchemaOrString) UnmarshalJSON ¶
func (s *SchemaOrString) UnmarshalJSON(data []byte) error
type SpecialBool ¶
type SpecialBool bool
func (*SpecialBool) UnmarshalJSON ¶
func (s *SpecialBool) UnmarshalJSON(data []byte) error
type StringOrMap ¶ added in v0.0.10
type StringOrMap struct { Map map[string]*JSONSchema String string }
func (*StringOrMap) UnmarshalJSON ¶ added in v0.0.10
func (s *StringOrMap) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.