mirror of
https://github.com/Gouryella/drip.git
synced 2026-02-23 21:00:44 +00:00
24 lines
804 B
Go
24 lines
804 B
Go
package tunnel
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrConnectionClosed is returned when trying to use a closed connection
|
|
ErrConnectionClosed = errors.New("connection is closed")
|
|
|
|
// ErrSendTimeout is returned when send operation times out
|
|
ErrSendTimeout = errors.New("send operation timed out")
|
|
|
|
// ErrTunnelNotFound is returned when a tunnel is not found
|
|
ErrTunnelNotFound = errors.New("tunnel not found")
|
|
|
|
// ErrSubdomainTaken is returned when a subdomain is already in use
|
|
ErrSubdomainTaken = errors.New("subdomain is already taken")
|
|
|
|
// ErrInvalidSubdomain is returned when a subdomain is invalid
|
|
ErrInvalidSubdomain = errors.New("invalid subdomain format")
|
|
|
|
// ErrReservedSubdomain is returned when trying to use a reserved subdomain
|
|
ErrReservedSubdomain = errors.New("subdomain is reserved")
|
|
)
|