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

34 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
6c615591a6 Squashed commit of the following:
commit 2a5cb441ff8c3f3f4404c49188c16afdb701cd42
Author: postmannen <postmannen@gmail.com>
Date:   Tue Nov 19 06:46:58 2024 +0100

    updated doc

commit a97d2dd4fd162a45dcf8f80d833a31bdc7e0b817
Author: postmannen <postmannen@gmail.com>
Date:   Tue Nov 19 06:25:57 2024 +0100

    renamed the various naming for channels where new messages are put to newMessagesCh

commit 3c840eb718358bb55d9e1c58692517e4bbbb5f4d
Author: postmannen <postmannen@gmail.com>
Date:   Tue Nov 19 05:08:55 2024 +0100

    Restructured configuration, and added a StartProcesses struct for the flags that are for starting processes
2024-11-19 20:28:26 +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
cef1170233 fixed removal of tmp nkey file, added docker compose example, and added debug logging for when messages are read from the readfolder 2024-03-10 07:24:09 +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
f39f3d73c7 allow the use of local as nodename for startupfolder messages 2023-04-15 08:33:35 +02:00
postmannen
8c8061dc15 renamed logConsoleOnlyIfDebug to logDebug 2023-01-12 12:03:10 +01:00
postmannen
076abdef71 changed from log package to slog 2023-01-12 12:01:01 +01:00
postmannen
807455119c Added x/slog for stderr logging 2023-01-11 08:38:15 +01:00
postmannen
541f243067 added group permissions for files/directories created 2023-01-10 06:50:28 +01:00
postmannen
1b26ad854a fixed error printing readfolder, created script for writing to readfolder and socket 2023-01-09 09:10:52 +01:00
postmannen
57e074d210 fixed read messages from file, added helper scripts for ReqCli 2023-01-09 03:59:13 +01:00
postmannen
d348ab156f added initial readfolder 2023-01-08 08:32:58 +01:00
postmannen
a95c36f0c3 changed logging for authorizing keys 2023-01-06 08:48:21 +01:00
postmannen
6a97d86ca0 removed done channel when publishing, and added make chan when creating sam 2023-01-04 09:14:04 +01:00
postmannen
55c5560361 checking if fromNode is specified for startup messages 2022-11-30 07:58:41 +01:00
postmannen
0ad2763ad1 fixed block when reading startup folder 2022-09-08 07:37:44 +02:00
postmannen
3cf8bd2ce8 removed references to deprecated ioutil 2022-09-06 10:59:07 +02:00
postmannen
2688f2ba2c implemented ch for handling messages locally 2022-06-20 14:22:42 +02:00
postmannen
c8e5dd6904 fixed calling executeHandler() for startup folder messages 2022-06-20 13:34:20 +02:00
postmannen
e6006b44d3 moved hello test to request testing 2022-05-23 12:57:07 +02:00
postmannen
444c04ac3b added via socket test for refactored tests 2022-05-23 07:43:34 +02:00
postmannen
3fd36116f9 add original msg to json errors on socket 2022-04-04 05:34:18 +02:00
postmannen
56b432f402 cleaned up errorKernel references 2022-04-01 08:43:14 +02:00
postmannen
f0c84f48db injected server directly procs 2022-04-01 07:09:55 +02:00
postmannen
99832f87ce added logging to central when message read on socket 2022-03-22 14:02:25 +01:00
postmannen
f973c16321 corrected continues when branching in startupfolder 2022-03-17 04:30:23 +01:00
postmannen
41dc270444 Refactor startupfolder to not send via nats-server 2022-03-16 11:05:31 +01:00
postmannen
abf612f5e5 added yaml as input format for the unix socket 2022-03-04 13:22:55 +01:00
postmannen
c863c12608 fixed wrong path for startup folder 2022-02-22 09:41:59 +01:00
postmannen
7e71064adf replaced log statements with errorKernel logger 2022-02-18 09:51:11 +01:00
postmannen
e7e5726095 renamed commandorevent field name in subject struct 2022-01-27 10:06:06 +01:00
postmannen
88672f1e35 added logic for startup folder 2022-01-26 09:23:02 +01:00
Renamed from read_socket_or_tcp_listener.go (Browse further)