mirror of
https://github.com/Kong/go-pluginserver.git
synced 2025-12-24 12:57:51 +08:00
feat(rpc) new RPC method accepts a map of string arrays (#12)
This commit is contained in:
12
steptypes.go
12
steptypes.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user