biz

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TransType_Transfer transact.TransType = 1001

1. 定义事务类型和处理器

Variables

This section is empty.

Functions

func LoginHandler

func LoginHandler()

func TimerDemo

func TimerDemo()

func TransferMoney

func TransferMoney()

Types

type CacheConfig

type CacheConfig struct {
	RedisAddr string
	MaxSize   int
}

func (*CacheConfig) Close

func (c *CacheConfig) Close() error

func (*CacheConfig) Init

func (c *CacheConfig) Init() error

func (*CacheConfig) Name

func (c *CacheConfig) Name() string

type MyTimerAction

type MyTimerAction struct{}

func (*MyTimerAction) OnTimer

func (a *MyTimerAction) OnTimer(h timer.TimerHandle, ud interface{}) bool

type PlayerModule

type PlayerModule struct {
	// contains filtered or unexported fields
}

func (*PlayerModule) Init

func (m *PlayerModule) Init()

func (*PlayerModule) ModuleName

func (m *PlayerModule) ModuleName() string

func (*PlayerModule) Shutdown

func (m *PlayerModule) Shutdown()

func (*PlayerModule) Update

func (m *PlayerModule) Update()

type TransferHandler

type TransferHandler struct{}

func (*TransferHandler) OnChildTransRep

func (h *TransferHandler) OnChildTransRep(n *transact.TransNode, hChild transact.TransNodeID, retCode int, ud interface{}) transact.TransExeResult

func (*TransferHandler) OnCommit

func (*TransferHandler) OnExcute

func (h *TransferHandler) OnExcute(n *transact.TransNode, ud interface{}) transact.TransExeResult

func (*TransferHandler) OnRollBack

Jump to

Keyboard shortcuts

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