trace

package
v0.20.5 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package trace the handler for the `vine 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() []*regpb.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