add comments and new parameter id for client request order

This commit is contained in:
Adrian Zuercher
2025-05-04 20:55:58 +02:00
parent c7154f0779
commit e3487eb340
15 changed files with 119 additions and 79 deletions

View File

@@ -7,10 +7,12 @@ import (
"github.com/tecamino/tecamino-json_data/models"
)
// Returns a new json_data Response model
func NewResponse() *models.Response {
return &models.Response{}
}
// Parses the response body of a http or web socket request
func ParseResponse(body io.ReadCloser) (*models.Response, error) {
b, err := io.ReadAll(body)
if err != nil {