* invert depdendency: filestore -> model
* markdown: nolint:misspell
* inline jsonutils within model
* push model.GetInfoForBytes -> channels/app
* push channel/utils.CompileGo* -> plugin/utils
* push plugin/scheduler -> channels/jobs/plugins
* push utils.Copy(File|Dir) -> model
* oauthproiders/gitlab -> channels/app/oauthproviders/gitlab
* decouple plugin from einterfaces.MetricsInterface
* fix TestGetInfoForFile
* Revert "Run golangci in server CI (#23240)"
This reverts commit 349e5d4573.
* add model/utils
---------
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
12 строки
457 B
Go
12 строки
457 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package plugin
|
|
|
|
type metricsInterface interface {
|
|
ObservePluginHookDuration(pluginID, hookName string, success bool, elapsed float64)
|
|
ObservePluginMultiHookIterationDuration(pluginID string, elapsed float64)
|
|
ObservePluginMultiHookDuration(elapsed float64)
|
|
ObservePluginAPIDuration(pluginID, apiName string, success bool, elapsed float64)
|
|
}
|