demux

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasAttribute

func HasAttribute(e map[string]any, name string) bool

func NewHandler

func NewHandler(cfg *Cfg) any

func StringAttributeMatches

func StringAttributeMatches(e map[string]any, name string, value string) bool

func StringAttributeValue

func StringAttributeValue(e map[string]any, name string) *string

Types

type Cfg

type Cfg struct {
	Factories []Factory
	Handlers  []any
}

type EventContext

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

type Factory

type Factory func(ctx *EventContext) any

Jump to

Keyboard shortcuts

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