frontend

package
v0.0.0-...-64e3505 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: BSD-3-Clause Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogLevel

func LogLevel(name string) zapcore.Level

Types

type Config

type Config struct {
	ListenAddr         string
	ServerURI          string
	Connector          string
	LogLevel           string
	InsecureSkipVerify bool // This is for testing purpose.
	ConnectTimeout     time.Duration
	Timeout            time.Duration

	Compression string
	// contains filtered or unexported fields
}

func (Config) ServerHost

func (conf Config) ServerHost() string

type Connector

type Connector interface {
	Connect(context.Context) (io.ReadWriteCloser, error)
	Close() error
}

type Proxy

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

func NewProxy

func NewProxy(conf Config) (*Proxy, error)

func (*Proxy) Close

func (p *Proxy) Close() error

func (*Proxy) Serve

func (p *Proxy) Serve(ctx context.Context) error

Jump to

Keyboard shortcuts

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