events

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetadata added in v0.0.6

func GetMetadata[V any](key string) (V, bool)

GetMetadata retrieves the value for the specified metadata, and false if it doesn't exist or the type is wrong.

func RegisterMetadata

func RegisterMetadata(key string, value interface{})

RegisterMetadata adds or updates entries in the global event metadata. Other packages should call this during initialization to attach metadata that will be included with every event.

Types

type Client

type Client interface {
	Push(ctx context.Context, event string, extra ...interface{})
}

type Config

type Config struct {
	Endpoint string `` /* 162-byte string literal not displayed */

	ClientFn func(httpClient *http.Client) Client
}

func (*Config) Client

func (c *Config) Client(httpClient *http.Client) Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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