relay

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConnectionTimeToLiveMin = 2 * time.Minute
	ConnectionTimeToLiveMax = 10 * time.Minute
	TimeoutMin              = 20 * time.Second
	TimeoutMax              = time.Minute
)

Variables

This section is empty.

Functions

func Relay

func Relay(ctx context.Context, log Logger, bufferSize int,
	telegramConn net.Conn, clientConn io.ReadWriteCloser)

Types

type Logger

type Logger interface {
	Printf(msg string, args ...interface{})
}

Jump to

Keyboard shortcuts

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