party

package
v0.0.0-...-839ea1c Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package party implements the logic to route clients into Rooms

Index

Constants

View Source
const RouterBufSize = 1024

RouterBufSize router's channel size (handles Join/leave requests)

Variables

This section is empty.

Functions

This section is empty.

Types

type InboxChan

type InboxChan <-chan []byte

InboxChan is a read only message channel

type PostChan

type PostChan chan<- []byte

PostChan is a write only message channel

type Router

type Router struct {
	// contains filtered or unexported fields
}

Router routes messages according to rooms

func NewRouter

func NewRouter(c <-chan event.Query) Router

NewRouter creates a New party Router

func (*Router) Run

func (rt *Router) Run(ctx context.Context)

Run the Router's loop

Directories

Path Synopsis
Package comms for internal message passing
Package comms for internal message passing
Package event contains incoming notifications for parties
Package event contains incoming notifications for parties
Package notifier wraps how to notify router of queries
Package notifier wraps how to notify router of queries
Package room contains the code to multicast between clients
Package room contains the code to multicast between clients

Jump to

Keyboard shortcuts

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