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
Click to show internal directories.
Click to hide internal directories.