realtime

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	Broadcast chan internal.Command
	// contains filtered or unexported fields
}

func NewBroker

func NewBroker(v Validator, pubsub internal.PubSuber) *Broker

func (*Broker) Accept

func (b *Broker) Accept(w http.ResponseWriter, r *http.Request)

type ConnectionData

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

type Validator

type Validator func(context.Context, string) (string, error)

Jump to

Keyboard shortcuts

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