Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResourceLimitExceeded = errors.New("resource limit exceeded")
ErrResourceLimitExceeded is returned when attempting to perform an operation that would exceed system resource limits.
View Source
var ErrResourceScopeClosed = errors.New("resource scope closed")
ErrResourceScopeClosed is returned when attempting to reserve resources in a closed resource scope.
Functions ¶
func NewResourceManager ¶
func NewResourceManager(limits corercmgr.Limiter) corercmgr.ResourceManager
Types ¶
type ErrConnLimitExceeded ¶
type ErrConnLimitExceeded struct {
// contains filtered or unexported fields
}
func (*ErrConnLimitExceeded) Error ¶
func (e *ErrConnLimitExceeded) Error() string
func (*ErrConnLimitExceeded) Unwrap ¶
func (e *ErrConnLimitExceeded) Unwrap() error
type ErrMemoryLimitExceeded ¶
type ErrMemoryLimitExceeded struct {
// contains filtered or unexported fields
}
func (*ErrMemoryLimitExceeded) Error ¶
func (e *ErrMemoryLimitExceeded) Error() string
func (*ErrMemoryLimitExceeded) Unwrap ¶
func (e *ErrMemoryLimitExceeded) Unwrap() error
type ErrTaskLimitExceeded ¶
type ErrTaskLimitExceeded struct {
// contains filtered or unexported fields
}
func (*ErrTaskLimitExceeded) Error ¶
func (e *ErrTaskLimitExceeded) Error() string
func (*ErrTaskLimitExceeded) Unwrap ¶
func (e *ErrTaskLimitExceeded) Unwrap() error
Click to show internal directories.
Click to hide internal directories.