server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

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

func NewHTTPServer

func NewHTTPServer(tunnelStorer TunnelStorer, port string) *HTTPServer

func (*HTTPServer) StartHTTPServer

func (s *HTTPServer) StartHTTPServer(ctx context.Context) error

type SSHServer

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

func NewSSHServer

func NewSSHServer(tunnelStorer TunnelStorer, port string) *SSHServer

func (*SSHServer) StartSSHServer

func (s *SSHServer) StartSSHServer(ctx context.Context) error

type Tunnel

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

type TunnelStore

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

func (*TunnelStore) Delete

func (ts *TunnelStore) Delete(id string)

func (*TunnelStore) Get

func (ts *TunnelStore) Get(id string) (chan Tunnel, bool)

func (*TunnelStore) Put

func (ts *TunnelStore) Put(id string, tunnel chan Tunnel)

type TunnelStorer

type TunnelStorer interface {
	Get(id string) (chan Tunnel, bool)
	Put(id string, tunnel chan Tunnel)
	Delete(id string)
}

func NewTunnel

func NewTunnel() TunnelStorer

Jump to

Keyboard shortcuts

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