Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeBase64(encoding *base64.Encoding, data string) []byte
- func EncodeBase64(data []byte) string
- func GenerateUUID() string
- func GetServerTime() int64
- func GetServerTimeAsString() string
- func MakeCryptoTimestamp() int64
- func MakeKTag(attrs map[string]string) string
- func SetServerTimeOffset(offset int64)
- type SortingMode
Constants ¶
View Source
const ( SHA_256 = 0 SHA_1 = 1 MD5 = 2 )
Variables ¶
View Source
var ( BaseOrdering = SortingMode{Base: -310256979, Offset: 13} ExtendedOrdering = SortingMode{Base: -1964139357, Offset: 7} )
Functions ¶
func EncodeBase64 ¶
func GenerateUUID ¶
func GenerateUUID() string
func GetServerTime ¶
func GetServerTime() int64
Returns a timestamp synchronized with Kik's server. Should be used for all outgoing stanzas in the cts and kik.timestamp attributes
func GetServerTimeAsString ¶
func GetServerTimeAsString() string
func MakeCryptoTimestamp ¶
func MakeCryptoTimestamp() int64
This should only be used for the stream header (<k/>)
func SetServerTimeOffset ¶
func SetServerTimeOffset(offset int64)
Types ¶
type SortingMode ¶
Click to show internal directories.
Click to hide internal directories.