entity_controller

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityController

type EntityController interface {
	GetEntity(context.Context, *operation.OperationRequest) (entity.Entity, *errors.AsyncError)
}

EntityController is the interface used to grab the entity from where it's stored, typically a database. Using this interface we enforce people to not only implement the GuardConcurrency method in each operations but also force them to grab the entity from somewhere, thus avoiding them always returning a nil error from GuardConcurrency method.

Jump to

Keyboard shortcuts

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