Documentation ¶
Overview ¶
Created by xuzhuoxi on 2019-03-09. @author xuzhuoxi
Created by xuzhuoxi on 2019-03-17. @author xuzhuoxi
Created by xuzhuoxi on 2019-03-09. @author xuzhuoxi
Created by xuzhuoxi on 2019-03-09. @author xuzhuoxi
Created by xuzhuoxi on 2019-03-08. @author xuzhuoxi
Created by xuzhuoxi on 2019-03-09. @author xuzhuoxi
Created by xuzhuoxi on 2019-03-09. @author xuzhuoxi
Created by xuzhuoxi on 2019-03-09. @author xuzhuoxi
Index ¶
- func NewIChannelIndex() basis.IChannelIndex
- func NewIEntityIndex(indexName string, entityType basis.EntityType) basis.IEntityIndex
- func NewIRoomIndex() basis.IRoomIndex
- func NewITeamCorpsIndex() basis.ITeamCorpsIndex
- func NewITeamIndex() basis.ITeamIndex
- func NewIUserIndex() basis.IUserIndex
- func NewIWorldIndex() basis.IWorldIndex
- func NewIZoneIndex() basis.IZoneIndex
- type ChannelIndex
- func (i *ChannelIndex) AddChannel(channel basis.IChannelEntity) error
- func (i *ChannelIndex) CheckChannel(chanId string) bool
- func (i *ChannelIndex) GetChannel(chanId string) basis.IChannelEntity
- func (i *ChannelIndex) RemoveChannel(chanId string) (basis.IChannelEntity, error)
- func (i *ChannelIndex) UpdateChannel(channel basis.IChannelEntity) error
- type EntityIndex
- func (i *EntityIndex) Add(entity basis.IEntity) error
- func (i *EntityIndex) Check(id string) bool
- func (i *EntityIndex) EntityType() basis.EntityType
- func (i *EntityIndex) Get(id string) basis.IEntity
- func (i *EntityIndex) Remove(id string) (basis.IEntity, error)
- func (i *EntityIndex) Update(entity basis.IEntity) error
- type RoomIndex
- func (i *RoomIndex) AddRoom(room basis.IRoomEntity) error
- func (i *RoomIndex) CheckRoom(roomId string) bool
- func (i *RoomIndex) GetRoom(roomId string) basis.IRoomEntity
- func (i *RoomIndex) RemoveRoom(roomId string) (basis.IRoomEntity, error)
- func (i *RoomIndex) UpdateRoom(room basis.IRoomEntity) error
- type TeamCorpsIndex
- func (i *TeamCorpsIndex) AddCorps(corps basis.ITeamCorpsEntity) error
- func (i *TeamCorpsIndex) CheckCorps(corpsId string) bool
- func (i *TeamCorpsIndex) GetCorps(corpsId string) basis.ITeamCorpsEntity
- func (i *TeamCorpsIndex) RemoveCorps(corpsId string) (basis.ITeamCorpsEntity, error)
- func (i *TeamCorpsIndex) UpdateCorps(corps basis.ITeamCorpsEntity) error
- type TeamIndex
- func (i *TeamIndex) AddTeam(team basis.ITeamEntity) error
- func (i *TeamIndex) CheckTeam(teamId string) bool
- func (i *TeamIndex) GetTeam(teamId string) basis.ITeamEntity
- func (i *TeamIndex) RemoveTeam(teamId string) (basis.ITeamEntity, error)
- func (i *TeamIndex) UpdateTeam(team basis.ITeamEntity) error
- type UserIndex
- func (i *UserIndex) AddUser(user basis.IUserEntity) error
- func (i *UserIndex) CheckUser(userId string) bool
- func (i *UserIndex) GetUser(userId string) basis.IUserEntity
- func (i *UserIndex) RemoveUser(userId string) (basis.IUserEntity, error)
- func (i *UserIndex) UpdateUser(user basis.IUserEntity) error
- type WorldIndex
- func (i *WorldIndex) AddWorld(world basis.IWorldEntity) error
- func (i *WorldIndex) CheckWorld(worldId string) bool
- func (i *WorldIndex) GetWorld(worldId string) basis.IWorldEntity
- func (i *WorldIndex) RemoveWorld(world string) (basis.IWorldEntity, error)
- func (i *WorldIndex) UpdateWorld(world basis.IWorldEntity) error
- type ZoneIndex
- func (i *ZoneIndex) AddZone(zone basis.IZoneEntity) error
- func (i *ZoneIndex) CheckZone(zoneId string) bool
- func (i *ZoneIndex) GetZone(zoneId string) basis.IZoneEntity
- func (i *ZoneIndex) RemoveZone(zoneId string) (basis.IZoneEntity, error)
- func (i *ZoneIndex) UpdateZone(zone basis.IZoneEntity) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIChannelIndex ¶
func NewIChannelIndex() basis.IChannelIndex
func NewIEntityIndex ¶
func NewIEntityIndex(indexName string, entityType basis.EntityType) basis.IEntityIndex
func NewIRoomIndex ¶
func NewIRoomIndex() basis.IRoomIndex
func NewITeamCorpsIndex ¶
func NewITeamCorpsIndex() basis.ITeamCorpsIndex
func NewITeamIndex ¶
func NewITeamIndex() basis.ITeamIndex
func NewIUserIndex ¶
func NewIUserIndex() basis.IUserIndex
func NewIWorldIndex ¶
func NewIWorldIndex() basis.IWorldIndex
func NewIZoneIndex ¶
func NewIZoneIndex() basis.IZoneIndex
Types ¶
type ChannelIndex ¶
type ChannelIndex struct {
EntityIndex
}
func NewChannelIndex ¶
func NewChannelIndex() *ChannelIndex
func (*ChannelIndex) AddChannel ¶
func (i *ChannelIndex) AddChannel(channel basis.IChannelEntity) error
func (*ChannelIndex) CheckChannel ¶
func (i *ChannelIndex) CheckChannel(chanId string) bool
func (*ChannelIndex) GetChannel ¶
func (i *ChannelIndex) GetChannel(chanId string) basis.IChannelEntity
func (*ChannelIndex) RemoveChannel ¶
func (i *ChannelIndex) RemoveChannel(chanId string) (basis.IChannelEntity, error)
func (*ChannelIndex) UpdateChannel ¶
func (i *ChannelIndex) UpdateChannel(channel basis.IChannelEntity) error
type EntityIndex ¶
type EntityIndex struct {
// contains filtered or unexported fields
}
func NewEntityIndex ¶
func NewEntityIndex(indexName string, entityType basis.EntityType) *EntityIndex
func (*EntityIndex) Check ¶
func (i *EntityIndex) Check(id string) bool
func (*EntityIndex) EntityType ¶
func (i *EntityIndex) EntityType() basis.EntityType
type RoomIndex ¶
type RoomIndex struct {
EntityIndex
}
func NewRoomIndex ¶
func NewRoomIndex() *RoomIndex
func (*RoomIndex) RemoveRoom ¶
func (i *RoomIndex) RemoveRoom(roomId string) (basis.IRoomEntity, error)
func (*RoomIndex) UpdateRoom ¶
func (i *RoomIndex) UpdateRoom(room basis.IRoomEntity) error
type TeamCorpsIndex ¶
type TeamCorpsIndex struct {
EntityIndex
}
func NewTeamCorpsIndex ¶
func NewTeamCorpsIndex() *TeamCorpsIndex
func (*TeamCorpsIndex) AddCorps ¶
func (i *TeamCorpsIndex) AddCorps(corps basis.ITeamCorpsEntity) error
func (*TeamCorpsIndex) CheckCorps ¶
func (i *TeamCorpsIndex) CheckCorps(corpsId string) bool
func (*TeamCorpsIndex) GetCorps ¶
func (i *TeamCorpsIndex) GetCorps(corpsId string) basis.ITeamCorpsEntity
func (*TeamCorpsIndex) RemoveCorps ¶
func (i *TeamCorpsIndex) RemoveCorps(corpsId string) (basis.ITeamCorpsEntity, error)
func (*TeamCorpsIndex) UpdateCorps ¶
func (i *TeamCorpsIndex) UpdateCorps(corps basis.ITeamCorpsEntity) error
type TeamIndex ¶
type TeamIndex struct {
EntityIndex
}
func NewTeamIndex ¶
func NewTeamIndex() *TeamIndex
func (*TeamIndex) RemoveTeam ¶
func (i *TeamIndex) RemoveTeam(teamId string) (basis.ITeamEntity, error)
func (*TeamIndex) UpdateTeam ¶
func (i *TeamIndex) UpdateTeam(team basis.ITeamEntity) error
type UserIndex ¶
type UserIndex struct {
EntityIndex
}
func NewUserIndex ¶
func NewUserIndex() *UserIndex
func (*UserIndex) RemoveUser ¶
func (i *UserIndex) RemoveUser(userId string) (basis.IUserEntity, error)
func (*UserIndex) UpdateUser ¶
func (i *UserIndex) UpdateUser(user basis.IUserEntity) error
type WorldIndex ¶
type WorldIndex struct {
EntityIndex
}
func NewWorldIndex ¶
func NewWorldIndex() *WorldIndex
func (*WorldIndex) AddWorld ¶
func (i *WorldIndex) AddWorld(world basis.IWorldEntity) error
func (*WorldIndex) CheckWorld ¶
func (i *WorldIndex) CheckWorld(worldId string) bool
func (*WorldIndex) GetWorld ¶
func (i *WorldIndex) GetWorld(worldId string) basis.IWorldEntity
func (*WorldIndex) RemoveWorld ¶
func (i *WorldIndex) RemoveWorld(world string) (basis.IWorldEntity, error)
func (*WorldIndex) UpdateWorld ¶
func (i *WorldIndex) UpdateWorld(world basis.IWorldEntity) error
type ZoneIndex ¶
type ZoneIndex struct {
EntityIndex
}
func NewZoneIndex ¶
func NewZoneIndex() *ZoneIndex
func (*ZoneIndex) RemoveZone ¶
func (i *ZoneIndex) RemoveZone(zoneId string) (basis.IZoneEntity, error)
func (*ZoneIndex) UpdateZone ¶
func (i *ZoneIndex) UpdateZone(zone basis.IZoneEntity) error
Click to show internal directories.
Click to hide internal directories.