{"modulePath":"github.com/Stackdome/stackdome","version":"v0.0.7-alpha","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\n## Constants\n\n```go\nconst ErrorType = \"Error\"\n```\nErrorType is the name of the type used to report errors.\n\n## Functions\n\n```go\nfunc SendNotFound(w http.ResponseWriter, r *http.Request)\n```\nSendNotFound sends a 404 response with some details about the non existing resource.\n\n```go\nfunc SendPanic(w http.ResponseWriter, r *http.Request)\n```\nSendPanic sends a panic error response to the client, but it doesn't end the process.\n\n```go\nfunc SendUnauthorized(w http.ResponseWriter, r *http.Request, message string)\n```\n\n## Types\n\n```go\ntype Error struct {\n\tType   string `json:\"type,omitempty\"`\n\tID     string `json:\"id,omitempty\"`\n\tReason string `json:\"reason,omitempty\"`\n}\n```\nError represents an error reported by the API.\n\n","path":"github.com/Stackdome/stackdome/pkg/api","name":"api","synopsis":"","isRedistributable":true}
