feat(rpc) new RPC method accepts a map of string arrays (#12)

This commit is contained in:
Javier
2020-01-20 09:29:15 -05:00
committed by Hisham Muhammad
parent 479ed3f974
commit e266b887cc

View File

@@ -24,6 +24,18 @@ func (s *PluginServer) StepError(in StepErrorData, out *StepData) error {
}, out)
}
type StepMultiMapData struct {
EventId int
Data map[string][]string
}
func (s *PluginServer) StepMultiMap(in StepMultiMapData, out *StepData) error {
return s.Step(StepData{
EventId: in.EventId,
Data: in.Data,
}, out)
}
type StepCredentialData struct {
EventId int
Data client.AuthenticatedCredential