summaryrefslogtreecommitdiff
path: root/service/http/service.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-15 15:54:14 +0300
committerWolfy-J <[email protected]>2018-06-15 15:54:14 +0300
commitdfef39c64132192d13e2315364a74f1b0244791e (patch)
treeb0959bbbb1ca5a16d94646454d7f2e9340081915 /service/http/service.go
parentccd297dbe2586b3fd29854f72f795be9e818522e (diff)
readme, samples, golint, build scripts
Diffstat (limited to 'service/http/service.go')
-rw-r--r--service/http/service.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/http/service.go b/service/http/service.go
index 7a7354fb..3d200845 100644
--- a/service/http/service.go
+++ b/service/http/service.go
@@ -27,6 +27,7 @@ type Service struct {
http *http.Server
}
+// AddMiddleware adds new net/http middleware.
func (s *Service) AddMiddleware(m middleware) {
s.mdws = append(s.mdws, m)
}