Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HyperSchema ¶
type HyperSchema struct {
*schema.Schema
PathStart string `json:"pathStart,omitempty"`
Links LinkList `json:"links,omitempty"`
Media Media `json:"media,omitempty"`
}
func New ¶
func New() *HyperSchema
func ReadFile ¶
func ReadFile(f string) (*HyperSchema, error)
func (*HyperSchema) Extract ¶
func (s *HyperSchema) Extract(m map[string]interface{}) (err error)
type Link ¶
type Link struct {
Href string `json:"href"`
Rel string `json:"rel"`
Title string `json:"title,omitempty"`
TargetSchema *schema.Schema `json:"targetSchema,omitempty"`
MediaType string `json:"mediaType,omitempty"`
Method string `json:"method,omitempty"`
EncType string `json:"encType,omitempty"`
Schema *schema.Schema `json:"schema,omitempty"`
Extras map[string]interface{}
// contains filtered or unexported fields
}
func (Link) Parent ¶
func (l Link) Parent() *HyperSchema
func (*Link) SetParent ¶
func (l *Link) SetParent(s *HyperSchema)
Click to show internal directories.
Click to hide internal directories.