publisher

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

---------------------------------------------------------------------------------------------

  • Copyright (c) IBAX. All rights reserved.
  • See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJWTCent

func GetJWTCent(userID, expire int64) (string, string, error)

func GetStats

func GetStats() (gocent.InfoResult, error)

GetStats returns Stats

func InitCentrifugo

func InitCentrifugo(cfg conf.CentrifugoConfig)

InitCentrifugo client

func Write

func Write(account string, data string) error

Write is publishing data to server

Types

type CentJWT

type CentJWT struct {
	Sub string
	jwt.RegisteredClaims
}

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