file

package
v0.0.0-...-0d58064 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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 FileSource

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

FileSource collects goroutine dumps from files

func New

func New(patterns []string, follow bool, interval time.Duration) *FileSource

New creates a new file source

func (*FileSource) Collect

func (f *FileSource) Collect(ctx context.Context, snapshots chan<- *model.Snapshot) error

Collect starts collecting snapshots from files

func (*FileSource) Name

func (f *FileSource) Name() string

Name returns the name of this source

Jump to

Keyboard shortcuts

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