gateway

package
v0.0.0-...-2e21d9c Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServiceAlreadyRegistered = errors.New("gateway: service already registered")
	ErrServiceNotFound          = errors.New("gateway: service not found")
	ErrExtraDataNotAllowed      = errors.New("gateway: extra data not allowed")
	ErrUnknownChannelType       = errors.New("gateway: unknown channel type")
	ErrPermissionDenied         = errors.New("gateway: permission denied")
)
View Source
var (
	ErrInvalidCommand = errors.New("gateway: invalid command")
	ErrNotFound       = errors.New("gateway: not found")
)
View Source
var (
	ErrInvalidForwardRequest = errors.New("gatewaysshd: invalid forward request")
	ErrInvalidTunnelData     = errors.New("gatewaysshd: invalid tunnel data")
)

Functions

This section is empty.

Types

type Gateway

type Gateway interface {
	Close()

	HandleConnection(net.Conn)
	ScavengeConnections(time.Duration)

	ListUsers() (interface{}, error)
	GetUser(string) (interface{}, error)
	GetUserScreenshot(string) ([]byte, error)
}

an instance of gateway, contains runtime states

func Open

func Open(database db.Database, sshConfig *ssh.ServerConfig, settings *Settings) (Gateway, error)

creates a new instance of gateway

type Settings

type Settings struct {
	Version string
}

Jump to

Keyboard shortcuts

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