cmuxprivate

package module
v0.0.0-...-503c533 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 2

README

cmuxprivate

Originally used for plugins https://github.com/getlantern/cmux that reference private repositories (cmux itself is a public repository), but should now just be cleaned up and removed.

psmux

example:

import (
	"github.com/getlantern/cmux"
	"github.com/getlantern/cmuxprivate"
	"github.com/getlantern/psmux"
)

config := psmux.DefaultConfig()
config.Version = 2
...
protocol := cmuxprivate.NewPsmuxProtocol(config)

dialer := cmux.Dialer(&cmux.DialerOpts{Protocol: protocol, ...}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPsmuxProtocol

func NewPsmuxProtocol(config *psmux.Config) *psmuxProtocol

NewPsmuxProtocol creates a new psmux based Protocol using the psmux configuration givien. If config is nil, the default psmux configuration is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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