fmt: gofmt

This commit is contained in:
jamesread
2023-02-16 16:21:53 +00:00
parent 0335e58b12
commit 11bb3f129f
3 changed files with 7 additions and 10 deletions
+1 -3
View File
@@ -72,9 +72,7 @@ func startRestAPIServer(globalConfig *config.Config) error {
// The JSONPb.EmitDefaults is necssary, so "empty" fields are returned in JSON.
mux := runtime.NewServeMux(
runtime.WithMetadata(func(ctx context.Context, request *http.Request) metadata.MD {
return parseRequestMetadata(ctx, request)
}),
runtime.WithMetadata(parseRequestMetadata),
runtime.WithMarshalerOption(runtime.MIMEWildcard, &runtime.HTTPBodyMarshaler{
Marshaler: &runtime.JSONPb{
MarshalOptions: protojson.MarshalOptions{
+4 -5
View File
@@ -1,10 +1,10 @@
package httpservers;
package httpservers
import (
"github.com/golang-jwt/jwt/v4"
"fmt"
log "github.com/sirupsen/logrus"
"errors"
"fmt"
"github.com/golang-jwt/jwt/v4"
log "github.com/sirupsen/logrus"
"net/http"
)
@@ -65,4 +65,3 @@ func parseJwtCookie(request *http.Request) (string, string) {
return username, usergroup
}