17 lines
255 B
Go
17 lines
255 B
Go
|
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)
|
||
|
}
|