client

package
v0.0.0-...-f8fabdd Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(c *cli.Context) error

Types

type Client

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

func NewClient

func NewClient(c *cli.Context) *Client

func (*Client) ListenAndServe

func (c *Client) ListenAndServe() error

type Config

type Config struct {
	Mode       string `json:"mode" yaml:"mode"`
	LocalAddr  string `json:"local_addr" yaml:"local-addr" mapstructure:"local-addr"`    // Addr 52.33.220.110:443
	ServerAddr string `json:"server_addr" yaml:"server-addr" mapstructure:"server-addr"` // Addr 52.33.220.110:443
	Sni        string `json:"sni" yaml:"sni"`                                            // Sni sfrolov.io
	SecretLink string `json:"secret_link" yaml:"secret-link" mapstructure:"secret-link"` // SecretLink ws uri
}

func NewConfig

func NewConfig(c *cli.Context) (config *Config)

Jump to

Keyboard shortcuts

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