internal

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeMarshaler

type AttributeMarshaler struct {
	Name            string                `json:"name"`
	Description     string                `json:"description,omitempty"`
	Type            string                `json:"type"`
	SubAttributes   []*AttributeMarshaler `json:"subAttributes,omitempty"`
	CanonicalValues []string              `json:"canonicalValues,omitempty"`
	MultiValued     bool                  `json:"multiValued"`
	Required        bool                  `json:"required"`
	CaseExact       bool                  `json:"caseExact"`
	Mutability      string                `json:"mutability"`
	Returned        string                `json:"returned"`
	Uniqueness      string                `json:"uniqueness"`
	ReferenceTypes  []string              `json:"referenceTypes,omitempty"`
}

adapter to marshal the attribute

type AttributeUnmarshaler

type AttributeUnmarshaler struct {
	ID              string                            `json:"id"`
	Name            string                            `json:"name"`
	Description     string                            `json:"description"`
	Type            string                            `json:"type"`
	SubAttributes   []*AttributeUnmarshaler           `json:"subAttributes"`
	CanonicalValues []string                          `json:"canonicalValues"`
	MultiValued     bool                              `json:"multiValued"`
	Required        bool                              `json:"required"`
	CaseExact       bool                              `json:"caseExact"`
	Mutability      string                            `json:"mutability"`
	Returned        string                            `json:"returned"`
	Uniqueness      string                            `json:"uniqueness"`
	ReferenceTypes  []string                          `json:"referenceTypes"`
	Index           int                               `json:"_index"`
	Path            string                            `json:"_path"`
	Annotations     map[string]map[string]interface{} `json:"_annotations"`
}

adapter to unmarshal the attribute

type ResourceTypeJsonAdapter

type ResourceTypeJsonAdapter struct {
	ID          string             `json:"id"`
	Name        string             `json:"name"`
	Description string             `json:"description"`
	Endpoint    string             `json:"endpoint"`
	Schema      string             `json:"schema"`
	Extensions  []*SchemaExtension `json:"schemaExtensions,omitempty"`
}

type SchemaExtension

type SchemaExtension struct {
	Schema   string `json:"schema"`
	Required bool   `json:"required"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL