Brian Picciano
0b5bdf3dfb
Fix merr.Error.FullString
4 months ago
Brian Picciano
e8376ef263
Rename package name to code.betamike.com location
4 months ago
Brian Picciano
7c425e25cb
Fixes from golangci-lint
4 months ago
Brian Picciano
e2ac0ad45e
Add link to documentation
4 months ago
Brian Picciano
aac8b11a01
Add miter package
4 months ago
Brian Picciano
c76720dffa
Add nix flake for development
4 months ago
Brian Picciano
9567a98606
Move massert into internal, and simplify it a lot
...
The previous massert isn't that useful compared to testify, but it's
nice to have some assertion helpers in the repo which don't require a
sub-dependency.
4 months ago
Brian Picciano
7f1cf24293
Change LICENSE to WTFPL
4 months ago
Brian Picciano
47c8c5b850
mlog: Make default message handler human readable
...
The JSON message handler is left as a separate implementation, for any
that want to use it.
8 months ago
Brian Picciano
07f3889a70
mlog: MaxLevel method
2 years ago
Brian Picciano
ec5e2441c6
mlog: Add WithMaxLevel method
2 years ago
Brian Picciano
cbeee71cb1
Add FatalString method, make Fatal take an error
2 years ago
Brian Picciano
ba9bc6c46c
refactor mlog and merr to handle and format error messages better
3 years ago
Brian Picciano
360d41e2b8
Refactor merr, remove almost everything else
3 years ago
Brian P
3e2713a850
Get rid of mcmp, and lots of subsequent refactors
...
Getting rid of mcmp pretty much breaks this whole package, but this
commit makes a good start on fixing all the things worth keeping.
3 years ago
Brian Picciano
c20f884d68
mredis: fix how Block was being used, it wasn't being converted to an int properly
5 years ago
Brian Picciano
0b5b5aac00
mredis: check for pending messages during the init stage
5 years ago
Brian Picciano
4d859c6d02
mredis: implement Stream helper type
5 years ago
Brian Picciano
df01ccffcb
mrand: implement NewSyncRand and use that for DefaultRand, to make it thread-safe
5 years ago
Brian Picciano
0e64f16f03
mredis: initial implementation
5 years ago
Brian Picciano
d54954cd8e
mrun: use mcmp.SeriesGetElement to iterate through hooks, so that hooks which get added while the iteration is happening (e.g. from CLISubCommand) can still get hit
5 years ago
Brian Picciano
de56d14739
mcmp: implement SeriesGetElement
5 years ago
Brian Picciano
b2aa2f73bd
mnet: fix error handling during listen, to prevent a panic when a socket is taken
5 years ago
Brian Picciano
398d887514
mpubsub: refactor to use components
5 years ago
Brian Picciano
b0ee70e585
msql: refactor to use components
5 years ago
Brian Picciano
f5b0e8e577
mdb: refactor to use Components
5 years ago
Brian Picciano
ecafe2922a
mnet: fix some comments
5 years ago
Brian Picciano
4791c02122
mcfg: implement ParamDefaultOrRequired
5 years ago
Brian Picciano
481b3668c3
m: fix tests after having modified initializing logging
5 years ago
Brian Picciano
1a6b8e3166
mlog: clean up component code and add tests for it
5 years ago
Brian Picciano
752e266685
mcmp: make InheritedValue a function, not a method, and add Parent method to support it
5 years ago
Brian Picciano
6cd61c60f7
add root Dockerfile which will build all binaries
5 years ago
Brian Picciano
7a5ac9caa0
totp-proxy: refactor to use new Component logic
5 years ago
Brian Picciano
e91ef01857
m: refactor to use new Component stuff, and make the log logic a bit better
5 years ago
Brian Picciano
e741e79acf
mhttp: refactor to use Components
5 years ago
Brian Picciano
d0ba23ac7b
mnet: refactor to use Components
5 years ago
Brian Picciano
7eac20f58b
mlog: refactor From to include Component's Context implicitly
5 years ago
Brian Picciano
7f9b0d5591
mcmp: make thread-safe, add InheritedValue, refactor Context/Annotation related methods
5 years ago
Brian Picciano
dedf3a0368
mcmp: rename GetSeries* functions to just Series*
5 years ago
Brian Picciano
af836c1cab
mtest: refactor to use Component instead of Context
5 years ago
Brian Picciano
31ed0fe625
mrun: fix Threads after changes to mctx which got rid of children
5 years ago
Brian Picciano
8bd0664ba0
mlog: refactor to use Components instead of Contexts for storing Logger
5 years ago
Brian Picciano
467bcbe52d
mctx: refactor to no longer have parent/child logic
5 years ago
Brian Picciano
c98f154992
mrun: refactor hooks to use Components
5 years ago
Brian Picciano
dd2d601081
mcfg: refactor so as to use new mcmp.Component type, and use the option pattern to reduce number of arguments to parameters
5 years ago
Brian Picciano
a30edfb5f9
mcmp: initial implementation, intention is to use Component instead of Context for all component instantiation
5 years ago
Brian Picciano
e9b7f24dba
mcfg: update docs
5 years ago
Brian Picciano
60ea7d98eb
mrun: update docs
5 years ago
Brian Picciano
d5044ad7cb
mctx: add Annotated and polish documentation
5 years ago
Brian Picciano
a07df614d8
mcfg: make sure Populate never returns a nil context
5 years ago