Documentation
¶
Index ¶
Constants ¶
View Source
const ( ScopeKeyword = "scope:" TypeResource = "type" ItemResource = "item" LimitDefault = 10 OffsetDefault = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { ID string `json:"_id"` Name string `json:"name"` Description string `json:"description"` TypeID string `json:"type-id"` }
Item - data for the item resource
type Record ¶
type Record struct { ID string `json:"_id"` Type string `json:"_type"` URI string `json:"_uri"` Content interface{} `json:"_content"` }
Record is a DB record
type ResponseMessage ¶
type ResponseMessage struct { Status string `json:"status"` Data interface{} `json:"data,omitempty"` Message string `json:"message,omitempty"` Meta map[string]interface{} `json:"_meta,omitempty"` Links map[string]interface{} `json:"_links,omitempty"` }
ResponseMessage structures output into a standard format.
Click to show internal directories.
Click to hide internal directories.