realtime

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Unlicense Imports: 11 Imported by: 0

Documentation

Overview

Package realtime implements a simple Real Time server, which will be used for managing external services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RealTime

type RealTime struct {
	sync.RWMutex

	Log       *log.Entry
	WSHandler *centrifuge.WebsocketHandler

	BackendUrl string
	DB         *database.Database
	// contains filtered or unexported fields
}

func (*RealTime) AddPresence

func (r *RealTime) AddPresence(ch string, clientID string, info *centrifuge.ClientInfo) error

func (*RealTime) HandleConnect

func (r *RealTime) HandleConnect(client *centrifuge.Client)

func (*RealTime) HandleConnecting

func (*RealTime) Handler

func (r *RealTime) Handler(w http.ResponseWriter, req *http.Request)

func (*RealTime) Presence

func (r *RealTime) Presence(ch string) (map[string]*centrifuge.ClientInfo, error)

func (*RealTime) PresenceStats

func (r *RealTime) PresenceStats(ch string) (centrifuge.PresenceStats, error)

func (*RealTime) RemovePresence

func (r *RealTime) RemovePresence(ch string, clientID string, userID string) error

func (*RealTime) Run

func (r *RealTime) Run() error

Jump to

Keyboard shortcuts

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