mattermost/einterfaces
Mario de Frutos Dieguez aafea55976
MM-23131 Include HTTP status code in the metrics (#14240)
* ResponseWriter wrapper to get status code

For our metrics, we need the status code returned by a request
so this wrapper includes a new method StatusCode() that includes
the desired code

* Shadow the responsewriter variable in the handlers

In order to avoid confusion to people deciding what variable to use.
I've also changed the tests to reflect this change and added a new
one that checks the Flush method works
2020-04-14 14:15:00 +02:00
..
jobs Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
mocks MM-23131 Include HTTP status code in the metrics (#14240) 2020-04-14 14:15:00 +02:00
account_migration.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
cluster.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
compliance.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
data_retention.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
ldap.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
message_export.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
metrics.go MM-23131 Include HTTP status code in the metrics (#14240) 2020-04-14 14:15:00 +02:00
mfa.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
notification.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
oauthproviders.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
saml.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00