Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/capabilities/v2/protoc/pkg/templates/server.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ const {{.GoName}}ID = "{{CapabilityId $service}}"

func (c *{{.GoName|LowerFirst}}Capability) RegisterTrigger(ctx context.Context, request capabilities.TriggerRegistrationRequest) (<-chan capabilities.TriggerResponse, error) {
{{- if $hasTriggers }}
ctx = request.Metadata.ContextWithCRE(ctx)
switch request.Method {
{{- range .Methods}}
{{- if (isTrigger .) }}
Expand All @@ -153,6 +154,7 @@ func (c *{{.GoName|LowerFirst}}Capability) RegisterTrigger(ctx context.Context,

func (c *{{.GoName|LowerFirst}}Capability) UnregisterTrigger(ctx context.Context, request capabilities.TriggerRegistrationRequest) error {
{{- if $hasTriggers }}
ctx = request.Metadata.ContextWithCRE(ctx)
switch request.Method {
{{- range .Methods}}
{{- if (isTrigger .) }}
Expand Down Expand Up @@ -201,6 +203,7 @@ func (c *{{.GoName|LowerFirst}}Capability) UnregisterFromWorkflow(ctx context.Co
func (c *{{.GoName|LowerFirst}}Capability) Execute(ctx context.Context, request capabilities.CapabilityRequest) (capabilities.CapabilityResponse, error) {
{{- if $hasActions }}
response := capabilities.CapabilityResponse{}
ctx = request.Metadata.ContextWithCRE(ctx)
switch request.Method {
{{- range .Methods}}
{{- if not (isTrigger .) }}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading