Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidEditionID = &Error{StatusCode: http.StatusBadRequest, Message: "Invalid Edition ID"} ErrInvalidAccountID = &Error{StatusCode: http.StatusBadRequest, Message: "Invalid Account ID"} ErrInvalidSuffix = &Error{StatusCode: http.StatusBadRequest, Message: "Invalid Suffix Name"} ErrInvalidDate = &Error{StatusCode: http.StatusBadRequest, Message: "Invalid Date"} ErrInvalidMD5Hash = &Error{StatusCode: http.StatusBadRequest, Message: "Invalid MD5 Hash"} ErrInvalidLicenseKey = &Error{StatusCode: http.StatusUnauthorized, Message: "Invalid License Key"} ErrMethodNotAllowed = &Error{StatusCode: http.StatusMethodNotAllowed} ErrDatabaseNotFound = &Error{StatusCode: http.StatusNotFound, Message: "Database not found"} ErrDatabaseLatest = &Error{StatusCode: http.StatusNotModified, Message: "Database is latest"} )
Functions ¶
func WriteError ¶
func WriteError(rw http.ResponseWriter, err error)
Types ¶
type DownloadHandler ¶
type DownloadHandler func(rw http.ResponseWriter, r *DownloadRequest) error
func (DownloadHandler) ServeHTTP ¶
func (h DownloadHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DownloadRequest ¶
type MMDBHandler ¶
type MMDBHandlerFunc ¶
type MMDBUpdateHandler ¶
type MMDBUpdateHandler struct { HomePage string MMDBHandler }
func (*MMDBUpdateHandler) ServeHTTP ¶
func (h *MMDBUpdateHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type Request ¶
type Response ¶
func NewResponse ¶
func NewResponse() (response *Response)
Click to show internal directories.
Click to hide internal directories.