22 Commits

Author SHA1 Message Date
dagehuifei
d3b62035f9 feat: Add TLS Cert File flag (#434)
Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com>
2025-01-30 18:25:18 +00:00
JB
26418c6fd8 Implement File based configuration (#351)
* Implement file-based configuration

* Implement file-based configuration

* Replace DefaultServerCapabilities with NewDefaultServerCapabilities() to avoid data race (#360)

Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com>

* Only pass a copy of system.Info to hooks (#365)

* Only pass a copy of system.Info to hooks

* Rename Itoa to Int64toa

---------

Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com>

* Allow configurable max stored qos > 0 messages (#359)

* Allow configurable max stored qos > 0 messages

* Only rollback Inflight if QoS > 0

* Only rollback Inflight if QoS > 0

* Minor refactor

* Update server version

* Implement file-based configuration

* Implement file-based configuration

* update configs with maximum_inflight value

* update docker configuration

* fix tests

---------

Co-authored-by: mochi-co <moumochi@icloud.com>
Co-authored-by: thedevop <60499013+thedevop@users.noreply.github.com>
2024-03-18 03:28:12 +00:00
JB
add87fea2e Small fixes and cleanups (#295)
* fix typos, indicate unused returns

* Add test for publishToClient acl unauthorized

* Add Inline Client as a server option
2023-09-08 23:06:14 +01:00
Derek Duncan
44bac0adc5 Migrate from zerolog to slog (#248)
* Begin adding new slog calls

* Fixed unit tests

* Add leveler example

* Add debug log level to Redis example

* Change location of server.Close() and add logs to example/hooks

* Begin removing references to zerolog

* Removed final references to zerolog

* Change where server.Close() occurs in main

* Change to 1.21 to remove x dependency

* Add slog

* Update references to 1.21

* Begin change of LogAttrs to standard logging interface

* Change the rest of LogAttrs to default

* Fix bad log

* Update badger.go

Changing "data" to "key" or "id" here might be more appropriate.

* Update badger.go

Changing "data" to "key" or "id" here might be more appropriate.

* Update server.go

Not checking if err is equal to nil

* Update server.go

printing information for ID or error is missing.

* Change references of err.Error() to err in slog

* Remove missed removal of Error() references for logging

---------

Co-authored-by: Derek Duncan <dduncan@atlassian.com>
Co-authored-by: Derek Duncan <derekduncan@gmail.com>
Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com>
Co-authored-by: werbenhu <werben@qq.com>
2023-09-06 15:21:04 +01:00
JB
ae3f72f677 migrate imports, copyrights, etc (#270) 2023-07-31 13:26:26 +01:00
mochi-co
8a04648c09 Cleanup godoc formatting 2022-12-11 21:38:01 +00:00
mochi-co
74ed8cd046 Update go mod and imports to v2 2022-12-11 11:50:44 +00:00
mochi-co
898c90d4ca Rewrite everything from scratch for mqtt v5 2022-12-10 21:49:32 +00:00
mochi
e4f02919fd Update code to use new NewServer function instead of deprecated New 2022-03-31 16:49:27 +01:00
Mochi
073d825632 Update README, better command main 2020-02-09 14:03:43 +00:00
Mochi
e96ef0170d Code and Comments cleanup, vendor deps 2020-02-08 13:24:31 +00:00
Mochi
79d1ee392b Progress on persistence 2020-01-15 21:32:40 +00:00
Mochi
5073246818 Adds TLS/SSL 2020-01-04 22:02:39 +00:00
Mochi
0eaa111383 Don't receive $SYS retained on # 2020-01-03 15:49:52 +00:00
Mochi
be4240b371 Http Sys Stats listener 2019-12-31 16:33:50 +00:00
Mochi
b6184987e8 Restructures code 2019-12-31 15:02:16 +00:00
Mochi
ebf7fe580c Cleanup TCP Listener 2019-12-08 11:40:51 +00:00
Mochi
e7970d9a5d LWT and Validate packet 2019-12-03 20:44:01 +00:00
Mochi
7fa7fffc89 bytes buffer to pool 2019-12-01 21:44:05 +00:00
Mochi
fec72b03fc Rebuilding 2019-11-23 20:01:40 +00:00
Mochi
2fadf08246 All working 2019-10-08 20:42:26 +01:00
Mochi
4f1859a4ed server cmd 2019-10-07 23:34:49 +01:00