Documentation ¶
Index ¶
- Variables
- func ContextWithPID(ctx context.Context, pid int32) context.Context
- func PIDFromContext(ctx context.Context) (int32, bool)
- func SendHTTPGetRequest(ctx context.Context, httpClient HTTPClient, req *http.Request) ([]byte, error)
- type Collector
- type CollectorCollection
- type Collectors
- type HTTPClient
- type Labels
- type MetadataContainer
- type MetadataLabels
- type MetadataOption
- func WithAllowEmptyValues(enabled bool) MetadataOption
- func WithConcurrencySupport() MetadataOption
- func WithMetadata(md MetadataContainer) MetadataOption
- func WithPrefix(prefix string) MetadataOption
- func WithSegmentSeparator(separator string) MetadataOption
- func WithStoreAtSegment(store bool) MetadataOption
- func WithUniqueKeys(enabled bool) MetadataOption
- func WithUniqueValues(enabled bool) MetadataOption
- type SlicedLabel
Constants ¶
This section is empty.
Variables ¶
View Source
var PIDNotFoundError = errors.New("pid is not found in context")
Functions ¶
func SendHTTPGetRequest ¶
Types ¶
type Collector ¶
type Collector interface {
GetMetadata(ctx context.Context) (MetadataContainer, error)
}
type CollectorCollection ¶
type CollectorCollection interface { Collector Add(Collector) List() Collectors Clear() }
func NewCollectorCollection ¶
func NewCollectorCollection() CollectorCollection
type Collectors ¶
type Collectors []Collector
type Labels ¶
type MetadataContainer ¶
type MetadataContainer interface { MetadataLabels }
func New ¶
func New(opts ...MetadataOption) MetadataContainer
type MetadataLabels ¶
type MetadataLabels interface { GetLabels() Labels GetLabelsSlice() []SlicedLabel AddLabel(name string, value ...string) MetadataContainer AddLabels(Labels) MetadataContainer Segment(name string, opts ...MetadataOption) MetadataContainer }
type MetadataOption ¶
type MetadataOption func(*metadata)
func WithAllowEmptyValues ¶
func WithAllowEmptyValues(enabled bool) MetadataOption
func WithConcurrencySupport ¶
func WithConcurrencySupport() MetadataOption
func WithMetadata ¶
func WithMetadata(md MetadataContainer) MetadataOption
func WithPrefix ¶
func WithPrefix(prefix string) MetadataOption
func WithSegmentSeparator ¶
func WithSegmentSeparator(separator string) MetadataOption
func WithStoreAtSegment ¶
func WithStoreAtSegment(store bool) MetadataOption
func WithUniqueKeys ¶
func WithUniqueKeys(enabled bool) MetadataOption
func WithUniqueValues ¶
func WithUniqueValues(enabled bool) MetadataOption
type SlicedLabel ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.