-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code freeze for first minor release (#39)
* nit: minor code format * refactor: remove duplicate function contents * Updated configuration flow of control (#38) * feat: draft variable packet size experiment * docs: new section for project replicability * docs: markdown diagram (system control flow) + blockquote highlight * refactor: utility to insights + diode collection script * feat: module install & output binary * feat: begin subscribe and publish commands * feat: basic payload retrieval from standard input * refactor: prepare for complete message detection * feat: filter output from incoming payload * refactor: stream demo into encapsulator & republisher * refactor: option to delimit message & remove write new line * feat: draft message flow w/ client-server location * feat: mock MQTT connection prior to testing * feat: recieve message from given source location * refactor: next steps for outbound message flow * docs: text on links for architecture diagram * remove: start/end delimiter + message case * refactor: entry point for main application, build information, & testing * feat: split input & output metadata via project settings * fix: repackaged JSON object contents + diode metadata * docs: update main program directory name
- Loading branch information
1 parent
084f41b
commit 8ab3ec3
Showing
13 changed files
with
359 additions
and
581 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ go.work | |
|
||
# Input source → experimental results | ||
*.txt | ||
|
||
# Output binary | ||
diode |
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 |
---|---|---|
@@ -1,11 +1,19 @@ | ||
BIN_NAME=diode | ||
BIN_VERSION=0.1.0 | ||
BIN_DATE=$(shell date +%FT%T%z) | ||
|
||
all: build | ||
|
||
build: | ||
go build -o diode -ldflags="-X main.SemVer=0.0.9" diode.go | ||
go build -o ${BIN_NAME} -ldflags="-X 'main.SemVer=${BIN_VERSION}' -X 'main.BuildInfo=${BIN_DATE}'" | ||
|
||
test: | ||
go test -v ./... | ||
|
||
run: | ||
go run diode.go | ||
run: build | ||
./${BIN_NAME} --help | ||
|
||
clean: | ||
go clean | ||
rm ${BIN_NAME} | ||
|
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 |
---|---|---|
@@ -1,13 +1,20 @@ | ||
# Data Diode Settings | ||
input: | ||
ip: "localhost" | ||
port: 49152 | ||
timeout: 60 # seconds | ||
output: | ||
ip: "localhost" | ||
port: 13337 | ||
tls: false | ||
broker: | ||
server: "localhost" | ||
port: 1883 | ||
topic: "diode/telemetry" | ||
# Project Settings | ||
diode: | ||
input: | ||
ip: "localhost" | ||
port: 49152 | ||
timeout: 60 # seconds | ||
output: | ||
ip: "localhost" | ||
port: 13337 | ||
tls: false | ||
mqtt: | ||
inside: | ||
server: "localhost" | ||
port: 1883 | ||
topic: "#" | ||
outside: | ||
server: "localhost" | ||
port: 1883 | ||
prefix: "diode" | ||
# Avoid namespace collisions |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.