Documentation
¶
Overview ¶
Package errorhandler implements a simple handler for HTTP error messages.
Copyright © 2019 M.Watermann, 10247 Berlin, Germany
All rights reserved
EMail : <support@mwat.de>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
You should have received a copy of the GNU General Public License along with this program. If not, see the [GNU General Public License](http://www.gnu.org/licenses/gpl.html) for details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TErrorPager ¶
type TErrorPager interface {
// GetErrorPage returns a HTML page for `aStatus`.
// The return value is expected to be a valid HTML page.
//
// `aData` is the orignal error text.
//
// `aStatus` is the number of the actual HTTP error status.
GetErrorPage(aData []byte, aStatus int) []byte
}
TErrorPager is an interface requiring a function to return the error text of an HTTP error message page.