Documentation ¶
Index ¶
- Variables
- func Go(fn Func, opts ...Option) <-chan error
- func ParentRoutineFromContext(ctx context.Context) string
- func RoutineFromContext(ctx context.Context) string
- func SenderFromContext(ctx context.Context) string
- type Channel
- type ChannelOption
- func ChannelWithBufferSize[T any](size int) ChannelOption[T]
- func ChannelWithCounterName[T any](name string) ChannelOption[T]
- func ChannelWithLogger[T any](logger *slog.Logger) ChannelOption[T]
- func ChannelWithMeter[T any](meter metric.Meter) ChannelOption[T]
- func ChannelWithTelemetryEnabled[T any](enabled bool) ChannelOption[T]
- func ChannelWithTracer[T any](tracer trace.Tracer) ChannelOption[T]
- func ChannelWithValueAttributeEnabled[T any](enabled bool) ChannelOption[T]
- func ChannelWithValueEventsEnabled[T any](enabled bool) ChannelOption[T]
- type Func
- type Option
- func ChannelWithHistogramName(name string) Option
- func WithContext(ctx context.Context) Option
- func WithCounterName(name string) Option
- func WithHistogramName(name string) Option
- func WithMeter(meter metric.Meter) Option
- func WithName(name string) Option
- func WithTelemetryEnabled(enabled bool) Option
- type Options
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChannelClosed = errors.New("channel is closed")
Functions ¶
func RoutineFromContext ¶
func SenderFromContext ¶
Types ¶
type Channel ¶
type Channel[T any] struct { // contains filtered or unexported fields }
func NewChannel ¶
type ChannelOption ¶
func ChannelWithBufferSize ¶
func ChannelWithCounterName ¶
func ChannelWithLogger ¶
func ChannelWithMeter ¶
func ChannelWithTracer ¶
type Option ¶
type Option func(*Options)
func WithContext ¶
func WithCounterName ¶
func WithHistogramName ¶
func WithTelemetryEnabled ¶
Click to show internal directories.
Click to hide internal directories.