json

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SirenAction

type SirenAction struct {
	Name   string              `json:"name"`
	Class  []string            `json:"class"`
	Method string              `json:"method"`
	Href   string              `json:"href"`
	Title  string              `json:"title"`
	Type   string              `json:"type"`
	Fields []map[string]string `json:"fields"`
}

type SirenEntity

type SirenEntity struct {
	Class      []string               `json:"class"`
	Properties map[string]interface{} `json:"properties"`
	Entities   []SirenEntity          `json:"entities"`
	Links      []SirenLink            `json:"links"`
	Actions    []SirenAction          `json:"actions"`
	Title      string                 `json:"title"`
}
type SirenLink struct {
	Rel   []string `json:"rel"`
	Class []string `json:"class"`
	Href  string   `json:"href"`
	Title string   `json:"title"`
	Type  string   `json:"type"`
}

type SirenResponse

type SirenResponse struct {
	Class      []string               `json:"class"`
	Properties map[string]interface{} `json:"properties"`
	Links      []SirenLink            `json:"links"`
	Actions    []SirenAction          `json:"actions"`
	Entities   []SirenEntity          `json:"entities"`
}

func (SirenResponse) Run

func (s SirenResponse) Run(cnt kek.Doc, urlRoute string) views.Runner

Run returns a new view.Runner that can be used to set for specific view displays.

Jump to

Keyboard shortcuts

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