publisher

package
v0.0.0-...-b8f9f05 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHMACSign

func GetHMACSign(userID int64) (string, error)

GetHMACSign returns HMACS sign for userID

func InitCentrifugo

func InitCentrifugo(cfg conf.CentrifugoConfig)

InitCentrifugo client

func Write

func Write(userID int64, data string) (bool, error)

Write is publishing data to server

Types

type ClientsChannels

type ClientsChannels struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*ClientsChannels) Get

func (cn *ClientsChannels) Get(id int64) string

func (*ClientsChannels) Set

func (cn *ClientsChannels) Set(id int64, s string)

Jump to

Keyboard shortcuts

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