Back to

Package frontend

Latest Go to latest

The latest major version is .

Published: Feb 29, 2020 | License: BSD-3-Clause | Module:


func LogLevel

func LogLevel(name string) zapcore.Level

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier