lotus/lib/statemachine/context.go
2020-01-13 18:44:59 +01:00

17 lines
262 B
Go

package statemachine
import "context"
type Context struct {
ctx context.Context
send func(evt interface{}) error
}
func (ctx *Context) Context() context.Context {
return ctx.ctx
}
func (ctx *Context) Send(evt interface{}) error {
return ctx.send(evt)
}