hub

package
v0.0.0-...-dc6ae1d Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accept

func Accept(ctx context.Context, ws, token, tunnelID string) (net.Conn, error)

func Dial

func Dial(ctx context.Context, ws, token, tunnelID string) (net.Conn, error)

func NewHub

func NewHub(tokens ValidateToken) (http.Handler, error)

Types

type H

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

type ValidateToken

type ValidateToken interface {
	ValidateToken(ctx context.Context, token string) (uid string, tokenType string, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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