MCPcopy
hub / github.com/nats-io/nats.go / checkStreamName

Function checkStreamName

jsm.go:575–583  ·  view source on GitHub ↗
(stream string)

Source from the content-addressed store, hash-verified

573}
574
575func checkStreamName(stream string) error {
576 if stream == _EMPTY_ {
577 return ErrStreamNameRequired
578 }
579 if strings.ContainsAny(stream, ". ") {
580 return ErrInvalidStreamName
581 }
582 return nil
583}
584
585// Check that the consumer name is not empty and is valid (does not contain "." and " ").
586// Additional consumer name validation is done in nats-server.

Callers 12

upsertConsumerMethod · 0.85
DeleteConsumerMethod · 0.85
ConsumerInfoMethod · 0.85
NextMethod · 0.85
NextMethod · 0.85
AddStreamMethod · 0.85
StreamInfoMethod · 0.85
UpdateStreamMethod · 0.85
DeleteStreamMethod · 0.85
getMsgMethod · 0.85
deleteMsgMethod · 0.85
PurgeStreamMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected