-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlistener.go
More file actions
34 lines (24 loc) · 697 Bytes
/
Copy pathlistener.go
File metadata and controls
34 lines (24 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package gowfnet
import (
"context"
"github.com/andrskom/gowfnet/state"
)
type StubListener struct{}
func NewStubListener() *StubListener {
return &StubListener{}
}
func (l *StubListener) BeforeStart(ctx context.Context) error {
return nil
}
func (l *StubListener) AfterStart(ctx context.Context) {}
func (l *StubListener) BeforeTransition(ctx context.Context, transitionID string, state StateOpInterface) error {
return nil
}
func (l *StubListener) AfterTransition(ctx context.Context, transitionID string, state StateOpInterface) {
}
func (l *StubListener) HasStateListener() bool {
return false
}
func (l *StubListener) GetStateListener() state.ListenerInterface {
return nil
}