helpers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: GPL-3.0 Imports: 7 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
)

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 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