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 Permission(c *fiber.Ctx, perm int16) bool
- func RemoteId(lvl uint) (string, error)
- type AppToken
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 FilePath = "env/"
View Source
var Testing = false
Functions ¶
func GenerateToken ¶
func Permission ¶
Permission checks if the user has the required permission level
Types ¶
Click to show internal directories.
Click to hide internal directories.