cli

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access struct {
	PublicIPv4 net.IP `kong:"help='Public IPv4 address for proxy. By default it is resolved via remote website',name='ipv4',short='i'"`   // nolint: lll
	PublicIPv6 net.IP `kong:"help='Public IPv6 address for proxy. By default it is resolved via remote website',name='ipv6',short='I'"`   // nolint: lll
	Port       uint   `kong:"help='Port number. Default port is taken from configuration file, bind-to parameter',type:'uint',short='p'"` // nolint: lll
	Hex        bool   `kong:"help='Print secret in hex encoding.',short='x'"`
	// contains filtered or unexported fields
}

func (*Access) Execute

func (c *Access) Execute(cli *CLI) error

func (*Access) ReadConfig

func (b *Access) ReadConfig(version string) error

func (*Access) Run

func (c *Access) Run(cli *CLI, version string) error

type CLI

type CLI struct {
	GenerateSecret GenerateSecret   `kong:"cmd,help='Generate new proxy secret'"`
	Access         Access           `kong:"cmd,help='Print access information.'"`
	Run            Proxy            `kong:"cmd,help='Run proxy.'"`
	Version        kong.VersionFlag `kong:"help='Print version.',short='v'"`
}

type GenerateSecret

type GenerateSecret struct {
	HostName string `kong:"arg,required,help='Hostname to use for domain fronting.',name='hostname'"`
	Hex      bool   `kong:"help='Print secret in hex encoding.',short='x'"`
}

func (*GenerateSecret) Run

func (c *GenerateSecret) Run(cli *CLI, _ string) error

type Proxy

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

func (*Proxy) Execute

func (c *Proxy) Execute() error

func (*Proxy) ReadConfig

func (b *Proxy) ReadConfig(version string) error

func (*Proxy) Run

func (c *Proxy) Run(cli *CLI, version string) error

Jump to

Keyboard shortcuts

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