common

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCfgFileFormatInv = errors.New("invalid teler configuration file format")
	ErrCfgFileFormatUnd = errors.New("undefined teler configuration file format")
	ErrDestAddressEmpty = errors.New("empty destination address")
)
View Source
var (
	// App name
	App = "teler-proxy"
	// Version of teler-proxy itself
	Version = ""
	Banner = `
    __      __       
   / /____ / /__ ____
  / __/ -_) / -_) __/
  \__/\__/_/\__/_/ proxy ` + Version
	// Usage of teler-proxy
	Usage = `` /* 895-byte string literal not displayed */

)

Functions

func PrintBanner

func PrintBanner()

func PrintUsage

func PrintUsage()

func PrintVersion

func PrintVersion()

Types

type Config

type Config struct {
	Path, Format string
}

type Options

type Options struct {
	Port        int
	Destination string
	*Config
	*TLS
	*log.Logger
}

func (*Options) Validate

func (opt *Options) Validate() error

type TLS

type TLS struct {
	CertPath, KeyPath string
}

Jump to

Keyboard shortcuts

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