Documentation ¶
Index ¶
- Constants
- Variables
- func ContentType(att io.Reader, mt string) int
- func Exists(path string) bool
- func HexToUUID(id string) string
- func HumanizeTimestamp(ts uint64) string
- func MembersDiffAndUnion(aa, bb string) ([]string, string)
- func MimeTypeToContentType(mt string) int
- func RandomString(length int) string
- func SetupLogging() error
Constants ¶
View Source
const ( ContentTypeMessage int = iota ContentTypeDocuments ContentTypePictures ContentTypeMusic ContentTypeContacts ContentTypeVideos ContentTypeLinks )
Variables ¶
View Source
var ( MsgFlagGroupNew = 1 MsgFlagGroupUpdate = 2 MsgFlagGroupLeave = 4 MsgFlagResetSession = 8 MsgFlagSetTimer = 9 MsgFlagSticker = 10 MsgFlagContact = 11 MsgFlagExpirationTimerUpdate = 12 MsgFlagReaction = 13 MsgFlagQuote = 14 MsgFlagHiddenQuote = 15 MsgFlagChatCreated = 16 MsgFlagGroupV2Change = 17 MsgFlagProfileKeyUpdated = 18 MsgFlagVoiceNote = 19 MsgFlagGroupJoined = 20 )
Model for existing chat sessions
View Source
var ErrNoRows = fmt.Errorf("no rows in result set")
Functions ¶
func HumanizeTimestamp ¶
func MembersDiffAndUnion ¶
MembersDiffAndUnion returns a set diff and union of two contact sets represented as comma separated strings.
func MimeTypeToContentType ¶
func RandomString ¶ added in v0.8.8
func SetupLogging ¶
func SetupLogging() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.