ran go-fmt on complete sourcecode

This commit is contained in:
Bernhard B
2022-04-01 19:08:07 +02:00
parent d34fcb905e
commit 0b6bd44838
5 changed files with 30 additions and 32 deletions

View File

@@ -3,10 +3,10 @@ package api
import (
"bytes"
"encoding/json"
"errors"
"net/http"
"strconv"
"time"
"errors"
"github.com/gabriel-vasile/mimetype"
"github.com/gin-gonic/gin"
@@ -29,9 +29,9 @@ const (
)
type UpdateContactRequest struct {
Recipient string `json:"recipient"`
Name *string `json:"name"`
ExpirationInSeconds *int `json:"expiration_in_seconds"`
Recipient string `json:"recipient"`
Name *string `json:"name"`
ExpirationInSeconds *int `json:"expiration_in_seconds"`
}
type GroupPermissions struct {
@@ -48,11 +48,11 @@ type CreateGroupRequest struct {
}
type ChangeGroupMembersRequest struct {
Members []string `json:"members"`
Members []string `json:"members"`
}
type ChangeGroupAdminsRequest struct {
Admins []string `json:"admins"`
Admins []string `json:"admins"`
}
type LoggingConfiguration struct {
@@ -360,7 +360,7 @@ func (a *Api) handleSignalReceive(ws *websocket.Conn, number string, stop chan s
for {
select {
case <-stop:
case <-stop:
ws.Close()
return
case msg := <-receiveChannel:
@@ -1351,7 +1351,6 @@ func (a *Api) SearchForNumbers(c *gin.Context) {
c.JSON(200, searchResponse)
}
// @Summary Updates the info associated to a number on the contact list. If the contact doesnt exist yet, it will be added.
// @Tags Contacts
// @Description Updates the info associated to a number on the contact list.