18 lines
572 B
Go
18 lines
572 B
Go
package inbound
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// Pool errors
|
|
PoolError = errors.New("pool error")
|
|
ErrInvalidPoolID = errors.New("pool id cannot be empty")
|
|
ErrPoolClosed = errors.New("pool is closed")
|
|
ErrPeerNotFound = errors.New("peer not found")
|
|
ErrPeerExists = errors.New("peer already exists")
|
|
|
|
// Config errors
|
|
InvalidMaxQueueSize = errors.New("maximum queue size cannot be negative")
|
|
InvalidInactivityTimeout = errors.New("inactivity timeout cannot be negative")
|
|
InvalidBufferSize = errors.New("buffer size must be greater than zero")
|
|
)
|