operation

package
v1.15.6 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 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)
}

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
	Hash() string
	Payload() []byte
	Load(interface{}, ISerializer) error
}

Jump to

Keyboard shortcuts

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