helpers

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: GPL-3.0 Imports: 9 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
	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 ContentType

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

func Exists

func Exists(path string) bool

func HexToUUID added in v0.9.9

func HexToUUID(id string) string

HexToUUID returns a valid uuid string

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