Documentation ¶
Overview ¶
Package name provides everything needed to create and validate a name.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Name ¶
type Name string
Name of a topic, or queue.
func MustNew ¶ added in v1.0.14
MustNew creates a new name. It should be in the format of the following example: "v1.meta.created" or "v1.meta.created.queue". It panics if the name is invalid.
func New ¶ added in v1.0.14
New creates a new name. It should be in the format of the following example: "v1.meta.created" or "v1.meta.created.queue".
func (Name) ToQueue ¶
ToQueue converts a Name to a Queue, adding the .queue suffix only if it's not already there.
Click to show internal directories.
Click to hide internal directories.