Files
s-ui/util/subInfo.go
T

16 lines
445 B
Go
Raw Permalink Normal View History

2026-05-10 06:41:44 +00:00
package util
import (
"fmt"
2026-05-10 14:56:03 +08:00
"github.com/admin8800/s-ui/database/model"
2026-05-10 06:41:44 +00:00
)
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
}