Co-authored-by: matst80 <mats.tornberg@gmail.com> Reviewed-on: https://git.tornberg.me/mats/go-cart-actor/pulls/4 Co-authored-by: Mats Törnberg <mats@tornberg.me> Co-committed-by: Mats Törnberg <mats@tornberg.me>
14 lines
169 B
Go
14 lines
169 B
Go
package actor
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Grain[V any] interface {
|
|
GetId() uint64
|
|
|
|
GetLastAccess() time.Time
|
|
GetLastChange() time.Time
|
|
GetCurrentState() (*V, error)
|
|
}
|