Documentation ¶
Index ¶
- func NormalizeRemoteBaseURL(mattermostSiteURL, remoteURL string) (string, error)
- func WriteBadRequestError(w http.ResponseWriter, err error)
- func WriteInternalServerError(w http.ResponseWriter, err error)
- func WriteJSONError(w http.ResponseWriter, statusCode int, summary string, err error)
- func WriteNotFoundError(w http.ResponseWriter, err error)
- func WriteUnauthorizedError(w http.ResponseWriter, err error)
- type Handler
- type LimitReadCloser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeRemoteBaseURL ¶
func WriteBadRequestError ¶
func WriteBadRequestError(w http.ResponseWriter, err error)
func WriteInternalServerError ¶
func WriteInternalServerError(w http.ResponseWriter, err error)
func WriteJSONError ¶
func WriteJSONError(w http.ResponseWriter, statusCode int, summary string, err error)
func WriteNotFoundError ¶
func WriteNotFoundError(w http.ResponseWriter, err error)
func WriteUnauthorizedError ¶
func WriteUnauthorizedError(w http.ResponseWriter, err error)
Types ¶
type LimitReadCloser ¶
type LimitReadCloser struct { ReadCloser io.ReadCloser OnClose func(*LimitReadCloser) error TotalRead utils.ByteSize Limit utils.ByteSize }
func (*LimitReadCloser) Close ¶
func (r *LimitReadCloser) Close() error
Click to show internal directories.
Click to hide internal directories.