Skip to content

Commit

Permalink
issue #1 and #2: define base types
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsk committed Jan 12, 2021
1 parent 7755373 commit e85c8da
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions middleware.go
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
package propaganda

import "net/http"

// The Input represents a middleware for a http.Handler.
//
// server := http.Server{
// Handler: Input1(Input2(http.DefaultServeMux)),
// }
//
type Input = func(http.Handler) http.Handler
10 changes: 10 additions & 0 deletions tripper.go
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
package propaganda

import "net/http"

// The Output represents a middleware for a http.RoundTripper.
//
// client := http.Client{
// Transport: Output1(Output2(http.DefaultTransport)),
// }
//
type Output = func(http.RoundTripper) http.RoundTripper

0 comments on commit e85c8da

Please sign in to comment.