debuginfo

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultServerURL   = "https://debuginfod.elfutils.org"
	DefaultTimeout     = 30 * time.Second
	DefaultRetries     = 3
	DefaultMaxFileSize = 2 * 1024 * 1024 * 1024 // 2GB
)

Variables

This section is empty.

Functions

func ApplyDebugInfo added in v0.5.0

func ApplyDebugInfo(bin *binary.ELFBinary, r io.ReaderAt, logger *slog.Logger) error

func DefaultCacheDir

func DefaultCacheDir() (string, error)

Types

type Client

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

func NewClient

func NewClient(opts Options) (*Client, error)

func (*Client) FetchDebugInfo

func (c *Client) FetchDebugInfo(ctx context.Context, buildID string) (string, error)

type Options

type Options struct {
	ServerURLs  []string
	CacheDir    string
	Timeout     time.Duration
	MaxRetries  int
	MaxFileSize int64
	Logger      *slog.Logger
}

Jump to

Keyboard shortcuts

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