helpers

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 ContentType

func ContentType(att io.Reader, mt string) int

func Exists

func Exists(path string) bool

func HumanizeTimestamp

func HumanizeTimestamp(ts uint64) string

func MembersDiffAndUnion

func MembersDiffAndUnion(aa, bb string) ([]string, string)

membersDiffAndUnion returns a set diff and union of two contact sets represented as comma separated strings.

func MimeTypeToContentType

func MimeTypeToContentType(mt string) int

func RandomString added in v0.8.8

func RandomString(length int) string

func SetupLogging

func SetupLogging() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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