Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDBEvent ¶
func BuildDBEvent(ctx context.Context, bld *libhoney.Builder, query string, args ...interface{}) (*libhoney.Event, func(error))
BuildDBEvent tries to bring together most of the things that need to happen for an event to wrap a DB call in bot the sql and sqlx packages. It returns a function which, when called, dispatches the event that it created. This lets it finish a timer around the call automatically.
Types ¶
type ResponseWriter ¶
type ResponseWriter struct { http.ResponseWriter Status int }
func NewResponseWriter ¶
func NewResponseWriter(w http.ResponseWriter) *ResponseWriter
func (*ResponseWriter) WriteHeader ¶
func (h *ResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.