140
//
141
// NOTE: Experimental
142
>
func ConvertLinkWorkflowEventToNexusLink(we *commonpb.Link_WorkflowEvent) nexus.Link {
link_converter.go
143
>
u := &url.URL{
144
>
Scheme: urlSchemeTemporalKey,
145
>
Path: fmt.Sprintf(urlPathWorkflowEventTemplate, we.GetNamespace(), we.GetWorkflowId(), we.GetRunId()),
146
>
RawPath: fmt.Sprintf(
147
>
urlPathWorkflowEventTemplate,
148
>
url.PathEscape(we.GetNamespace()),
149
>
url.PathEscape(we.GetWorkflowId()),
150
>
url.PathEscape(we.GetRunId()),
151
>
),
152
>
}
153
>
154
>
switch ref := we.GetReference().(type) {
155
case *commonpb.Link_WorkflowEvent_EventRef:
156
u.RawQuery = convertLinkWorkflowEventEventReferenceToURLQuery(ref.EventRef)