index

package
v0.0.0-...-eba1a7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 4 Imported by: 0

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

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) Add

func (i *EntityIndex) Add(entity basis.IEntity) error

func (*EntityIndex) Check

func (i *EntityIndex) Check(id string) bool

func (*EntityIndex) EntityType

func (i *EntityIndex) EntityType() basis.EntityType

func (*EntityIndex) Get

func (i *EntityIndex) Get(id string) basis.IEntity

func (*EntityIndex) Remove

func (i *EntityIndex) Remove(id string) (basis.IEntity, error)

func (*EntityIndex) Update

func (i *EntityIndex) Update(entity basis.IEntity) error

type RoomIndex

type RoomIndex struct {
	EntityIndex
}

func NewRoomIndex

func NewRoomIndex() *RoomIndex

func (*RoomIndex) AddRoom

func (i *RoomIndex) AddRoom(room basis.IRoomEntity) error

func (*RoomIndex) CheckRoom

func (i *RoomIndex) CheckRoom(roomId string) bool

func (*RoomIndex) GetRoom

func (i *RoomIndex) GetRoom(roomId string) basis.IRoomEntity

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) AddTeam

func (i *TeamIndex) AddTeam(team basis.ITeamEntity) error

func (*TeamIndex) CheckTeam

func (i *TeamIndex) CheckTeam(teamId string) bool

func (*TeamIndex) GetTeam

func (i *TeamIndex) GetTeam(teamId string) basis.ITeamEntity

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) AddUser

func (i *UserIndex) AddUser(user basis.IUserEntity) error

func (*UserIndex) CheckUser

func (i *UserIndex) CheckUser(userId string) bool

func (*UserIndex) GetUser

func (i *UserIndex) GetUser(userId string) basis.IUserEntity

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) AddZone

func (i *ZoneIndex) AddZone(zone basis.IZoneEntity) error

func (*ZoneIndex) CheckZone

func (i *ZoneIndex) CheckZone(zoneId string) bool

func (*ZoneIndex) GetZone

func (i *ZoneIndex) GetZone(zoneId string) basis.IZoneEntity

func (*ZoneIndex) RemoveZone

func (i *ZoneIndex) RemoveZone(zoneId string) (basis.IZoneEntity, error)

func (*ZoneIndex) UpdateZone

func (i *ZoneIndex) UpdateZone(zone basis.IZoneEntity) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL