Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorMsgDecode = errors.New("event msg decode error") ErrorEventDone = errors.New("event had been done") ErrorInternalRedis = errors.New("internal redis error") ErrorNoEnoughAsset = errors.New("asset not enough") ErrorSetAssetFromCBTimeOut = errors.New("set asset from db exec timeout") ErrorSetAssetDoneOut = errors.New("set asset from db exec done out") ErrorWatchAssetCasLoopMaxRetry = errors.New("watch user asset CAS loop reached maximum number of retries") ErrorSendAssetChangeEventMsg = errors.New("send user asset change event msg fail") )
Functions ¶
This section is empty.
Types ¶
type AssetIncrHandler ¶
type IUserAssetCallBack ¶
type IUserAssetEventMsgListener ¶
type IUserAssetEventMsgListener interface { primitive.TransactionListener }
type IUserAssetEventUseCase ¶
type IUserAssetEventUseCase interface {
UserAssetChangeTx(ctx context.Context, opUserType int, event *station.BizEventAssetChange, handle AssetIncrHandler) (*base.UserAsset, error)
}
type IUserAssetRepository ¶
type UserAssetEventMsg ¶
type UserAssetEventMsg struct {
*station.BizEventAssetChange
}
Click to show internal directories.
Click to hide internal directories.