lotus/lib/evtsm/ctx.go

17 lines
255 B
Go
Raw Normal View History

2020-01-06 21:01:49 +00:00
package evtsm
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)
}