Regenerate boilerplate

This commit is contained in:
Manfred Touron
2016-12-25 19:55:34 +01:00
parent f5d97d64c7
commit 91e9114c24
12 changed files with 291 additions and 54 deletions

View File

@@ -17,7 +17,7 @@ func MakeLoginHandler(ctx context.Context, svc pb.SessionServiceServer, endpoint
ctx,
endpoint,
decodeLoginRequest,
encodeLoginResponse,
encodeResponse,
[]httptransport.ServerOption{}...,
)
}
@@ -30,7 +30,7 @@ func decodeLoginRequest(ctx context.Context, r *http.Request) (interface{}, erro
return &req, nil
}
func encodeLoginResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error {
func encodeResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error {
return json.NewEncoder(w).Encode(response)
}