log_module

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogModel

type LogModel struct {
	module_base.ModuleBase
	// contains filtered or unexported fields
}

func GetLogModel

func GetLogModel() (*LogModel, error)

func NewLogModel

func NewLogModel() *LogModel

func (*LogModel) AddCreateUserLog

func (p *LogModel) AddCreateUserLog(
	createAt time.Time,
	userId int64, name string, roleId int32,
	gender string, icon string, oS string, platFrom string,
)

func (*LogModel) AddGlobalLog

func (p *LogModel) AddGlobalLog(log *dbData.GlobalLog)

actionType proto.GameLogType.String()

func (*LogModel) AddKillMonsterLog

func (p *LogModel) AddKillMonsterLog(
	createAt time.Time, userId int64, name string,
	monCid int32, monName string, monOwner int64,
	mapId int32, x, y, z float32,
)

func (*LogModel) AddUserAnimalLog

func (p *LogModel) AddUserAnimalLog(
	createAt time.Time, userId int64, name string, action string,
	animal base_data.GrpcAnimalBaseData,
)

func (*LogModel) AddUserChangeMapLog

func (p *LogModel) AddUserChangeMapLog(
	createAt time.Time, userId int64, name, state string,
	fromScene string, fromSceneOwner int64, toScene string, toSceneOwner int64,
	usedMs int64,
)

func (*LogModel) AddUserCollectLog

func (p *LogModel) AddUserCollectLog(
	createAt time.Time, userId int64, name string, state string,
	inScene string, targetEntity base_data.EntityInfo,
	dropCid uint32, dropName string, dropNum, quality uint32,
)

func (*LogModel) AddUserDeathLog

func (p *LogModel) AddUserDeathLog(
	createAt time.Time,
	scene, sceneAppId string, sceneOwner int64,
	userId int64, name string,
	killerType string, killerId int64, killerName string,
	x, y, z float32,
)

func (*LogModel) AddUserHomeActionLog

func (p *LogModel) AddUserHomeActionLog(
	createAt time.Time, userId int64, name string, action string,
	itemCid uint32, itemName string, num uint32, quality uint32,
	soilId int64,
)

func (*LogModel) AddUserItemLog

func (p *LogModel) AddUserItemLog(
	createAt time.Time, userId int64, name string, itemAction string,
	itemCid int32, itemName string, num, quality int32, fromArea string,
	entityName, entityType, nftId, desc string,
)

func (*LogModel) AddUserLoginLog

func (p *LogModel) AddUserLoginLog(
	createAt time.Time, userId int64,
	name, actionType, agent, scene string,
	onlineSec int32,
)

func (*LogModel) AddUserTalentExpLog

func (p *LogModel) AddUserTalentExpLog(
	createAt time.Time, userId int64, name string, action string,
	talentType string, exp int32, desc string,
)

func (*LogModel) AddUserTalentNodeLog

func (p *LogModel) AddUserTalentNodeLog(
	createAt time.Time, userId int64, name string, action string,
	talentType string, nodeId, nodeLevel uint32,
)

func (*LogModel) AddUserTaskLog

func (p *LogModel) AddUserTaskLog(
	createAt time.Time, userId int64, name string, action string,
	taskId int32, taskName string, inTaskListId int32, inTaskListType string,
)

func (*LogModel) Daily

func (p *LogModel) Daily(utc time.Time)

func (*LogModel) Hourly

func (p *LogModel) Hourly(utc time.Time)

func (*LogModel) Minutely

func (p *LogModel) Minutely(utc time.Time)

func (*LogModel) OnInit

func (p *LogModel) OnInit() error

func (*LogModel) OnTick

func (p *LogModel) OnTick(utc time.Time)

func (*LogModel) Secondly

func (p *LogModel) Secondly(utc time.Time)

Jump to

Keyboard shortcuts

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