publisher

package
v0.0.0-...-8e17a21 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-2.0 Imports: 10 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHMACSign

func GetHMACSign(userID int64) (string, string, error)

func GetStats

func GetStats() (gocent.Stats, error)

GetStats returns Stats

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