Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseJson ¶
func ParseJson(input io.ReadCloser, result interface{}) error
func WriteJson ¶
func WriteJson(w http.ResponseWriter, object interface{}) error
Types ¶
type ErrorPayload ¶
type ErrorPayload struct {
Message string `json:"message"`
}
type Handler ¶
type Handler struct { Logger *zap.Logger Handler HandlerFunc }
type HandlerFunc ¶
type HandlerFunc func(http.ResponseWriter, *http.Request) *Error
Click to show internal directories.
Click to hide internal directories.