Documentation ¶
Index ¶
- Constants
- Variables
- func ContentType(att io.Reader, mt string) int
- func Exists(path string) bool
- 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 )
Model for existing chat sessions
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.