commEntityManager

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: GPL-3.0 Imports: 6 Imported by: 5

README

功能说明

它实现了commEntity.IEntity的自动化的数据管理能力

它基于redis和sql,封装了commEntity.IEntity实现实体们的数据增删改查的能力,简化了redis和mysql的操作方法

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EntityManager *entityManager
)

Functions

func DeleteEntity added in v1.0.1

func DeleteEntity(entity commEntity.IEntity) error

func FindEntity added in v1.0.1

func FindEntity(entityType string, finder func(entity commEntity.IEntity) bool) commEntity.IEntity

func FindEntityList added in v1.0.1

func FindEntityList(entityType string, finder func(entity commEntity.IEntity) bool) []commEntity.IEntity

func GetAgileService added in v1.0.1

func GetAgileService(entityType string) *commRedisService.RedisAgileService

func GetEntityById added in v1.0.1

func GetEntityById(entityType string, id int64) commEntity.IEntity

func GetEntityByServiceKey added in v1.0.1

func GetEntityByServiceKey(entityType string, serviceKey string) (commEntity.IEntity, error)

func GetEntityByServiceKeys added in v1.0.1

func GetEntityByServiceKeys(entityType string, serviceKeys []string) (map[string]commEntity.IEntity, error)

func GetEntityCount added in v1.0.1

func GetEntityCount(entityType string, finder func(entity commEntity.IEntity) bool) (int, error)

func GetEntityMap added in v1.0.1

func GetEntityMap(entityType string) (map[string]commEntity.IEntity, error)

func InitLoadEntity

func InitLoadEntity()

func InsertEntity added in v1.0.1

func InsertEntity(entity commEntity.IEntity) error

func Scheduler

func Scheduler()

Scheduler 创建一个线程

func UpdateEntity added in v1.0.1

func UpdateEntity(entity commEntity.IEntity) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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