217
// GetMethodMetadata gets metadata for a given API method in one of the services exported by
218
// frontend (WorkflowService, OperatorService, AdminService).
219
>
func GetMethodMetadata(fullApiName string) MethodMetadata {
metadata.go
220
>
switch {
221
>
case strings.HasPrefix(fullApiName, WorkflowServicePrefix):
222
>
return workflowServiceMetadata[MethodName(fullApiName)]
223
case strings.HasPrefix(fullApiName, OperatorServicePrefix):
224
return operatorServiceMetadata[MethodName(fullApiName)]