package caps import ( "context" abiv1 "git.dev.alexdunmow.com/block/pluginsdk/abi/v1" "git.dev.alexdunmow.com/block/pluginsdk/plugin" ) // emailStub implements plugin.EmailSender over the email.send capability call. // The interface takes no context; the call runs under the invoke deadline. type emailStub struct{ base } var _ plugin.EmailSender = (*emailStub)(nil) func (s *emailStub) Send(to, subject, body string) error { req := &abiv1.EmailSendRequest{To: to, Subject: subject, Body: body} return s.invoke(context.Background(), "send", req, &abiv1.EmailSendResponse{}) }