Commit Graph

18 Commits

Author SHA1 Message Date
Brian Picciano
e91ef01857 m: refactor to use new Component stuff, and make the log logic a bit better 2019-06-17 17:56:14 -04:00
Brian Picciano
f4ad383c4a m: have log level depend on the kind of Context is being used (process or service) 2019-04-06 16:30:55 -04:00
Brian Picciano
b35b44eb22 mcfg: implement WithCLISubCommand 2019-04-04 16:25:02 -04:00
Brian Picciano
a596306d9e mcfg: made SourceCLI and SourceEnv be pointers 2019-04-04 10:57:37 -04:00
Brian Picciano
7752b569c3 m: add ProcessContext and rework where configuration comes from a bit 2019-04-02 23:35:45 -04:00
Brian Picciano
2343bda42a m: add log message in Start once the start hooks have finished 2019-03-03 15:35:49 -05:00
Brian Picciano
4536db8968 merr: refactor Wrap/WrapSkip/New to take multiple contexts rather than annotations 2019-02-27 13:05:51 -05:00
Brian Picciano
dc57aadb54 m: don't log before populating params 2019-02-24 17:25:53 -05:00
Brian Picciano
dd7bc43cf8 m: rename Start to StartWaitStop, Start is a different function which only populates config and runs start hooks 2019-02-24 17:23:38 -05:00
Brian Picciano
e1e52db208 refactor everything to use context's annotation system, making some significant changes to annotations themselves along the way 2019-02-24 15:36:07 -05:00
Brian Picciano
4b446a0efc mctx: refactor so that contexts no longer carry mutable data
This change required refactoring nearly every package in this project,
but it does a lot to simplify mctx and make other code using it easier
to think about.

Other code, such as mlog and mcfg, had to be slightly modified for this
change to work as well.
2019-02-07 19:42:12 -05:00
Brian Picciano
6adfbdbcfb m: implement NewServiceCtx, use it in totp-proxy 2019-02-02 19:27:28 -05:00
Brian Picciano
a00a268256 m: implement Run function, which glues together mcfg.Populate, mrun.Start, and mrun.Stop 2019-01-24 22:04:58 -05:00
Brian Picciano
e349d0fbd8 mctx: moved ctx code from m and kept fleshing it out, trying to figure out how to incorporate Logger 2018-10-28 19:34:26 -04:00
Brian Picciano
6c055d0255 m: WIP on moving the child logic out of mcfg.Cfg and into contexts 2018-10-28 15:59:49 -04:00
Brian Picciano
7f0b8056d7 m: add CfgSource and use it in all current cmds 2018-08-13 21:09:20 -04:00
Brian Picciano
0a96d5c61e m: add TODO to figure out wtf to do about m.Log 2018-07-19 19:37:05 +00:00
Brian Picciano
5adbae953b m: implement Log, have mdb.PubSub and mhttp.CfgServer use it, though I'm still not quite happy with it yet 2018-05-28 08:00:31 +00:00