better
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
package actor
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"time"
|
||||
//"github.com/gogo/protobuf/proto"
|
||||
)
|
||||
|
||||
type Grain[V any] interface {
|
||||
GetId() uint64
|
||||
Apply(content any, isReplay bool) (*V, error)
|
||||
//Apply(content proto.Message, isReplay bool) (*V, error)
|
||||
GetLastAccess() time.Time
|
||||
GetLastChange() time.Time
|
||||
GetCurrentState() (*V, error)
|
||||
|
||||
Reference in New Issue
Block a user