xconsumer

package module
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 16

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 receives pprofile.Profiles for consumption.
	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