Documentation ¶
Index ¶
- type API
- type APIScope
- type Argument
- type ArgumentSet
- type Controller
- type ControllerEndpoint
- type Endpoint
- type Enum
- type EnumValue
- type Error
- type Field
- type FieldSpec
- type Group
- type LookupArgumentSet
- type Object
- type Polymorph
- type PolymorphOption
- type RawObject
- type Route
- type RouteSet
- type Scalar
- type Schema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgumentSet ¶
type Controller ¶
type Controller struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Authenticator string `json:"authenticator,omitempty"` Endpoints []*ControllerEndpoint `json:"endpoints,omitempty"` }
type ControllerEndpoint ¶
type Endpoint ¶
type Endpoint struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` HTTPStatus int `json:"http_status,omitempty"` Authenticator string `json:"authenticator,omitempty"` ArgumentSet *ArgumentSet `json:"argument_set,omitempty"` Fields []*Field `json:"fields,omitempty"` PotentialErrors []string `json:"potential_errors,omitempty"` Scopes []string `json:"scopes,omitempty"` }
type LookupArgumentSet ¶
type Polymorph ¶
type Polymorph struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Options []*PolymorphOption `json:"options,omitempty"` }
type PolymorphOption ¶
type RawObject ¶
type RawObject struct { Type string Value json.RawMessage }
type Schema ¶
type Schema struct { SchemaVersion int `json:"schema_version"` Host string `json:"host,omitempty"` Namespace string `json:"namespace,omitempty"` API string `json:"api,omitempty"` RawObjects []*RawObject `json:"objects,omitempty"` APIs map[string]*API `json:"-"` ArgumentSets map[string]*ArgumentSet `json:"-"` Controllers map[string]*Controller `json:"-"` Endpoints map[string]*Endpoint `json:"-"` Enums map[string]*Enum `json:"-"` Errors map[string]*Error `json:"-"` LookupArgumentSets map[string]*LookupArgumentSet `json:"-"` Objects map[string]*Object `json:"-"` Polymorphs map[string]*Polymorph `json:"-"` Scalars map[string]*Scalar `json:"-"` }
func (*Schema) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.