1
0
Fork 0
Commit Graph

202 Commits (main)
 

Author SHA1 Message Date
Brian Picciano 05a69589bc mcfg: use merr for returned errors, and make help output prioritize required params towards the top 5 years ago
Brian Picciano ef2e76de45 mhttp: implement MListenAndServe, using new mctx/mrun/mcfg framework 5 years ago
Brian Picciano a0a531cdd2 mnet: add MListener.CloseOnStop, to allow for http.Server.Shutdown (and other entities) closing the listener instead 5 years ago
Brian Picciano 5f864c44f2 mrun: make Thread's callback not take in a context, it doesn't really help anything 5 years ago
Brian Picciano bd4d7fc9e3 mnet: export MListener and add some debug logging 5 years ago
Brian Picciano 405120513f merr: move With/GetValue to kv.go, make nil error behavior be explicitly defined and tested 5 years ago
Brian Picciano 0e80e1fd3d mlog: remove ErrKV/ErrWithKV, merr.KV/merr.WithValue are used instead 5 years ago
Brian Picciano 56f3e71acd merr: initial implementation, designed to replace merry and work nicely with mlog, while allowing support for multi-errors and other niceties in the future 5 years ago
Brian Picciano 33a10a4ac7 mlog: make the map returned from a KVer be read-only and allowed to be nil 5 years ago
Brian Picciano 1562c4e8f6 mlog: redefine KVer to return a map[string]interface, not a KV, to allow other packages to implement KVer without importing mlog 5 years ago
Brian Picciano fe07e1cfdc mnet: better logging for MListen 5 years ago
Brian Picciano 57db101c02 mlog: add Logger.WithKV, slightly change Message type to support it 5 years ago
Brian Picciano 448008cb7c mrun: move Hook code into hook.go 5 years ago
Brian Picciano 0fb0cb92a0 mnet: ListenerOnStart -> MListen, and have it close on mrun.Stop 5 years ago
Brian Picciano 0ef6997f40 mlog: fix bug which caused the DefaultHandler to not ever call Flush 5 years ago
Brian Picciano ee77656f39 mrun: rename functions and add another trigger function which will run hooks in reverse, for use in OnStop 5 years ago
Brian Picciano 8a8cebd127 mnet: implement ListenerOnStart 5 years ago
Brian Picciano 96db88b7d0 mcfg: allow Source param to Populate to be nil 5 years ago
Brian Picciano 57c400a151 mrun: update docs a bit 5 years ago
Brian Picciano 48bb21668a mrun: implement rudimentary event system built on top of mctx 5 years ago
Brian Picciano 92ecb09707 mctx: make GetSetMutableValue lock on the key itself, not the entire map, to allow more throughput when being used on multiple keys at once 5 years ago
Brian Picciano 6e8338a5f8 mcfg: refactor to remove Child and Hook stuff, and use mctx instead 5 years ago
Brian Picciano 57bd022093 mrun: implement Thread and Wait 6 years ago
Brian Picciano 2f647017b9 mlog: add CtxSet and From functions 6 years ago
Brian Picciano 2e269bb6e7 mlog: refactor to use a Stringer for Message.Description 6 years ago
Brian Picciano b5c676b5c8 mlog: complete refactor again, eliminating the go-routine, which allowed a lot of other things to fall into place nicely 6 years ago
Brian Picciano 47061cec4e mctx: add Root function, and update some docs 6 years ago
Brian Picciano cb65787f37 mctx: GetSetMutableValue. Not sure if I'm really going to use this or not 6 years ago
Brian Picciano e349d0fbd8 mctx: moved ctx code from m and kept fleshing it out, trying to figure out how to incorporate Logger 6 years ago
Brian Picciano 6c055d0255 m: WIP on moving the child logic out of mcfg.Cfg and into contexts 6 years ago
Brian Picciano 5c85969bc7 mlog: use a Clone and Set methods instead of With methods 6 years ago
Brian Picciano 910704ae67 massert: add Err and Errf functions 6 years ago
Brian Picciano d9480abb59 mlog: make stopping logic a little better 6 years ago
Brian Picciano 23045168cf massert: make most assertions handle the case of a reference type, like a map, being changed before Assert is called 6 years ago
Brian Picciano bc8f323514 mlog: use a waitgroup to flush the Logger on Stop 6 years ago
Brian Picciano c66f13927a mchk: implement failing test case minimization 6 years ago
Brian Picciano 4a842fbea1 mchk: remove typeName in params printing, it wasn't really helping 6 years ago
Brian Picciano 235e9a1850 massert: make Len error a bit more helpful 6 years ago
Brian Picciano 7f0b8056d7 m: add CfgSource and use it in all current cmds 6 years ago
Brian Picciano 132c51eaf0 mcfg: move Path out of ParamValue and into Param, which allows for shuffling around a whole bunch of code to make things make a bit more sense 6 years ago
Brian Picciano 3de30eb819 mcfg: centralize logic for fuzzy parsing strings, use it to implement SourceMap 6 years ago
Brian Picciano 8ff2abf02c mcfg: implement Sources 6 years ago
Brian Picciano be17ee942a mcfg: simplify populateParams 6 years ago
Brian Picciano 2e9790451f mcfg: implement SourceEnv, and move a bunch of code it shares with SourceCLI to source(_test).go 6 years ago
Brian Picciano 526e35cf3f mrand: fix bug in Hex with it not outputting correct number of characters for odd number inputs 6 years ago
Brian Picciano 8084268bbf mcfg: shuffle some code around so there's a common way of retrieving all ParamValues out of a Cfg 6 years ago
Brian Picciano 715b6c9491 mchk: move mtest.Checker to mtest/mchk, and refactor its types a little bit 6 years ago
Brian Picciano 1964add0ed mcfg: refactor cli test to use mtest.Checker 6 years ago
Brian Picciano 9ccc787066 mtest: refactor Run a bit 6 years ago
Brian Picciano c850ace8d2 mtest: add Terminate field to Action 6 years ago