bus

package
v0.0.0-...-a67b36e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSub

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

func NewPubSub

func NewPubSub(cqlC *cassandra.Client) *PubSub

NewPubSub returns a new instance of a PubSub

func (*PubSub) Start

func (hub *PubSub) Start(scaler int)

Start starts N hub to listen to incoming events and handle protocoll upgrades

func (*PubSub) UpgradeProtocoll

func (hub *PubSub) UpgradeProtocoll(w http.ResponseWriter, r *http.Request) error

UpgradeProtocoll hajiecks the ResponseWriter and upgrdares the http protocoll to a ws if successful starts the listener on the connection.

Jump to

Keyboard shortcuts

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