forked from godotengine/godot-cpp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Kafka Cpp * chore: moved the binaries around to an addon setup. * chore: implementation. * chore: separated kafka wrapper api into library, made a test app and exposed the wrapper to the godot library. * fix: consumer thread lifetime. * feat: implemented kafka multiplayer peer. * chore: delete dead files. * chore: logging.
- Loading branch information
1 parent
0f49e5c
commit 943fd42
Showing
30 changed files
with
2,452 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"preLaunchTask": "CMake: build", | ||
"name": "Debug GodotKafka", | ||
"program": "${workspaceFolder}/godot-editor/Godot_v4.3-stable_win64.exe", | ||
"args": [ | ||
"--debug", | ||
"--path", | ||
"${workspaceFolder}/demo/client" | ||
], | ||
"cwd": "${workspaceFolder}", | ||
}, | ||
// { | ||
// "name": "Debug GodotKafka", | ||
// "type": "godot", | ||
// "request": "launch", | ||
// "project": "${workspaceFolder}/demo/client", | ||
// "scene": "main", | ||
// "editor_path": "${workspaceFolder}/godot-editor/Godot_v4.3-stable_win64.exe", | ||
// "profiling": false, | ||
// "single_threaded_scene": false, | ||
// "debug_avoidance": false, | ||
// "debug_navigation": false, | ||
// "debug_collisions": false, | ||
// "debug_paths": false, | ||
// "debug_stringnames": false, | ||
// "frame_delay": 0, | ||
// "time_scale": 1.0, | ||
// "disable_vsync": false, | ||
// "fixed_fps": 60, | ||
// "additional_options": "" | ||
// }, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug executable 'rust-example'", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--bin=rust-example", | ||
"--package=rust-example" | ||
], | ||
"filter": { | ||
"name": "rust-example", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in executable 'rust-example'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--bin=rust-example", | ||
"--package=rust-example" | ||
], | ||
"filter": { | ||
"name": "rust-example", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"godotTools.editorPath.godot4": "d:\\Workspace\\_Personal\\godot-kafka-multiplayer-peer\\godot-editor\\Godot_v4.3-stable_win64.exe" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
// { | ||
// "label": "CMake: configure", | ||
// "type": "shell", | ||
// "command": "cmake -DCMAKE_BUILD_TYPE=Debug ../..", | ||
// "options": { | ||
// "cwd": "${workspaceFolder}/.sln/Debug" | ||
// }, | ||
// }, | ||
{ | ||
// "dependsOn": "CMake: configure", | ||
"label": "CMake: build", | ||
"type": "shell", | ||
"command": "cmake --build .", | ||
"options": { | ||
"cwd": "${workspaceFolder}/.sln/Debug" | ||
}, | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
version: '3.8' | ||
networks: | ||
redpanda_network: | ||
driver: host | ||
volumes: | ||
redpanda-0: null | ||
services: | ||
|
||
redpanda-0: | ||
command: | ||
- redpanda | ||
- start | ||
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092 | ||
# Address the broker advertises to clients that connect to the Kafka API. | ||
# Use the internal addresses to connect to the Redpanda brokers' | ||
# from inside the same Docker network. | ||
# Use the external addresses to connect to the Redpanda brokers' | ||
# from outside the Docker network. | ||
- --advertise-kafka-addr internal://redpanda-0:9092,external://localhost:19092 | ||
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082 | ||
# Address the broker advertises to clients that connect to the HTTP Proxy. | ||
- --advertise-pandaproxy-addr internal://redpanda-0:8082,external://localhost:18082 | ||
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081 | ||
# Redpanda brokers use the RPC API to communicate with each other internally. | ||
- --rpc-addr redpanda-0:33145 | ||
- --advertise-rpc-addr redpanda-0:33145 | ||
# Mode dev-container uses well-known configuration properties for development in containers. | ||
- --mode dev-container | ||
# Tells Seastar (the framework Redpanda uses under the hood) to use 1 core on the system. | ||
- --smp 1 | ||
- --default-log-level=info | ||
image: docker.redpanda.com/redpandadata/redpanda:v24.2.4 | ||
container_name: redpanda-0 | ||
volumes: | ||
- redpanda-0:/var/lib/redpanda/data | ||
networks: | ||
- redpanda_network | ||
ports: | ||
- 18081:18081 | ||
- 18082:18082 | ||
- 19092:19092 | ||
- 19644:9644 | ||
console: | ||
container_name: redpanda-console | ||
image: docker.redpanda.com/redpandadata/console:v2.7.1 | ||
networks: | ||
- redpanda_network | ||
entrypoint: /bin/sh | ||
command: -c 'echo "$$CONSOLE_CONFIG_FILE" > /tmp/config.yml; /app/console' | ||
environment: | ||
CONFIG_FILEPATH: /tmp/config.yml | ||
CONSOLE_CONFIG_FILE: | | ||
kafka: | ||
brokers: ["redpanda-0:9092"] | ||
schemaRegistry: | ||
enabled: true | ||
urls: ["http://redpanda-0:8081"] | ||
redpanda: | ||
adminApi: | ||
enabled: true | ||
urls: ["http://redpanda-0:9644"] | ||
ports: | ||
- 8080:8080 | ||
depends_on: | ||
- redpanda-0 | ||
|
||
# rust-example: | ||
# build: | ||
# context: ./demo/server/rust-example | ||
# dockerfile: Dockerfile | ||
# ports: | ||
# - 8000:8000 |
Oops, something went wrong.