operation

package
v1.18.8 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator func() interface{}

type IOperation

type IOperation interface {
	sync.Locker
	Tag() string
	Id() (ID, ID)
	Role() Role
	SetRole(Role)
	ActiveRunner() uint
	SetActiveRunner(uint)
	InputContainer() Pointer
	OutputContainer() Pointer
	Execute(IContext, Pointer) (Pointer, error)
	ExecutionTimeLimits() (Duration, Duration, Duration)
	IsCacheable() bool
}

type IOperationFactory

type IOperationFactory interface {
	Operations() []IOperation
}

type IOperationRequest

type IOperationRequest interface {
	Id() uint64
	Operation() uint64
	Token() string
	ApiVersion() int32
	ClientVersion() int32
	ClientName() string
	Container() Pointer
	Payload() []byte
	Load(interface{}, ISerializer) error
}

type IOperationResult

type IOperationResult interface {
	Id() uint64
	Status() int32
	Type() uint64
	ContentType() string
	Container() Pointer
	ServerVersion() int32
	ExecutionDuration() time.Duration
	UpdateStat(bool, int64, int64) IOperationResult
	Signature() string
	Payload() []byte
	Load(interface{}, ISerializer) error
	Stat() (int64, int64)
}

Jump to

Keyboard shortcuts

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