trace

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 12 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
}

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 the done channel

func (*TraceManager) GetNodes added in v0.0.9

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

GetNodes returns a copy of the current nodes

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 WithConfig added in v0.1.5

func WithConfig(cfg *config.Config) TraceManagerOption

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