1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00
Commit graph

53 commits

Author SHA1 Message Date
postmannen
3a31ced938 Squashed commit of the following:
implemented reading and embedding the content of a local file with {{CTRL_FILE}}

fixed error with not found filename in copy test, remove debug logs

seedfile: removed deletion, and changed file permissions to 600

created flags for profiling

renamed startup.subscriber to startup.startProcess

created a separate method for helloPublisher

removed processKind, og removed not needed file check in copy request

removed sams from channels

removed publisher channel on subject, and messages to publish are now directly published from the newMessagesCh

removed no longer needed compression and serialization flags.

all messaging are using zstd for compression, and cbor for serializing

added functions for handling cbor serializing and zstd compression, and swapped out json marshaling of jetstream message data with cbor and zstd

added flag for max jetstream messages to keep on broker per subject
2024-12-03 16:17:33 +01:00
postmannen
cdf660aa07 add NODES.all as jetstream subject, and updated doc
added handling of consumed jetstream messages, and fixed a read error with readFolder which sometimes read empty content

newMessagesCh now takes single sam instead of []sams

added jetstream publish channel
2024-11-27 08:34:49 +01:00
postmannen
2fb43591ce updated readme
removed example for no longer existing relay messages
cleaned up comments
Removed some remaings after REQToFileNACK
Implemented env variables for all flags, and removed config flag. Also added use of .env file.
removed configuration as input argument from all the loggers
replaced logging of new messages in read folder with a logDebug so we don't send those messages to the error kernel
2024-03-27 12:48:17 +01:00
postmannen
69995f76ca updated package info
updated references
removed tui client
removed ringbuffer persist store
removed ringbuffer
enabled audit logging
moved audit logging to message readers
disabled goreleaser
update readme, cbor, zstd
removed request type ping and pong
update readme
testing with cmd.WaitDelay for clicommand
fixed readme
removed ringbuffer flag
default serialization set to cbor, default compression set to zstd, fixed race,
removed event type ack and nack, also removed from subject. Fixed file stat error for copy log file
removed remaining elements of the event type
removed comments
renamed toRingbufferCh to samToSendCh
renamed directSAMSCh ro samSendLocalCh
removed handler interface
agpl3 license
added license-change.md
2024-02-07 22:54:50 +01:00
postmannen
076abdef71 changed from log package to slog 2023-01-12 12:01:01 +01:00
postmannen
b3bb2e44a1 updated comments 2022-06-22 14:32:58 +02:00
postmannen
87b0d71a25 schedule all request types seems to initially work 2022-06-20 12:28:28 +02:00
postmannen
113481775c initial scheduler implementation 2022-06-20 11:17:23 +02:00
postmannen
b1bcefb949 terminating subproc publishers if inactive for given amount of time 2022-06-18 00:03:25 +02:00
postmannen
7e9a7638aa added message.RetryWait field, upgrader nats-server package 2022-06-17 00:39:15 +02:00
postmannen
b8a2d3d5e7 removed copyFile<from/to> and relay request types 2022-06-16 23:32:44 +02:00
postmannen
1895fcb398 Changed message logic to handle REQSub sub requests 2022-06-14 07:05:38 +02:00
postmannen
f50e521743 initial idea for large file copy 2022-06-07 11:52:30 +02:00
postmannen
7b230f1fc6 Added ArgSignature to Message 2022-01-31 10:06:14 +01:00
postmannen
1fa45b1293 changed message.Data from []string to []byte 2022-01-31 08:49:46 +01:00
postmannen
4390d494f4 updated comments with references to command to just have for the event type 2022-01-27 14:25:24 +01:00
postmannen
e7e5726095 renamed commandorevent field name in subject struct 2022-01-27 10:06:06 +01:00
postmannen
d7bee9d361 removed command type 2022-01-27 07:19:04 +01:00
postmannen
88672f1e35 added logic for startup folder 2022-01-26 09:23:02 +01:00
postmannen
56cfd50e8b removed fixed or no longer needed todo's 2022-01-03 07:36:38 +01:00
postmannen
8e87caf30a added cbor toarray 2021-12-29 08:29:11 +01:00
postmannen
6d237ffcde moved gob encoding to messageDeliverNats 2021-12-25 19:21:10 +01:00
postmannen
c8f8de71c5 relay, central ok, but no output to node1 2021-11-19 09:35:53 +01:00
postmannen
f8491df388 removed REQOpCmd 2021-11-16 20:13:03 +01:00
postmannen
22b3e4fbe5 relay working, but cmd cont failing output 2021-11-11 13:43:32 +01:00
postmannen
d02d9018e9 more relay structure, and sub startup 2021-11-10 11:21:38 +01:00
postmannen
c37eeffeb5 initial relay request types 2021-11-10 06:22:03 +01:00
postmannen
4fe066aebd cleaned up old comments 2021-11-09 14:01:42 +01:00
postmannen
a1fbdffd36 added isReply to message structure 2021-09-22 16:08:55 +02:00
postmannen
d5082cc7a4 added replyMethodTimeout to message 2021-09-16 12:37:46 +02:00
postmannen
d653e94ee2 methodArgs replaces data as an arg field for methods 2021-09-16 11:51:34 +02:00
postmannen
2085034e47 updated todo 2021-09-09 09:54:33 +02:00
postmannen
82e9477b18 commented out some logging 2021-08-25 16:17:33 +02:00
postmannen
bf75a44fbf renamed message fileextension to message filename 2021-08-24 14:05:44 +02:00
postmannen
c27a3dc188 updated comments 2021-08-16 13:01:12 +02:00
postmannen
923fd4c611 exported type node to Node 2021-06-29 08:21:42 +02:00
postmannen
55b6602b4b Added Operation initially to the structure 2021-06-17 09:36:42 +02:00
postmannen
9bbff0ad84 renamed message field replyTimeout to replyACKTimeout 2021-04-15 10:52:38 +02:00
postmannen
8efecdb18e renamed message timeout field to ACKTimeout 2021-04-15 10:33:44 +02:00
postmannen
b2f47d8a75 renamed reqestTimeout to replyTimeout 2021-04-13 14:37:17 +02:00
postmannen
2ea53e1432 added initial replyMethod 2021-04-13 13:50:00 +02:00
postmannen
efb49b7193 Implemented arguments structure for op commands 2021-04-09 18:20:04 +02:00
postmannen
d909784094 Start proc via message, moved nats.conn into process 2021-04-07 16:45:51 +02:00
postmannen
b08dd4558e Added fileExtension type to message 2021-04-07 07:00:40 +02:00
postmannen
23b6b58439 renamed label field in message to directory 2021-04-07 06:33:29 +02:00
postmannen
3368448cd7 removed label from subject 2021-04-07 06:16:08 +02:00
postmannen
f75aa73703 newSubject now uses the methods available map to figure out what kind of CommandOrEvent type it is 2021-04-03 07:33:03 +02:00
postmannen
3a0f3ee3bb fixed using previous message instead of subject 2021-04-03 06:31:48 +02:00
postmannen
26078cffa2 labels are used to create folder structue on subscriber 2021-04-02 22:15:52 +02:00
postmannen
f58c12bf80 add concept of label to message, reorder subject name 2021-04-02 20:36:21 +02:00