MCPcopy Create free account
hub / github.com/compozy/agh / validateNetworkChannel

Method validateNetworkChannel

internal/task/manager.go:3636–3649  ·  view source on GitHub ↗
(path string, channel string)

Source from the content-addressed store, hash-verified

3634}
3635
3636func (m *Service) validateNetworkChannel(path string, channel string) error {
3637 if m == nil || m.channelValidator == nil {
3638 return nil
3639 }
3640
3641 trimmed := strings.TrimSpace(channel)
3642 if trimmed == "" {
3643 return nil
3644 }
3645 if err := m.channelValidator(trimmed); err != nil {
3646 return fmt.Errorf("%w: %s: %w", ErrValidation, path, err)
3647 }
3648 return nil
3649}
3650
3651func (m *Service) validateRunChannelUsable(
3652 ctx context.Context,

Callers 5

CreateTaskMethod · 0.95
UpdateTaskMethod · 0.95
executeTaskBoundaryMethod · 0.95
EnqueueRunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected