channel

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

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

func New

func New(chanSize int) *Listener

func (*Listener) AfterStart

func (l *Listener) AfterStart(ctx context.Context)

func (*Listener) AfterTransition

func (l *Listener) AfterTransition(ctx context.Context, transitionID string, state gowfnet.StateOpInterface)

func (*Listener) BeforeStart

func (l *Listener) BeforeStart(ctx context.Context) error

func (*Listener) BeforeTransition

func (l *Listener) BeforeTransition(ctx context.Context, transitionID string, state gowfnet.StateOpInterface) error

func (*Listener) GetStateListener

func (l *Listener) GetStateListener() state.ListenerInterface

func (*Listener) HasStateListener

func (l *Listener) HasStateListener() bool

func (*Listener) ReadEvt

func (l *Listener) ReadEvt() string

type State

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

func NewState

func NewState(eventChan chan string) *State

func (*State) AfterMove

func (s *State) AfterMove(ctx context.Context, st state.OpInterface, from []string, to []string)

func (*State) BeforeMove

func (s *State) BeforeMove(ctx context.Context, st state.OpInterface, from []string, to []string) error

func (*State) OnError

func (s *State) OnError(st state.OpInterface)

func (*State) OnFinish

func (s *State) OnFinish(st state.OpInterface)

Jump to

Keyboard shortcuts

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