Documentation ¶
Index ¶
- func FileExists(filename string) bool
- func NewHonoUserName(deviceAuthID, hubTenantID string) string
- func NormalizeTopic(topic string) string
- func ParseCmdTopic(topic string) (string, string, string)
- func ParseTimeout(timeout string) time.Duration
- func ReplacePattern(pattern string, cert tls.Certificate) (string, error)
- func ResponseStatusTopic(inboxTopic string, status int) string
- func SetupProvisioningWatcher(path string) (*fsnotify.Watcher, error)
- func ValidPath(filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
FileExists returns if the file with provided name exists.
func NewHonoUserName ¶
NewHonoUserName returns the Hono connection user name.
func NormalizeTopic ¶
NormalizeTopic convert command topics to long form
func ParseCmdTopic ¶
ParseCmdTopic parses a MQTT message topic.
func ParseTimeout ¶
ParseTimeout converts timeout from string to time.Duration.
func ReplacePattern ¶
func ReplacePattern(pattern string, cert tls.Certificate) (string, error)
ReplacePattern resolves a pettern using the provided certificate data.
func ResponseStatusTopic ¶
ResponseStatusTopic builds the response status topic, e.g. for a received inbox topic "command///req/${req-id}/response" the reply should be "command///res/${req-id}/${status}".
func SetupProvisioningWatcher ¶
SetupProvisioningWatcher creates a file watcher for the provided path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.