Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateToken(tkLength int32) string
- func Hash(str string) []byte
- func HashString(str string) string
- func IsExpired(c *fiber.Ctx) bool
- func Node64(id int64) string
- func NodeTo64(id string) int64
- func PrintIfTesting(v ...any)
- func TimestampToken(time int64) (string, error)
- func VerifyTimestampToken(timestampToken string) (int64, bool)
Constants ¶
View Source
const ConversationIDLength = 12
Conversations
View Source
const ConversationTokenIDLength = 12
Conversation tokens
View Source
const ConversationTokenLength = 32
View Source
const MailboxTokenLength = 64
Mailbox
View Source
const MaxConversationDataLength = 10_000 // Not sure about this number yet, but should be good for now
View Source
const MaxConversationMembers = 100
View Source
const MaxConversationTokenDataLength = 2_000 // Not sure about this number yet, but should be good for now
View Source
const StatusError = 2
View Source
const StatusOffline = 1
View Source
const StatusOnline = 0
Variables ¶
View Source
var OwnPath = ""
The domain of the chat server
Functions ¶
func GenerateToken ¶
func PrintIfTesting ¶
func PrintIfTesting(v ...any)
func TimestampToken ¶
func VerifyTimestampToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.