1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-26 15:16:27 +01:00

Creates a struct for event

This commit is contained in:
Amir Raminfar
2021-04-18 15:03:51 -07:00
parent d65d899056
commit 3defe22eed

View File

@@ -8,6 +8,16 @@ import (
"net/http/httputil"
)
type StartEvent struct {
Version string
FilterLength int
CustomAddress bool
CustomBase bool
TailSize int
Protected bool
}
func main() {
postBody := map[string]interface{}{
"client_id": "XXXXXXXXXX.YYYYYYYYYY",
@@ -16,8 +26,8 @@ func main() {
"name": "test_go",
"params": map[string]interface{}{
"version": "1.1.1",
"docker": "2",
"color": "red",
"docker": "2",
"color": "red",
},
},
},