gfsprcmgr

package
v0.2.4-alpha.14 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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