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

Function validateNetworkMessageKind

internal/store/types.go:1802–1814  ·  view source on GitHub ↗
(kind string)

Source from the content-addressed store, hash-verified

1800}
1801
1802func validateNetworkMessageKind(kind string) error {
1803 switch strings.TrimSpace(kind) {
1804 case NetworkKindGreet,
1805 NetworkKindWhois,
1806 NetworkKindSay,
1807 NetworkKindCapability,
1808 NetworkKindReceipt,
1809 NetworkKindTrace:
1810 return nil
1811 default:
1812 return fmt.Errorf("store: unsupported network message kind %q", kind)
1813 }
1814}
1815
1816func validateNetworkWorkState(state string) error {
1817 switch strings.TrimSpace(state) {

Callers 3

ValidateMethod · 0.85
ValidateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected