utils

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeFullJid added in v0.3.3

func ComposeFullJid(jid, resource string) string

ComposeFullJid puts together a jid from the given bare jid and resource

func DomainFromJid

func DomainFromJid(jid string) string

DomainFromJid returns the domain of a full or bare JID.

func RemoveResourceFromJid

func RemoveResourceFromJid(jid string) string

RemoveResourceFromJid returns the user@domain portion of a JID.

func ResourceFromJid added in v0.3.3

func ResourceFromJid(jid string) string

ResourceFromJid returns the resource portion of a JID.

func SplitJid added in v0.3.3

func SplitJid(jid string) (string, string)

SplitJid will return the clean JID and the resource as separate strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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