pool

package
v2.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response added in v2.3.1

type Response struct {
	Topic   string `json:"topic"`
	Payload string `json:"payload"`
}

Response from the server

type WorkersPool

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

func NewWorkersPool

func NewWorkersPool(subscriber pubsub.Subscriber, connections *sync.Map, log logger.Logger) *WorkersPool

NewWorkersPool constructs worker pool for the websocket connections

func (*WorkersPool) Queue

func (wp *WorkersPool) Queue(msg *pubsub.Message)

func (*WorkersPool) Stop

func (wp *WorkersPool) Stop()

Jump to

Keyboard shortcuts

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