Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractJson ¶
func HandleError ¶
func StandardResponse ¶
func StandardResponse(w http.ResponseWriter, d interface{}, message string, searchParams *SearchParams) error
Types ¶
type SearchParams ¶
type SearchParams struct { // TODO: do we use scopes? Scopes []string `json:"scopes"` Terms []string `json:"terms"` Sort string `json:"sort"` PageInfo *PageInfo `json:"pageInfo"` }
func (*SearchParams) EnsureSingleScope ¶
func (sp *SearchParams) EnsureSingleScope() terror.Terror
func (*SearchParams) SetTotalPages ¶
func (sp *SearchParams) SetTotalPages(count int64)
Click to show internal directories.
Click to hide internal directories.