Files
go-cart-actor/pkg/actor/grain.go
matst80 9fc3871e84 better
2025-10-13 15:39:41 +02:00

15 lines
263 B
Go

package actor
import (
"time"
//"github.com/gogo/protobuf/proto"
)
type Grain[V any] interface {
GetId() uint64
//Apply(content proto.Message, isReplay bool) (*V, error)
GetLastAccess() time.Time
GetLastChange() time.Time
GetCurrentState() (*V, error)
}