protocols

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoProtocol

type EchoProtocol interface {
	Name() string
	ClientOpen(ctx context.Context, token string, privateKeyPEM []byte) (io.ReadWriteCloser, error)
	ServerListen(addr string, token string, publicKeySSH []byte, onFrame func(string, []byte, io.ReadWriteCloser)) error
}

type SSHProtocol

type SSHProtocol struct {
	Addr string
}

func NewSSHProtocol

func NewSSHProtocol(addr string) *SSHProtocol

func (*SSHProtocol) ClientOpen

func (s *SSHProtocol) ClientOpen(ctx context.Context, token string, privateKeyPEM []byte) (io.ReadWriteCloser, error)

func (*SSHProtocol) Name

func (s *SSHProtocol) Name() string

func (*SSHProtocol) ServerListen

func (s *SSHProtocol) ServerListen(addr string, token string, expectedClientPublicKeySSH []byte, onFrame func(string, []byte, io.ReadWriteCloser)) error

Jump to

Keyboard shortcuts

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