multi

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotHandler = fmt.Errorf("not handler")
)

Functions

func NewMultiWithConfig

func NewMultiWithConfig(conf *Config) (stream.Handler, error)

Types

type Config

type Config struct {
	Multi []stream.Handler
}

type Multi

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

func NewMulti

func NewMulti(multi []stream.Handler) *Multi

func (*Multi) ServeStream

func (m *Multi) ServeStream(ctx context.Context, stm stream.Stream)

Jump to

Keyboard shortcuts

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