utils

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSessionID

func GenerateSessionID() string

GenerateSessionID Generate a new random Hash

func HashMAC

func HashMAC(message, key []byte) string

HashMAC Calculates the MAC signing with the given key and returns the hexadecimal encoded Result

func IsChannelNameValid

func IsChannelNameValid(channelName string) bool

IsChannelNameValid Verify if the channel name is valid

func IsClientEvent added in v1.2.0

func IsClientEvent(event string) bool

IsClientEvent Verify if the event name represents a client event type

func IsPresenceChannel

func IsPresenceChannel(channelName string) bool

IsPresenceChannel Verify if the channel name represents a presence channel

func IsPrivateChannel

func IsPrivateChannel(channelName string) bool

IsPrivateChannel Verify if the channel name represents a private channel

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL