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

Function ValidateChannel

internal/network/validate.go:110–115  ·  view source on GitHub ↗

ValidateChannel reports whether the channel matches the RFC grammar.

(channel string)

Source from the content-addressed store, hash-verified

108
109// ValidateChannel reports whether the channel matches the RFC grammar.
110func ValidateChannel(channel string) error {
111 if !rules.ValidChannel(channel) {
112 return fmt.Errorf("%w: channel=%q", ErrInvalidField, channel)
113 }
114 return nil
115}
116
117// ValidateWorkspaceID reports whether the workspace identity can safely occupy
118// one NATS subject token and one protocol envelope field.

Callers 15

validateTaskChannelFlagFunction · 0.92
AgentChannelRecvMethod · 0.92
validateTaskChannelFunction · 0.92
normalizeNetworkChannelFunction · 0.92
nativeNetworkChannelFunction · 0.92
handleNetworkPeersMethod · 0.92
hostAPINetworkChannelFunction · 0.92
validateTaskChannelFunction · 0.92
ValidateMethod · 0.85
enforceBoundTaskChannelFunction · 0.85
BroadcastSubjectFunction · 0.85

Calls 1

ValidChannelFunction · 0.92

Tested by

no test coverage detected