Codebase list golang-github-go-kit-kit / 1c17ecc
fixed copy paste comment issues. closes #706 Bas van Beek 5 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5454 // ServerOption sets an optional parameter for servers.
5555 type ServerOption func(*Server)
5656
57 // ServerBefore functions are executed on the HTTP request object before the
57 // ServerBefore functions are executed on the gRPC request object before the
5858 // request is decoded.
5959 func ServerBefore(before ...ServerRequestFunc) ServerOption {
6060 return func(s *Server) { s.before = append(s.before, before...) }
6161 }
6262
63 // ServerAfter functions are executed on the HTTP response writer after the
63 // ServerAfter functions are executed on the gRPC response writer after the
6464 // endpoint is invoked, but before anything is written to the client.
6565 func ServerAfter(after ...ServerResponseFunc) ServerOption {
6666 return func(s *Server) { s.after = append(s.after, after...) }