scope

package
v0.0.0-...-e9d226e Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastExport

func CastExport[T any](e Export, def T) T

Types

type Export

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

func (Export) Float64

func (e Export) Float64() float64

func (Export) Int

func (e Export) Int() int

func (Export) Int64

func (e Export) Int64() int64

func (Export) String

func (e Export) String() string

type Scope

type Scope struct {
	// This always links to the current integration
	Integration *types.IntegrationConfig
	// contains filtered or unexported fields
}

func (*Scope) Export

func (s *Scope) Export(k string, value any)

func (*Scope) GetExported

func (s *Scope) GetExported(k string) (Export, error)

Returns an exported value from the scope

Note that all keys must be of the format <integration>.<key> (e.g. ping.response_time)

Jump to

Keyboard shortcuts

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