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