move internal packages to pkg folder and update reverse proxy

* set automatic https error type for cert-magic failures
* add state to onload and unload methods
* update reverse proxy to use Provision() and Cleanup()
This commit is contained in:
dev
2019-05-14 10:35:41 -04:00
parent fec7fa8bfd
commit 043eb1d9e5
12 changed files with 65 additions and 24 deletions

View File

@ -39,6 +39,7 @@ func NewContext(ctx Context) (Context, context.CancelFunc) {
c, cancel := context.WithCancel(ctx.Context)
wrappedCancel := func() {
cancel()
for modName, modInstances := range newCtx.moduleInstances {
for _, inst := range modInstances {
if cu, ok := inst.(CleanerUpper); ok {