config

package
v0.0.0-...-95c9f63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HoneycombMiddleware

func HoneycombMiddleware(fn func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)

HoneycombMiddleware will wrap our HTTP handle funcs to automatically generate an event-per-request and set properties on them.

Types

type Config

type Config struct {
	URI       string
	DB        string
	DebugMode bool
}

Config - Object for storing configuration for database

func New

func New() *Config

New returns a new Config struct

type HoneyResponseWriter

type HoneyResponseWriter struct {
	*libhoney.Event
	http.ResponseWriter
	StatusCode int
}

func (*HoneyResponseWriter) WriteHeader

func (hrw *HoneyResponseWriter) WriteHeader(status int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL