hub

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	CheckAccessToken(string) error
}

type Client

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

type Conn

type Conn net.Conn

type Hub

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

func NewHub

func NewHub() *Hub

func (*Hub) Handle

func (h *Hub) Handle(auth Authenticator, w http.ResponseWriter, r *http.Request)

func (*Hub) Run

func (h *Hub) Run()

type Message

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

Jump to

Keyboard shortcuts

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