vhost

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2017 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Muxer

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

Muxer is used to manage all domain listeners.

func Listen

func Listen(addr string) (m *Muxer, err error)

Listen an address to create a muxer.

func (*Muxer) Close

func (m *Muxer) Close() error

Close this muxer and all domain listeners.

func (*Muxer) Listen

func (m *Muxer) Listen(domain string) (l net.Listener, err error)

Listen a domain to create a net.Listener.

func (*Muxer) Serve

func (m *Muxer) Serve(ctx context.Context) (err error)

Serve this muxer, resolves an http requests and put the connection into the domain listener.

Jump to

Keyboard shortcuts

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