Brian Picciano
14de888300
mnet: use ListenerOpts pattern
2019-03-01 14:06:25 -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
f783b62f6f
mtest: implement NewCtx and Run, and use them in mnet and mhttp's tests
2019-02-02 20:58:18 -05:00
Brian Picciano
526639041b
mnet: make sure listen-addr param's usage starts with uppercase
2019-02-02 19:55:42 -05:00
Brian Picciano
20c6f95091
mlog: refactor to use Clone/Set instead of With pattern, implement CtxSetAll
2019-01-30 16:06:24 -05:00
Brian Picciano
a0a531cdd2
mnet: add MListener.CloseOnStop, to allow for http.Server.Shutdown (and other entities) closing the listener instead
2019-01-24 19:19:57 -05:00
Brian Picciano
bd4d7fc9e3
mnet: export MListener and add some debug logging
2019-01-24 16:54:38 -05:00
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
2019-01-14 23:58:55 -05:00
Brian Picciano
fe07e1cfdc
mnet: better logging for MListen
2019-01-12 21:01:16 -05:00
Brian Picciano
0fb0cb92a0
mnet: ListenerOnStart -> MListen, and have it close on mrun.Stop
2019-01-12 20:11:22 -05:00
Brian Picciano
8a8cebd127
mnet: implement ListenerOnStart
2019-01-11 17:47:30 -05:00
Brian Picciano
dcf9f73bcb
mnet: implement IsReservedIP
2018-08-09 12:34:09 -06:00