element/proxy/start.go
Evan Hazlett a89aa40dda
proxy: start on api and caddy based proxy
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2017-07-29 22:54:43 -04:00

17 lines
211 B
Go

package proxy
import "github.com/mholt/caddy"
func (p *Proxy) Start() error {
p.m.Lock()
defer p.m.Unlock()
i, err := caddy.Start(p.config)
if err != nil {
return err
}
p.instance = i
return nil
}