Documentation ¶
Index ¶
- Constants
- type Reporter
- func (r *Reporter) Err(msg string, err error)
- func (r *Reporter) Fatal(msg string, err error)
- func (r *Reporter) InternalErr(msg string, err error)
- func (r *Reporter) InternalFatal(msg string, err error)
- func (r *Reporter) Out(msg string)
- func (r *Reporter) Uncatchable(msg string)
- func (r *Reporter) Warn(msg string)
Constants ¶
View Source
const ( PREFIX_ERR = "ERR" PREFIX_OUT = "OUT" PREFIX_WARN = "WARN" PREFIX_UNCATCHABLE_ERR = "UNCATCHABLE ERR" LOGOUT_BASE = "{%s} (%s) %s\n" LOGERR_BASE = "{%s} (%s) %s: %s\n" INTERNAL_SRV_ERR = "Internal server error" BAD_REQUEST = "Bad request" )
TODO: Abandon this file. All functions here are applied within the Helper struct.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter struct { CallerName string RespW http.ResponseWriter }
func MakeReporter ¶
func MakeReporter(callerName string, r http.ResponseWriter) *Reporter
func (*Reporter) InternalErr ¶
func (*Reporter) InternalFatal ¶
func (*Reporter) Uncatchable ¶
Click to show internal directories.
Click to hide internal directories.