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

939 commits

Author SHA1 Message Date
postmannen
e5204fe663 update ctrl book 2024-12-14 10:31:46 +01:00
postmannen
f99af8e0ab moved all the procfunc definitions in the processes startup as separate functions defined after theyr respective request method where they belong 2024-12-13 16:49:21 +01:00
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
b1a5406598 Squashed commit of the following:
commit ec6ea8158d5051010c25ef848a7b7b91fa40efef
Author: postmannen <postmannen@gmail.com>
Date:   Tue Nov 19 03:48:03 2024 +0100

    Removed remaining use of REQ in naming

commit b80bb06a47cf564a88d684c1d1d4fe2e408c3c0f
Author: postmannen <postmannen@gmail.com>
Date:   Mon Nov 18 23:15:32 2024 +0100

    removed REQ in more variable names, including methods

commit af7f6fef3e0093312d2ca12740f7b27840797800
Author: postmannen <postmannen@gmail.com>
Date:   Mon Nov 18 22:54:40 2024 +0100

    renamed all the method type variables

commit e657ecb37f
Author: postmannen <postmannen@gmail.com>
Date:   Mon Nov 18 22:32:13 2024 +0100

    renamed methods constant values and removed REQ
2024-11-19 03:48:42 +01:00
postmannen
debed0f791 Squashed commit of the following:
commit cde5c14c74
Author: postmannen <postmannen@gmail.com>
Date:   Mon Nov 18 19:24:17 2024 +0100

    updated doc

commit 26441819a2
Author: postmannen <postmannen@gmail.com>
Date:   Mon Nov 18 16:57:11 2024 +0100

    added book content and moved build files

commit 8ec3e8c21e
Author: postmannen <postmannen@gmail.com>
Date:   Mon Nov 18 11:27:32 2024 +0100

    more about messaging added to the book
2024-11-18 19:25:47 +01:00
postmannen
fc15c4dd63 Added book 2024-11-17 21:22:35 +01:00
postmannen
3d7064b6d8 shortened down README.md 2024-11-16 18:09:36 +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
34e0c5d1c6 Merge branch 'dev' into main 2024-03-08 22:57:11 +01:00
postmannen
c098c623f1 cleaned up no longer used code 2024-03-08 22:55:21 +01:00
postmannen
fc6e80b1bf fixed linter errors, and added the direct use of nkey as flag 2024-03-07 23:17:24 +01:00
postmannen
197d6550ab updated readme 2024-02-07 23:27:36 +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
c3b41d2954 update readme 2023-10-04 22:53:03 +02:00
postmannen
5c23fa409f comment 2023-06-30 05:28:42 +02:00
postmannen
11f434edde add comments for using ssh key for nkey 2023-06-27 11:58:10 +02:00
postmannen
59b0d7d5d9 Use ed25519 ssh private key as nkey seed 2023-06-27 11:49:46 +02:00
postmannen
1f95151da0 removed debug printing from ringbuffer 2023-06-21 12:08:17 +02:00
postmannen
1c7f47ffff added rpm to goreleaser 2023-06-20 07:55:01 +02:00
postmannen
e090c4d0c8 updated readme for request methods writing to sockets 2023-06-14 06:53:42 +02:00
postmannen
4c7ec43da2 removed not needed error check 2023-06-14 06:47:13 +02:00
postmannen
f23fa053f6 added check for correctness for path for copy messages 2023-06-09 09:09:37 +02:00
postmannen
b2215181e7 added source patch to copydstdone 2023-06-09 05:18:24 +02:00
postmannen
ea9738950d initial implementation where toFile also writes to sockets 2023-06-06 12:23:26 +02:00
postmannen
ce1eba687a added file info content to copyDstDone messages 2023-06-02 12:27:18 +02:00
postmannen
6da53c8ed6 fixed incorrectly error handling when checking socket, set ticket to 1 when 0, send errorLogs to the correct node after rewrite of startups earlier 2023-06-01 06:15:39 +02:00
postmannen
6922775107 fixed mutex passed wrongly by value 2023-05-31 09:30:39 +02:00
postmannen
dcefbff670 added initial write to socket 2023-05-31 09:29:00 +02:00
postmannen
16ec026453 restructured req to file methods to use the same file write function 2023-05-31 05:06:00 +02:00
postmannen
e50d906be3 renabled ringbuffer done channel triggered by persiststore flag 2023-05-30 05:46:02 +02:00
postmannen
602138ffa6 renamed in/out channels in ringbuffer 2023-04-26 08:20:55 +02:00
postmannen
11b6cb6a0e allowing retries=0 2023-04-26 07:25:14 +02:00
postmannen
7e9754fcdd examples 2023-04-19 09:51:09 +02:00
postmannen
4c3b639e65 updated doc example messages 2023-04-19 08:07:03 +02:00
postmannen
88532f4a6e updated readme with toNode local 2023-04-19 05:46:38 +02:00
postmannen
7b4335a256 rewrite processes startup 2023-04-18 15:47:40 +02:00
postmannen
8868a8db64 replaced deprecated os.SEEK_END with op.SeekEnd 2023-04-18 06:29:59 +02:00
postmannen
f39f3d73c7 allow the use of local as nodename for startupfolder messages 2023-04-15 08:33:35 +02:00
postmannen
6989297a66 add version flag 2023-04-12 09:56:08 +02:00
postmannen
4664d0d8a3 go.mod required go version 1.20 2023-04-11 09:30:23 +02:00
postmannen
d6335dd3b2 updating packages 2023-04-05 06:20:40 +02:00
postmannen
4b74f4b0c4 changed log level for tests 2023-03-01 06:58:56 +01:00
postmannen
c951484ca1 Added RetryWait info to the readme 2023-01-30 07:21:16 +01:00
postmannen
abf82a8e4b added helper script that uses yaml template for sending messages 2023-01-26 14:26:26 +01:00
postmannen
0f590472fd set the correct filename extension for files created with cliFolder 2023-01-26 12:00:22 +01:00
postmannen
7d21af55e7 not terminating publisher services that should run at all times based on timer 2023-01-13 15:09:23 +01:00
postmannen
b3a85d0283 setting default console log level to debug 2023-01-12 13:37:22 +01:00