operation

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DEFAULT_TIME_LIMIT_WARNING  time.Duration = 1000_000_000
	DEFAULT_TIME_LIMIT_ALERT    time.Duration = 1500_000_000
	DEFAULT_TIME_LIMIT_CRITICAL time.Duration = 2000_000_000
)

noinspection GoSnakeCaseUsage

Variables

This section is empty.

Functions

func CreateOperationRequest added in v1.15.0

func CreateOperationRequest(
	id uint64,
	operation uint64,
	clientName string,
	clientVersion,
	apiVersion int32,
	token string,
	payload []byte,
) IOperationRequest

func CreateOperationResult added in v1.15.0

func CreateOperationResult(
	id ID,
	status int32,
	resultType uint64,
	payload []byte,
	pipeline IPipeline,
	duration time.Duration,
) IOperationResult

func NewOperationRequest added in v1.15.0

func NewOperationRequest() IOperationRequest

func NewOperationResult added in v1.15.0

func NewOperationResult() IOperationResult

Types

type AdminOperation

type AdminOperation struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*AdminOperation) ActiveRunner added in v1.12.1

func (operation *AdminOperation) ActiveRunner() uint

func (*AdminOperation) ExecutionTimeLimits

func (operation *AdminOperation) ExecutionTimeLimits() (Duration, Duration, Duration)

func (*AdminOperation) Role

func (operation *AdminOperation) Role() Role

func (*AdminOperation) SetActiveRunner added in v1.12.1

func (operation *AdminOperation) SetActiveRunner(value uint)

func (*AdminOperation) SetRole

func (operation *AdminOperation) SetRole(role Role)

type Operation

type Operation struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Operation) ActiveRunner added in v1.12.1

func (operation *Operation) ActiveRunner() uint

func (*Operation) ExecutionTimeLimits

func (operation *Operation) ExecutionTimeLimits() (Duration, Duration, Duration)

func (*Operation) Role

func (operation *Operation) Role() Role

func (*Operation) SetActiveRunner added in v1.12.1

func (operation *Operation) SetActiveRunner(value uint)

func (*Operation) SetRole

func (operation *Operation) SetRole(role Role)

type SecureOperation

type SecureOperation struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*SecureOperation) ActiveRunner added in v1.12.1

func (operation *SecureOperation) ActiveRunner() uint

func (*SecureOperation) ExecutionTimeLimits

func (operation *SecureOperation) ExecutionTimeLimits() (Duration, Duration, Duration)

func (*SecureOperation) Role

func (operation *SecureOperation) Role() Role

func (*SecureOperation) SetActiveRunner added in v1.12.1

func (operation *SecureOperation) SetActiveRunner(value uint)

func (*SecureOperation) SetRole

func (operation *SecureOperation) SetRole(role Role)

Jump to

Keyboard shortcuts

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