2016-01-06 19:24:54 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/micro/go-micro/server/debug"
|
|
|
|
)
|
|
|
|
|
|
|
|
// We use this to wrap any debug handlers so we preserve the signature Debug.{Method}
|
|
|
|
type Debug struct {
|
|
|
|
debug.DebugHandler
|
|
|
|
}
|
|
|
|
|
|
|
|
func registerDebugHandler(s Server) {
|
2016-01-08 14:02:32 +00:00
|
|
|
s.Handle(s.NewHandler(&Debug{s.Options().DebugHandler}, InternalHandler(true)))
|
2016-01-06 19:24:54 +00:00
|
|
|
}
|