gofmt
This commit is contained in:
parent
64ca86effa
commit
d1605ee841
2
main.go
2
main.go
|
@ -1,8 +1,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"encoding/base64"
|
||||
"flag"
|
||||
|
||||
"dev.sum7.eu/genofire/golang-lib/file"
|
||||
"github.com/bdlm/log"
|
||||
|
|
|
@ -2,9 +2,9 @@ package main
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"time"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func (c *configData) Request(url string, value interface{}) error {
|
||||
|
@ -30,4 +30,3 @@ func (c *configData) Request(url string, value interface{}) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ const (
|
|||
URLRequestListVHost = "/v1/vhosts"
|
||||
URLRequestListApp = "/v1/vhosts/%s/apps"
|
||||
URLRequestListStream = "/v1/vhosts/%s/apps/%s/streams"
|
||||
|
||||
)
|
||||
|
||||
type ResponseList struct {
|
||||
|
|
|
@ -10,7 +10,6 @@ const (
|
|||
URLRequestStatsVHost = "/v1/stats/current/vhosts/%s"
|
||||
URLRequestStatsApp = "/v1/stats/current/vhosts/%s/apps/%s"
|
||||
URLRequestStatsStream = "/v1/stats/current/vhosts/%s/apps/%s/streams/%s"
|
||||
|
||||
)
|
||||
|
||||
type ResponseStats struct {
|
||||
|
@ -34,7 +33,6 @@ type ResponseStatsData struct {
|
|||
TotalBytesOut uint64 `json:"totalBytesOut" example:"117022184"`
|
||||
}
|
||||
|
||||
|
||||
func (resp *ResponseStats) Log(log *log.Entry) {
|
||||
logger := log
|
||||
if resp.Data != nil {
|
||||
|
|
Loading…
Reference in New Issue