provider

package
v1.0.0-beta.32 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Module returns fx module for initialization of event wrapper provider.

The module is only loaded once.

Types

type EventWrapperProvider

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

EventWrapperProvider represents an event wrapper provider that adds extra information and New Relic segment.

func NewEventWrapperProvider

func NewEventWrapperProvider(events repository.Event) *EventWrapperProvider

NewEventWrapperProvider creates a new event wrapper provider.

func (*EventWrapperProvider) Publish

func (e *EventWrapperProvider) Publish(ctx context.Context, events []*v2.Event) error

Publish publishes the events slice with extra information and New Relic segmentation.

Jump to

Keyboard shortcuts

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