utils

package
v2.0.437+incompatible Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: AGPL-3.0 Imports: 3 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(buf []byte, out interface{}) error

Decode deserializes the content from a byte array.

func Encode

func Encode(content interface{}) ([]byte, error)

Encode serializes the content and writes it to a byte array.

func GetHash

func GetHash(data []byte) uint32

GetHash returns a murmur32 hash for the data slice.

func Repeat

func Repeat(action func(), interval time.Duration, closing chan bool) *time.Ticker

Repeat creates a ticker which tickes periodically

Types

This section is empty.

Jump to

Keyboard shortcuts

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