tunneld

package
v0.0.0-...-831067b Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigGet

func ConfigGet(name string) interface{}

Types

type Config

type Config struct {
	Password   string
	Cert       string
	SSHServer  string
	RemoteAddr string
	LocalAddr  string
	AdminPort  int
}

func ConfigInit

func ConfigInit() *Config

type Mode

type Mode int
const (
	SSH Mode = iota
	TCP
)

type Server

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

func NewServer

func NewServer(config *Config) *Server

func (*Server) IsConnected

func (s *Server) IsConnected() bool

func (*Server) IsRunning

func (s *Server) IsRunning() bool

func (*Server) IsStarted

func (s *Server) IsStarted() bool

func (*Server) Run

func (s *Server) Run()

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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