debug - ActiveState ActiveGo 1.8
...

Package debug

import "github.com/micro/go-micro/server/debug"
Overview
Index
Subdirectories

Overview ▾

Index ▾

Package files

debug.go

type DebugHandler

The debug handler represents an internal server handler used to determine health, status and env info about a service node. It's akin to Google's /statusz, /healthz, and /varz

type DebugHandler interface {
    Health(ctx context.Context, req *proto.HealthRequest, rsp *proto.HealthResponse) error
    Stats(ctx context.Context, req *proto.StatsRequest, rsp *proto.StatsResponse) error
}
var (
    DefaultDebugHandler DebugHandler = newDebug()
)

Subdirectories

Name Synopsis
..
proto Package debug is a generated protocol buffer package.