mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-09 16:25:15 +03:00
add license header to source files
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
// Copyright (C) 2019-2022 Nicola Murino
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as published
|
||||
// by the Free Software Foundation, version 3.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
//go:build !nometrics
|
||||
// +build !nometrics
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ func init() {
|
||||
func AddMetricsEndpoint(metricsPath string, handler chi.Router) {}
|
||||
|
||||
// TransferCompleted updates metrics after an upload or a download
|
||||
func TransferCompleted(bytesSent, bytesReceived int64, transferKind int, err error) {}
|
||||
func TransferCompleted(bytesSent, bytesReceived int64, transferKind int, err error, isSFTPFs bool) {}
|
||||
|
||||
// S3TransferCompleted updates metrics after an S3 upload or a download
|
||||
func S3TransferCompleted(bytes int64, transferKind int, err error) {}
|
||||
@@ -49,6 +49,9 @@ func GCSDeleteObjectCompleted(err error) {}
|
||||
// GCSHeadBucketCompleted updates metrics after a GCS head bucket request terminates
|
||||
func GCSHeadBucketCompleted(err error) {}
|
||||
|
||||
// HTTPFsTransferCompleted updates metrics after an HTTPFs upload or a download
|
||||
func HTTPFsTransferCompleted(bytes int64, transferKind int, err error) {}
|
||||
|
||||
// SSHCommandCompleted update metrics after an SSH command terminates
|
||||
func SSHCommandCompleted(err error) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user