handler

package
v2.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package handler implements service debug handler embedded in go-micro services

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debug

type Debug struct {
	// must honour the debug handler
	proto.DebugHandler
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(c client.Client) *Debug

NewHandler returns an instance of the Debug Handler

func (*Debug) Cache

func (d *Debug) Cache(ctx context.Context, req *proto.CacheRequest, rsp *proto.CacheResponse) error

Cache returns all the key value pairs in the client cache

func (*Debug) Health

func (d *Debug) Health(ctx context.Context, req *proto.HealthRequest, rsp *proto.HealthResponse) error

func (*Debug) Log

func (d *Debug) Log(ctx context.Context, stream server.Stream) error

func (*Debug) Stats

func (d *Debug) Stats(ctx context.Context, req *proto.StatsRequest, rsp *proto.StatsResponse) error

func (*Debug) Trace

func (d *Debug) Trace(ctx context.Context, req *proto.TraceRequest, rsp *proto.TraceResponse) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL