k8s migration: add handler for multi proxy to forward (#164)

add global postprocess and handler for multi proxy to forward
This commit is contained in:
Chris O'Haver 2019-05-13 16:23:53 -04:00 committed by GitHub
parent 709b136563
commit d7f87ddf2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 129 additions and 15 deletions

View file

@ -25,7 +25,7 @@ type Option struct {
Args []string
}
func New(s string) (Corefile, error) {
func New(s string) (*Corefile, error) {
c := Corefile{}
cc := caddy.NewTestController("migration", s)
depth := 0
@ -63,7 +63,7 @@ func New(s string) (Corefile, error) {
})
}
}
return c, nil
return &c, nil
}
func (c *Corefile) ToString() (out string) {