signaling

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSignaling

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

func (*CSignaling) Connect

func (c *CSignaling) Connect(signal Signal, handle string, l Listener, data ...interface{})

func (*CSignaling) Disconnect

func (c *CSignaling) Disconnect(signal Signal, handle string)

func (*CSignaling) Emit

func (c *CSignaling) Emit(signal Signal, tag string, argv ...interface{}) (stopped bool)

func (*CSignaling) InitSignaling

func (c *CSignaling) InitSignaling()

type EmitterSupport

type EmitterSupport interface {
	Emit(signal Signal, tag string, argv ...interface{}) (stopped bool)
}

type Listener

type Listener func(signal Signal, tag string, data []interface{}, argv []interface{}) (stop bool)

type Signal

type Signal string
const (
	SignalServePage Signal = "serve-page"
	SignalServePath Signal = "serve-path"
)

type SignalSupport added in v0.5.0

type SignalSupport interface {
	Connect(signal Signal, handle string, l Listener, data ...interface{})
	Disconnect(signal Signal, handle string)
}

type Signaling added in v0.5.0

type Signaling interface {
	SignalSupport
	EmitterSupport
}

Jump to

Keyboard shortcuts

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