15 lines
408 B
Go
15 lines
408 B
Go
package util
|
|
|
|
import (
|
|
"fmt"
|
|
"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
|
|
}
|