func_delay

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func ShowSpans

func ShowSpans()

func Stop

func Stop()

Types

type FunDelay

type FunDelay struct {
	Name FunName
	T0   int64
	T9   int64
}

func NewFuncDelay

func NewFuncDelay(name FunName) *FunDelay

func (*FunDelay) Finish

func (f *FunDelay) Finish()

type FunDelays

type FunDelays struct {
	Chans     chan *FunDelay
	CheckChan chan int32
	ResetChan chan struct{}
	StopChan  chan chan struct{}
	Maps      map[FunName]int64
	Nums      map[FunName]int64
	// contains filtered or unexported fields
}

type FunName

type FunName string
const (
	// ---------- DB   HANDLER ------------------
	FUN_NAME_DB_GET_BASE_DATA        FunName = "DB_GET_BASE_DATA"
	FUN_NAME_DB_GET_SCENE_DATA       FunName = "DB_GET_SCENE_DATA"
	FUN_NAME_DB_SAVE_SCENE_DATA      FunName = "DB_SAVE_SCENE_DATA"
	FUN_NAME_DB_UP_LAST_LOGIN        FunName = "DB_UP_LAST_LOGIN"
	FUN_NAME_DB_GET_HOME_DATA        FunName = "DB_GET_HOME_DATA"
	FUN_NAME_DB_SAVE_HOME_DATA       FunName = "DB_SAVE_HOME_DATA"
	FUN_NAME_DB_LOAD_USING_NFT       FunName = "DB_LOAD_USING_NFT"
	FUN_NAME_DB_SAVE_LOGIN_DATA      FunName = "DB_SAVE_LOGIN_DATA"
	FUN_NAME_DB_DEL_LOGIN_DATA       FunName = "DB_DEL_LOGIN_DATA"
	FUN_NAME_DB_LOAD_GAME_BUILD      FunName = "DB_LOAD_GAME_BUILD"
	FUN_NAME_DB_GET_TALENT_DATA      FunName = "DB_GET_TALENT_DATA"
	FUN_NAME_DB_SAVE_TALENT_DATA     FunName = "DB_SAVE_TALENT_DATA"
	FUN_NAME_DB_GET_USER_TASK        FunName = "DB_GET_USER_TASK"
	FUN_NAME_DB_SAVE_USER_TASK       FunName = "DB_SAVE_USER_TASK"
	FUN_NAME_DB_GET_USER_GRANARY     FunName = "DB_GET_USER_GRANARY"
	FUN_NAME_DB_GET_GRANARY_BY_ID    FunName = "DB_GET_GRANARY_BY_ID"
	FUN_NAME_DB_ADD_GRANARY          FunName = "DB_ADD_GRANARY"
	FUN_NAME_DB_CLEAR_USER_GRANARY   FunName = "DB_CLEAR_USER_GRANARY"
	FUN_NAME_DB_GLOBAL_LOG           FunName = "DB_SAVE_GLOBAL_LOG"
	FUN_NAME_DB_CREATE_USER_LOG      FunName = "DB_CREATE_USER_LOG"
	FUN_NAME_DB_USER_LOGIN_LOG       FunName = "DB_USER_LOGIN_LOG"
	FUN_NAME_DB_USER_HOME_LOG        FunName = "DB_USER_HOME_LOG"
	FUN_NAME_DB_KILL_MONSTER_LOG     FunName = "DB_KILL_MONSTER_LOG"
	FUN_NAME_DB_USER_ITEM_LOG        FunName = "DB_USER_ITEM_LOG"
	FUN_NAME_DB_USER_TASK_LOG        FunName = "DB_USER_TASK_LOG"
	FUN_NAME_DB_USER_TALENT_NODE_LOG FunName = "DB_USER_TALENT_NODE_LOG"
	FUN_NAME_DB_USER_TALENT_EXP_LOG  FunName = "DB_USER_TALENT_EXP_LOG"
	FUN_NAME_DB_USER_ANIMAL_LOG      FunName = "DB_USER_ANIMAL_LOG"
	FUN_NAME_DB_USER_HOME_ACTION_LOG FunName = "DB_USER_HOME_ACTION_LOG"
	FUN_NAME_DB_USER_COLLECT_LOG     FunName = "DB_USER_COLLECT_LOG"
	FUN_NAME_DB_USER_DEATH_LOG       FunName = "DB_USER_DEATH_LOG"
	FUN_NAME_DB_GET_USER_ENERGY      FunName = "DB_GET_USER_ENERGY"

	// ---------- WEB3 HANDLER ------------------
	FUN_NAME_WEB3_LOAD_NFT        FunName = "WEB3_LOAD_NFT"
	FUN_NAME_WEB3_GET_USER_DATA   FunName = "WEB3_GET_USER_DATA"
	FUN_NAME_WEB3_MULTI_UP_LAND   FunName = "WEB3_MULTI_UP_LAND"
	FUN_NAME_WEB3_MULTI_RECYCLING FunName = "WEB3_MULTI_RECYCLING"
	FUN_NAME_WEB3_MULTI_UP_BUILD  FunName = "WEB3_MULTI_UP_BUILD"
	FUN_NAME_WEB3_UP_NFT          FunName = "WEB3_UP_NFT"
	FUN_NAME_WEB3_MULTI_UP_NFT    FunName = "WEB3_MULTI_UP_NFT"
	FUN_NAME_WEB3_LOAD_BUILD      FunName = "WEB3_LOAD_BUILD"
	FUN_NAME_WEB3_USE_CONSUMABLE  FunName = "WEB3_USE_CONSUMABLE"
	FUN_NAME_WEB3_USE_LUAUSD      FunName = "WEB3_FUN_USE_LUAUSD"
	FUN_NAME_WEB3_BURN_NFT        FunName = "WEB3_FUN_BURN_NFT"
	FUN_NAME_WEB3_MINT_NFT        FunName = "WEB3_FUN_MINT_NFT"
	FUN_NAME_WEB3_MULTI_MINT_NFT  FunName = "WEB3_FUN_MULTI_MINT_NFT"
	FUN_NAME_WEB3_LEARN_RECIPES   FunName = "WEB3_FUN_LEARN_RECIPES"
	FUN_NAME_WEB3_FORGET_RECIPES  FunName = "WEB3_FUN_FORGET_RECIPES"

	// ----------- GAME SER HANDLER -------------
	FUN_NAME_GRPC_EVENT_CALL             FunName = "RPC_EVENT_CALL"
	FUN_NAME_GRPC_EVENT_CALL_NO_RETURN   FunName = "RPC_EVENT_CALL_NO_RETURN"
	FUN_NAME_GRPC_CHECK_LOGIN            FunName = "RPC_CHECK_LOGIN"
	FUN_NAME_GRPC_ENTER_GAME             FunName = "RPC_ENTER_GAME"
	FUN_NAME_GRPC_LEAVE_GAME             FunName = "RPC_LEAVE_GAME"
	FUN_NAME_GRPC_SAVE_PLAYER_DATA       FunName = "RPC_SAVE_PLAYER_DATA"
	FUN_NAME_GRPC_CAPTURE_ANIMAL         FunName = "RPC_CAPTURE_ANIMAL"
	FUN_NAME_GRPC_GET_ANIMAL_LIST        FunName = "RPC_GET_ANIMAL_LIST"
	FUN_NAME_GRPC_SAVE_HOME_DATA         FunName = "RPC_SAVE_HOME_DATA"
	FUN_NAME_GRPC_UP_HOME_LAST_SAVE_TIME FunName = "RPC_UP_HOME_LAST_SAVE_TIME"
	FUN_NAME_GRPC_GET_HOME_DATA          FunName = "RPC_GET_HOME_DATA"
	FUN_NAME_GRPC_MULTI_UP_ANIMAL_DATA   FunName = "RPC_MULTI_UP_ANIMAL_DATA"
	FUN_NAME_GRPC_GET_ALL_BUILD          FunName = "RPC_GET_ALL_BUILD"
	FUN_NAME_GRPC_GET_USER_ALL_DATA      FunName = "RPC_GET_USER_ALL_DATA"
	FUN_NAME_GRPC_MINT_USER_NFT          FunName = "RPC_MINT_USER_NFT"
	FUN_NAME_GRPC_MULTI_MINT_USER_NFT    FunName = "RPC_MULTI_MINT_USER_NFT"
	FUN_NAME_GRPC_TAKE_USER_NFT          FunName = "RPC_TAKE_USER_NFT"
	FUN_NAME_GRPC_USE_USER_NFT           FunName = "RPC_USE_USER_NFT"
	FUN_NAME_GRPC_GRANARY_STOCKPILE      FunName = "RPC_GRANARY_STOCKPILE"
	FUN_NAME_GRPC_KILL_MONSTER           FunName = "RPC_KILL_MONSTER"
	FUN_NAME_GRPC_PLAYER_DEATH           FunName = "RPC_PLAYER_DEATH"
	FUN_NAME_GRPC_CHANGE_SERVICE         FunName = "RPC_CHANGE_SERVICE"
	FUN_NAME_GRPC_ADD_TALENT_EXP         FunName = "RPC_ADD_TALENT_EXP"
	FUN_NAME_GRPC_USE_ITEM               FunName = "RPC_USE_ITEM"
	FUN_NAME_GRPC_USER_GET_NFT           FunName = "RPC_USER_GET_NFT"
	FUN_NAME_GRPC_TASK_FINISH            FunName = "RPC_TASK_FINISH"
	FUN_NAME_GRPC_TASK_LIST_FINISH       FunName = "RPC_TASK_LIST_FINISH"
	FUN_NAME_GRPC_TALENT_UPDATE          FunName = "RPC_TALENT_UPDATE"
	FUN_NAME_GRPC_BROAD_CLIENT_MSG       FunName = "RPC_BROAD_CLIENT_MSG"
	FUN_NAME_GRPC_MULTI_CLIENT_MSG       FunName = "RPC_MULTI_CLIENT_MSG"
	FUN_NAME_GRPC_SELECT_SCENE_SER       FunName = "RPC_SELECT_SCENE_SER"
	FUN_NAME_GRPC_UP_USED_AVATAR         FunName = "RPC_UP_USED_AVATAR"
	FUN_NAME_GRPC_UP_USER_ENERGY_LIMIT   FunName = "RPC_UP_USER_ENERGY_LIMIT"
	FUN_NAME_GRPC_UP_USE_NFT             FunName = "RPC_UP_USE_NFT"

	// ------------ CLIENT HANDLER --------------
	FUN_NAME_LOGIN                FunName = "LOGIN"
	FUN_NAME_QUERY_USER_BASE      FunName = "QUERY_USER_BASE"
	FUN_NAME_CREATE_USER_BASE     FunName = "CREATE_USER_BASE"
	FUN_NAME_SING_IN              FunName = "SING_IN"
	FUN_NAME_QUERY_TALENT_EXP     FunName = "QUERY_TALENT_EXP"
	FUN_NAME_UPGRADE_TALENT_NODE  FunName = "UPGRADE_TALENT_NODE"
	FUN_NAME_QUERY_GRANARY        FunName = "QUERY_GRANARY"
	FUN_NAME_GRANARY_COLLECT      FunName = "GRANARY_COLLECT"
	FUN_NAME_QUERY_ANIMAL_LIST    FunName = "QUERY_ANIMAL_LIST"
	FUN_NAME_FREED_ANIMAL         FunName = "FREED_ANIMAL"
	FUN_NAME_ITEM_GET             FunName = "ITEM_GET"
	FUN_NAME_ITEM_USE             FunName = "ITEM_USE"
	FUN_NAME_LOAD_AVATAR          FunName = "LOAD_AVATAR"
	FUN_NAME_UNLOAD_AVATAR        FunName = "UNLOAD_AVATAR"
	FUN_NAME_QUERY_LAND           FunName = "QUERY_LAND"
	FUN_NAME_LAND_BUILD           FunName = "LAND_BUILD"
	FUN_NAME_RECYCLING            FunName = "RECYCLING"
	FUN_NAME_MINT_BATTERY         FunName = "MINT_BATTERY"
	FUN_NAME_CHARGED              FunName = "CHARGED"
	FUN_NAME_HARVEST              FunName = "HARVEST"
	FUN_NAME_COLLECTION           FunName = "COLLECTION"
	FUN_NAME_SELF_BUILDS          FunName = "SELF_BUILDS"
	FUN_NAME_SELF_TASKS           FunName = "SELF_TASKS"
	FUN_NAME_ACCEPT_TASK          FunName = "ACCEPT_TASK"
	FUN_NAME_ACCEPT_TASK_LIST     FunName = "ACCEPT_TASK_LIST"
	FUN_NAME_ABANDON_TASK         FunName = "ABANDON_TASK"
	FUN_NAME_ABANDON_TASK_LIST    FunName = "ABANDON_TASK_LIST"
	FUN_NAME_UP_TASK_PROGRESS     FunName = "UP_TASK_PROGRESS"
	FUN_NAME_TASK_REWARD          FunName = "TASK_REWARD"
	FUN_NAME_QUERY_PLAYER_SETTING FunName = "QUERY_PLAYER_SETTING"
	FUN_NAME_SAVE_PLAYER_SETTING  FunName = "SAVE_PLAYER_SETTING"
)

Jump to

Keyboard shortcuts

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