reverseproxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

type EventHandler struct {
	OnAdd    func(host string, port string)
	OnRemove func(host string, port string)
}

type EventHandlers

type EventHandlers []EventHandler

func (EventHandlers) OnAdd

func (hs EventHandlers) OnAdd(host string, port string)

func (EventHandlers) OnRemove

func (hs EventHandlers) OnRemove(host string, port string)

type Handler

type Handler interface {
	PasswordHandler() ssh.PasswordHandler
	PublicKeyHandler() ssh.PublicKeyHandler

	HandleSSHRequest(ctx ssh.Context, srv *ssh.Server, req *gossh.Request) (bool, []byte)

	nets.SocketHandler
	ConvertBindAddressToHostPort(bindAddress string) (string, string, bool)
	ConvertBindAddressToSocket(bindAddress string) (string, bool)

	SocketList() []string
	AddEventHandler(EventHandler)
}

func New

func New(authenticator auth.Authenticator, authorizer auth.Authorizer, unixDirectory string) (Handler, error)

Jump to

Keyboard shortcuts

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