Report traffic for all download tokens

This commit is contained in:
Ben Adrian Sarmiento
2024-07-04 04:14:39 +02:00
parent 49432dd810
commit 38a1a9e096
5 changed files with 59 additions and 33 deletions

View File

@@ -102,3 +102,11 @@ func (dtm *DownloadTokenManager) GetExpiredTokens() []string {
}
return tokens
}
func (dtm *DownloadTokenManager) GetAllTokens() []string {
var tokens []string
for _, t := range dtm.tokens {
tokens = append(tokens, t.value)
}
return tokens
}