Documentation ¶ Index ¶ type Manager func NewManager[T any, PT interface{ ... }](appId string, groupId string, codec codec.Codec[T]) *Manager[T, PT] func (manager *Manager[T, PT]) LoadState(id string) (*T, error) func (manager *Manager[T, PT]) SaveState(id string, state *T) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Manager ¶ type Manager[T any, PT interface { *T proto.Message }] struct { // contains filtered or unexported fields } func NewManager ¶ func NewManager[T any, PT interface { *T proto.Message }](appId string, groupId string, codec codec.Codec[T]) *Manager[T, PT] func (*Manager[T, PT]) LoadState ¶ func (manager *Manager[T, PT]) LoadState(id string) (*T, error) func (*Manager[T, PT]) SaveState ¶ func (manager *Manager[T, PT]) SaveState(id string, state *T) error Source Files ¶ View all Source files manager.go Click to show internal directories. Click to hide internal directories.