mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
25 lines
486 B
Go
25 lines
486 B
Go
package spacestate
|
|
|
|
import (
|
|
"sync/atomic"
|
|
|
|
"github.com/anyproto/any-sync/app"
|
|
"github.com/anyproto/any-sync/commonspace/object/tree/objecttree"
|
|
)
|
|
|
|
const CName = "common.commonspace.spacestate"
|
|
|
|
type SpaceState struct {
|
|
SpaceId string
|
|
SpaceIsClosed *atomic.Bool
|
|
TreesUsed *atomic.Int32
|
|
TreeBuilderFunc objecttree.BuildObjectTreeFunc
|
|
}
|
|
|
|
func (s *SpaceState) Init(a *app.App) (err error) {
|
|
return nil
|
|
}
|
|
|
|
func (s *SpaceState) Name() (name string) {
|
|
return CName
|
|
}
|