aboutsummaryrefslogtreecommitdiffstats
path: root/demo/qwd/data.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--demo/qwd/data.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/demo/qwd/data.go b/demo/qwd/data.go
new file mode 100644
index 0000000..cc00c23
--- /dev/null
+++ b/demo/qwd/data.go
@@ -0,0 +1,32 @@
+package qwd
+
+import (
+ "github.com/osm/quake/common/buffer"
+ "github.com/osm/quake/protocol"
+)
+
+type Data struct {
+ Timestamp float32
+ Command byte
+ Cmd *Cmd
+ Read *Read
+ Set *Set
+}
+
+func (d *Data) Bytes() []byte {
+ buf := buffer.New()
+
+ buf.PutFloat32(d.Timestamp)
+ buf.PutByte(d.Command)
+
+ switch d.Command {
+ case protocol.DemoCmd:
+ buf.PutBytes(d.Cmd.Bytes())
+ case protocol.DemoRead:
+ buf.PutBytes(d.Read.Bytes())
+ case protocol.DemoSet:
+ buf.PutBytes(d.Set.Bytes())
+ }
+
+ return buf.Bytes()
+}
make target' error: updated Dockerfile to remove the submodule command at: ln:29: and: Jenkinsfile will use the git submodule sync command. This will ensure the agent's repository is correctly configured before fetching the submodule code: at: ln:9-17 2025-07-23Attempt to patch CI pipeline: Dockerfile will now be selfcontained, and ↵Gravatar Andrew D. France 2-32/+43 thus, will init .gitmodules: ln:10 removed from original Jenkinsfile 2025-07-23CRITICAL ISSUE: Deleting lib/ files has introduced the issue of actually ↵Gravatar Andrew D. France 1-38/+25 automating the module initialization via jenkins: DEBUG VERSION: Jenkinsfile 2025-07-23CRITICAL FOR TESTING: This copies the entire Jenkins workspace (including ↵Gravatar Andrew D. France 2-9/+7 the populated lib/ directory from the submodules) into the running container, ensuring all the required source files are available for the build process.