Files
s-ui/util/subInfo.go
T

16 lines
444 B
Go
Raw Normal View History

2026-05-10 06:41:44 +00:00
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
}