Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHALLinkList ¶
Types ¶
type EndpointLinker ¶
EndpointLinker adds links and curies to an endpoint.
If an entity implements this, HAL data will be added to the response with the HALJSON Render type.
type HALCurie ¶
type HALCurie struct { Name string `json:"name"` Href string `json:"href"` Templated bool `json:"templated"` }
HALCurie contains documentation information for the endpoint.
type HalWrapper ¶
type HalWrapper struct { Item interface{} `json:"item"` Links map[string]interface{} `json:"_links"` }
func NewHalWrapper ¶
func NewHalWrapper(el EndpointLinker) HalWrapper
func (HalWrapper) MarshalJSON ¶
func (w HalWrapper) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.