server

package
v0.0.0-...-9678cfa Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

Types

type Config

type Config struct {
	Port         int    `mapstructure:"port"`
	AdminPort    int    `mapstructure:"admin-port"`
	DomainTunnel bool   `mapstructure:"domain-tunnel"`
	Domain       string `mapstructure:"domain"`
	Token        string `mapstructure:"token"`
	Multiplex    bool   `mapstructure:"multiplex"`
	CaddySrvName string `mapstructure:"caddy-srv-name"`
}

func LoadConfig

func LoadConfig(cfgFile string, args []string) (config Config, err error)

type Proxy

type Proxy struct {
	Port   int
	From   string
	Domain string
	Closer io.Closer
}

type Server

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

func (*Server) Run

func (s *Server) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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