MCPcopy Index your code
hub / github.com/coder/coder / watchTemplateChannel

Function watchTemplateChannel

coderd/templateversions.go:2022–2024  ·  view source on GitHub ↗
(id uuid.UUID)

Source from the content-addressed store, hash-verified

2020}
2021
2022func watchTemplateChannel(id uuid.UUID) string {
2023 return fmt.Sprintf("template:%s", id)
2024}
2025
2026func (api *API) publishTemplateUpdate(ctx context.Context, templateID uuid.UUID) {
2027 err := api.Pubsub.Publish(watchTemplateChannel(templateID), []byte{})

Callers 2

watchWorkspaceMethod · 0.85
publishTemplateUpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected