proxy

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: GPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

Types

type Conn

type Conn struct {
	NextHop nexthop.NextHopMap
	// contains filtered or unexported fields
}

func (*Conn) Run

func (c *Conn) Run(ctx context.Context)

func (*Conn) SetDealFunc

func (c *Conn) SetDealFunc(f func())

type Option

type Option struct {
	LogLevel    string
	Port        int
	EnablePProf bool
	Name        string
	PublicIP    string
	Redis       string
}

func NewOption

func NewOption() *Option

func (*Option) Validate

func (o *Option) Validate() (*Option, error)

func (*Option) WithCliFlags

func (o *Option) WithCliFlags(flags *pflag.FlagSet) *Option

func (*Option) WithDefaults

func (o *Option) WithDefaults() *Option

func (*Option) WithEnvVariables

func (o *Option) WithEnvVariables() *Option

type ProxyConn

type ProxyConn struct {
	Conn
}

func NewProxyConn

func NewProxyConn(
	ctx context.Context,
	listenPort int,
) (*ProxyConn, error)

Jump to

Keyboard shortcuts

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