routes

package
v0.0.0-...-7bb7a1f Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(app *fiber.App)

Types

type Client

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

type Message

type Message struct {
	Message    string `json:"message"`
	ReceiverId string `json:"receiver"`
	UserId     string `json:"user_id"`
	Type       string `json:"type"`
}

type MessageLogin

type MessageLogin struct {
	Login string `json:"login"`
}

type Pool

type Pool struct {
	Messages chan *models.Message
	Clients  map[string]*Client
}

func NewPool

func NewPool() *Pool

func (*Pool) Start

func (p *Pool) Start()

Jump to

Keyboard shortcuts

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