This file contains hidden or 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
| # OBP_DB_PORT=5434 OBP_API_PORT=8081 docker compose up | |
| version: '3' | |
| networks: | |
| obp-network: | |
| driver: bridge | |
| ipam: | |
| config: | |
| - subnet: 172.21.0.0/16 |
This file contains hidden or 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
| package main | |
| type Node struct { | |
| Key int // Store the key, not value | |
| Value int // Store the value | |
| Next *Node | |
| Previous *Node | |
| } | |
| type LRUCache struct { |
This file contains hidden or 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
| package gotoqueue | |
| import ( | |
| "log" | |
| "strings" | |
| "sync" | |
| ) | |
| // Add to logger.go - Enhanced Logger interface with levels | |
| type LogLevel int |
This file contains hidden or 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
| #include <libubox/blobmsg_json.h> | |
| #include <libubus.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| /** | |
| * Constants for ubus configuration | |
| */ | |
| #define TOPIC_NAME "topology.connection" |
This file contains hidden or 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
| #include <libubox/blobmsg_json.h> | |
| #include <libubus.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define TOPIC_NAME "topology.connection" | |
| #define UBUS_SOCKET "/var/run/ubus.sock" | |
| /** |
This file contains hidden or 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
| version: "2.1" | |
| services: | |
| zookeeper: | |
| image: docker.io/bitnami/zookeeper:3.8 | |
| hostname: zookeeper | |
| container_name: zookeeper | |
| ports: | |
| - "2181:2181" | |
| volumes: |
This file contains hidden or 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
| version: '3' | |
| services: | |
| zookeeper: | |
| image: confluentinc/cp-zookeeper:latest | |
| hostname: zookeeper | |
| container_name: zookeeper | |
| ports: | |
| - "32181:32181" | |
| volumes: |
This file contains hidden or 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
| #include "curldefine.h" | |
| #include <unistd.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <mosquitto.h> | |
| #include <string.h> | |
| /*SUB TASK DEFINE*/ | |
| #define TOPIC "MQTT/Topic1" | |
| #define CERT_EMQX "/tmp/tmp/broker.emqx.io-ca.crt" |