Some checks failed
Release S-UI / build-frontend (push) Failing after 1m53s
Release S-UI / build-386 (push) Has been skipped
Release S-UI / build-amd64 (push) Has been skipped
Release S-UI / build-armv5 (push) Has been skipped
Release S-UI / build-armv6 (push) Has been skipped
Release S-UI / build-armv7 (push) Has been skipped
Release S-UI / build-s390x (push) Has been skipped
Release S-UI / build-arm64 (push) Has been skipped
Build S-UI for Windows / build-frontend (push) Failing after 2s
Build S-UI for Windows / build-windows-amd64 (push) Has been skipped
Build S-UI for Windows / build-windows-arm64 (push) Has been skipped
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
16 lines
429 B
Go
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
|
|
}
|