trace

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TraceManager added in v0.0.9

type TraceManager struct {
	// contains filtered or unexported fields
}

TraceManager manages trace information

func New

func New(sender types.MessageSender, opts ...TraceManagerOption) *TraceManager

New creates a new TraceManager with options

func (*TraceManager) Done added in v0.0.9

func (t *TraceManager) Done() <-chan struct{}

Done returns a channel that's closed when tracing is done

func (*TraceManager) GetNodes added in v0.0.9

func (t *TraceManager) GetNodes() []types.Node

GetNodes returns a copy of the current nodes for testing

func (*TraceManager) Start added in v0.0.9

func (t *TraceManager) Start(ctx context.Context)

Start starts the trace manager

type TraceManagerOption added in v0.0.9

type TraceManagerOption func(*TraceManager)

TraceManagerOption defines a function type for configuring TraceManager

func WithIPProvider added in v0.0.9

func WithIPProvider(provider ipinfo.Provider) TraceManagerOption

WithIPProvider sets the IP info provider

func WithOutputWriter added in v0.0.9

func WithOutputWriter(writer interfaces.OutputWriter) TraceManagerOption

WithOutputWriter sets the output writer

Jump to

Keyboard shortcuts

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