Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerFactory ¶
func HandlerFactory(d Dumper) func(http.ResponseWriter, *http.Request)
HandlerFactory returns a (you guessed it) handler function suitable for passing to http.HandleFunc, which stores incoming request data using the provided Dumper.
Types ¶
type Batcher ¶
type Batcher interface { MarkBatch() (batchID int64, err error) ReadRequests(batchID int64) (reqs []Request, err error) BatchDone(batchID int64) error }
Batcher reads stored HTTP requests in a batch, marking them as processed when done.
type DumpBatcher ¶
type Dumper ¶
Dumper allows an incoming HTTP request to be stored locally, for more processing later on.
Click to show internal directories.
Click to hide internal directories.