Files
s-ui/util/subInfo.go
T
Alireza Ahmadi 7751c8fce0 go package
2025-09-18 23:19:56 +02:00

16 lines
429 B
Go

package util
import (
"fmt"
"github.com/alireza0/s-ui/database/model"
)
func GetHeaders(client *model.Client, updateInterval int) []string {
var headers []string
headers = append(headers, fmt.Sprintf("upload=%d; download=%d; total=%d; expire=%d", client.Up, client.Down, client.Volume, client.Expiry))
headers = append(headers, fmt.Sprintf("%d", updateInterval))
headers = append(headers, client.Name)
return headers
}