Init: Migrate SimpleRemoter (Since v1.3.1) to Gitea

This commit is contained in:
yuanyuanxiang
2026-04-19 19:55:01 +02:00
commit 5a325a202b
744 changed files with 235562 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package connection
import "errors"
var (
// ErrConnectionClosed indicates the connection is closed
ErrConnectionClosed = errors.New("connection closed")
// ErrServerClosed indicates the server is shut down
ErrServerClosed = errors.New("server closed")
// ErrMaxConnections indicates max connections reached
ErrMaxConnections = errors.New("max connections reached")
// ErrInvalidPacket indicates an invalid packet
ErrInvalidPacket = errors.New("invalid packet")
// ErrUnsupportedProtocol indicates unsupported protocol
ErrUnsupportedProtocol = errors.New("unsupported protocol")
// ErrDecompressFailed indicates decompression failure
ErrDecompressFailed = errors.New("decompression failed")
)