xconsumer

package module
v0.125.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: Apache-2.0 Imports: 5 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumeProfilesFunc

type ConsumeProfilesFunc func(ctx context.Context, td pprofile.Profiles) error

ConsumeProfilesFunc is a helper function that is similar to ConsumeProfiles.

func (ConsumeProfilesFunc) ConsumeProfiles

func (f ConsumeProfilesFunc) ConsumeProfiles(ctx context.Context, td pprofile.Profiles) error

ConsumeProfiles calls f(ctx, td).

type Profiles

type Profiles interface {
	internal.BaseConsumer
	// ConsumeProfiles processes the profiles. After the function returns, the profiles are no longer accessible,
	// and accessing them is considered undefined behavior.
	ConsumeProfiles(ctx context.Context, td pprofile.Profiles) error
}

Profiles is an interface that receives pprofile.Profiles, processes it as needed, and sends it to the next processing node if any or to the destination.

func NewProfiles

func NewProfiles(consume ConsumeProfilesFunc, options ...consumer.Option) (Profiles, error)

NewProfiles returns a Profiles configured with the provided options.

Jump to

Keyboard shortcuts

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