Documentation ¶
Index ¶
- func MigrateDb(DB *Database, cfg *config.MySQL)
- type Database
- func (DB *Database) GetDefaultEntranceWorld() (uuid.UUID, bool)
- func (DB *Database) GetGuestUserTypeId(typename string) uuid.UUID
- func (DB *Database) GetParentWorld(sid uuid.UUID) (uuid.UUID, error)
- func (DB *Database) GetRandomWorld() (uuid.UUID, bool)
- func (DB *Database) GetUserInfo(id uuid.UUID) (string, uuid.UUID)
- func (DB *Database) GetUserLastKnownPosition(UserId, WorldId uuid.UUID) (uuid.UUID, cmath.Vec3, bool)
- func (DB *Database) GetUserName(id uuid.UUID) string
- func (DB *Database) GetUserSpawnPosition(uid uuid.UUID, URL *url.URL) (uuid.UUID, uuid.UUID, cmath.Vec3, error)
- func (DB *Database) GetUserSpawnPositionInWorld(uid, worldId uuid.UUID) (uuid.UUID, cmath.Vec3)
- func (DB *Database) GetUsersIDsByType(typeid uuid.UUID) ([]uuid.UUID, error)
- func (DB *Database) GetWorldByURL(URL *url.URL) (uuid.UUID, bool)
- func (DB *Database) GetWorldDefauleSpawnPositon(WorldId uuid.UUID) (uuid.UUID, cmath.Vec3, bool)
- func (DB *Database) GetastUserWorld(uid uuid.UUID) (uuid.UUID, bool)
- func (DB *Database) InsertOnline(userId, spaceId uuid.UUID)
- func (DB *Database) QuerySingleAuxById(tables []string, id []byte) (map[string]interface{}, error)
- func (DB *Database) QuerySingleByBinId(table string, id []byte) (map[string]interface{}, error)
- func (DB *Database) QuerySingleByField(table string, field string, ref interface{}) (map[string]interface{}, error)
- func (DB *Database) QuerySingleByUUID(table string, id uuid.UUID) (map[string]interface{}, error)
- func (DB *Database) QueryWorldConfig(id uuid.UUID) (map[string]interface{}, error)
- func (DB *Database) RemoveDynamicWorldMembership(userId, worldId uuid.UUID)
- func (DB *Database) RemoveFromUsers(userId uuid.UUID)
- func (DB *Database) RemoveManyFromUsers(ids []uuid.UUID) error
- func (DB *Database) RemoveOnline(userId, worldId uuid.UUID)
- func (DB *Database) UpdateHighFives(sender, target uuid.UUID)
- func (DB *Database) WriteLastKnownPosition(userId, worldId, anchorId uuid.UUID, vector *cmath.Vec3, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
func (*Database) GetDefaultEntranceWorld ¶
func (*Database) GetGuestUserTypeId ¶
func (*Database) GetParentWorld ¶
func (*Database) GetUserLastKnownPosition ¶
func (*Database) GetUserSpawnPosition ¶
func (*Database) GetUserSpawnPositionInWorld ¶
func (*Database) GetUsersIDsByType ¶ added in v0.1.1
func (*Database) GetWorldDefauleSpawnPositon ¶
func (*Database) GetastUserWorld ¶
func (*Database) InsertOnline ¶
func (*Database) QuerySingleAuxById ¶
func (*Database) QuerySingleByBinId ¶
func (*Database) QuerySingleByField ¶
func (*Database) QuerySingleByUUID ¶
func (*Database) QueryWorldConfig ¶
func (*Database) RemoveDynamicWorldMembership ¶
func (*Database) RemoveFromUsers ¶
func (*Database) RemoveManyFromUsers ¶ added in v0.1.1
func (*Database) RemoveOnline ¶
func (*Database) UpdateHighFives ¶
Click to show internal directories.
Click to hide internal directories.