tracert

package
v0.0.0-...-cf623d3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEventListener

func AddEventListener(l func(*Event)) interface{ RemoveEventListener() }

func BuildFuncName

func BuildFuncName(pkg, receiver, name string)

func ParseFuncName

func ParseFuncName(funcName string) (pkg, receiver, name string)

Types

type Event

type Event struct {
	Type    EventType
	Context workflow.Context

	// Fully qualified, only non-empty when Type is EventFuncCall.
	FuncName string
	// Number of frames to skip inside the event handler to get to where the event
	// occured (e.g. when using runtime.Caller).
	CallerSkip int
}

type EventType

type EventType int
const (
	EventUnknown EventType = iota
	EventFuncCall
	EventNewGoroutine
	EventMapIteration
	EventChannelSend
	EventChannelReceive
	EventSelect
)

type FuncName

type FuncName string

func (FuncName) Split

func (f FuncName) Split() (pkg, receiver, name string)

Jump to

Keyboard shortcuts

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