grpcmux

package
v0.0.0-...-b7c645d Latest Latest
Warning

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

Go to latest
Published: May 23, 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 Mux

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

func New

func New(
	ctx context.Context,
	listeners []MuxListener,
	tm *taskmanager.TaskManager,
) *Mux

func (*Mux) Accept

func (m *Mux) Accept() (net.Conn, error)

func (*Mux) Addr

func (m *Mux) Addr() net.Addr

func (*Mux) Close

func (m *Mux) Close() error

func (*Mux) Start

func (m *Mux) Start(ctx context.Context) error

func (*Mux) Status

func (m *Mux) Status() interface{}

type MuxListener

type MuxListener struct {
	Start func() (net.Listener, error)
	Tag   string
}

Jump to

Keyboard shortcuts

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