Routemaster Client v0.3.0 Routemaster.Topic View Source

Utility functions to validate topic names.

Link to this section Summary

Functions

Checks if a string is a valid topic name. Returns a boolean

Validates a topic name, raises a Routemaster.Topic.InvalidNameError exception if invalid

Link to this section Functions

Link to this function valid_name?(name) View Source
valid_name?(binary()) :: boolean()

Checks if a string is a valid topic name. Returns a boolean.

Link to this function validate_name!(name) View Source
validate_name!(binary()) :: nil

Validates a topic name, raises a Routemaster.Topic.InvalidNameError exception if invalid.