Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BankService ¶
func GetBankServiceRpc ¶
func GetBankServiceRpc() (*BankService, error)
func InitBankService ¶
func InitBankService(b *BankService) (*BankService, error)
func (*BankService) AddMoney ¶
func (b *BankService) AddMoney(id, num int) error
func (*BankService) AddMoneyRollback ¶
func (b *BankService) AddMoneyRollback(id, num int, errMsg string)
func (*BankService) GetMoney ¶
func (b *BankService) GetMoney(id int) int
func (*BankService) RemoveMoney ¶
func (b *BankService) RemoveMoney(id, num int) error
func (*BankService) RemoveMoneyRollback ¶
func (b *BankService) RemoveMoneyRollback(id, num int, errMsg string)
type BankServiceConstructFunc ¶
type BankServiceConstructFunc func(impl *BankService) (*BankService, error)
type BankServiceIOCInterface ¶
type BankServiceIOCInterface interface { GetMoney(id int) int AddMoney(id, num int) error AddMoneyRollback(id, num int, errMsg string) RemoveMoney(id, num int) error RemoveMoneyRollback(id, num int, errMsg string) }
func GetBankServiceIOCInterfaceRpc ¶
func GetBankServiceIOCInterfaceRpc() (BankServiceIOCInterface, error)
Click to show internal directories.
Click to hide internal directories.