mirror of
				https://github.com/go-micro/go-micro.git
				synced 2025-10-30 23:27:41 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			368 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			368 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package grpc
 | |
| 
 | |
| import (
 | |
| 	"github.com/micro/go-micro/server"
 | |
| 	"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.Server) {
 | |
| 	s.Handle(s.NewHandler(&Debug{s.Options().DebugHandler}, server.InternalHandler(true)))
 | |
| }
 |