Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrorInternal = "internal"
)
Variables ¶
This section is empty.
Functions ¶
func Respond ¶ added in v0.3.2
func Respond(w http.ResponseWriter, data interface{}, warnings []error)
func RespondError ¶ added in v0.3.2
func RespondError(w http.ResponseWriter, apiErr *ApiError, data interface{})
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API can register a set of endpoints in a router and handle them using the provided storage and query engine.
Click to show internal directories.
Click to hide internal directories.