handler

package
v2.10.1 Latest Latest
Warning

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

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

Documentation

Overview

Package handler is the handler for the `micro debug trace` service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trace

type Trace struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

trace is the Debug.trace handler

func New

func New(done <-chan bool, windowSize int, services func() []*registry.Service) (*Trace, error)

New initialises and returns a new trace service handler

func (*Trace) Read

func (s *Trace) Read(ctx context.Context, req *trace.ReadRequest, rsp *trace.ReadResponse) error

Read returns gets a snapshot of all current trace3

func (*Trace) Start

func (s *Trace) Start(done <-chan bool)

Start Starts scraping other services until the provided channel is closed

func (*Trace) Stream

Stream starts streaming trace

func (*Trace) Write

func (s *Trace) Write(ctx context.Context, req *trace.WriteRequest, rsp *trace.WriteResponse) error

Jump to

Keyboard shortcuts

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