operation

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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 IBinaryOperationRequest

type IBinaryOperationRequest interface {
	IOperationRequest

	Payload() []byte
	Load(interface{}, IBinarySerializer) error
}

type IBinaryOperationResult

type IBinaryOperationResult interface {
	IOperationResult

	Payload() []byte
	Load(interface{}, IBinarySerializer) error
}

type IOperation

type IOperation interface {
	sync.Locker
	Id() (ID, ID)
	Role() Role
	SetRole(Role)
	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
}

type IOperationResult

type IOperationResult interface {
	Id() uint64
	Status() int32
	Type() uint64
	Container() Pointer
	ServerVersion() int32
	ExecutionDuration() time.Duration
}

type ITextOperationRequest

type ITextOperationRequest interface {
	IOperationRequest

	Payload() string
	Load(interface{}, ITextSerializer) error
}

type ITextOperationResult

type ITextOperationResult interface {
	IOperationResult

	Payload() string
	Load(interface{}, ITextSerializer) error
	SerializeWith(ITextSerializer) (string, error)
}

Jump to

Keyboard shortcuts

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