mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
15 lines
320 B
Go
15 lines
320 B
Go
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) {
|
|
s.Handle(s.NewHandler(&Debug{s.Options().DebugHandler}, InternalHandler(true)))
|
|
}
|