Event convenience methods

This commit is contained in:
Ian Gulliver
2023-06-12 20:54:46 -07:00
parent 1507f36ec4
commit b0f374468c

View File

@@ -6,6 +6,14 @@ import (
"github.com/gopatchy/event"
)
func (api *API) EventClient() *event.Client {
return api.eventClient
}
func (api *API) Log(ctx context.Context, vals ...any) {
api.eventClient.Log(ctx, vals...)
}
func (api *API) SetEventData(ctx context.Context, vals ...any) {
ev := ctx.Value(ContextEvent)