experimental

package
v0.0.0-...-2105f0c Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EVENT_NOP = iota
	EVENT_PICKUP_START
	EVENT_PICKUP_STOP
	EVENT_DIAL_START
	EVENT_DIAL_STOP
	EVENT_RING_RECEIVE
	EVENT_DIAL_INC
)
View Source
const (
	STATE_IDLE = iota
	STATE_CALL
	STATE_DIAL
	STATE_RING
)
View Source
const (
	ASSIGNED_NUMBER = 7
)

Variables

This section is empty.

Functions

func WatchPins

func WatchPins(c chan Event)

Types

type Event

type Event int

func (Event) String

func (e Event) String() string

type State

type State int

func (*State) Handle

func (s *State) Handle()

function allowed to block until state changes is called asynchronously from event queue handler

func (State) String

func (s State) String() string

func (State) Transition

func (s State) Transition(e Event) State

Jump to

Keyboard shortcuts

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