Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = NewAppError("not found", "NS-000003", "")
)
Functions ¶
func Middleware ¶
func Middleware(h appHandler) http.HandlerFunc
Types ¶
type AppError ¶
type AppError struct { Err error `json:"-"` Message string `json:"message,omitempty"` DeveloperMessage string `json:"developer_message,omitempty"` Code string `json:"code,omitempty"` }
func BadRequestError ¶
func NewAppError ¶
Click to show internal directories.
Click to hide internal directories.