Documentation
¶
Index ¶
- type BillImportWebsocket
- func (b *BillImportWebsocket) Read() error
- func (b *BillImportWebsocket) ReadFile() (name []byte, file io.Reader, err error)
- func (b *BillImportWebsocket) RegisterMsgHandlerCreateRetry(handler func(transactionModel.Info) error)
- func (b *BillImportWebsocket) RegisterMsgHandlerIgnoreTrans()
- func (b *BillImportWebsocket) SendError() error
- func (b *BillImportWebsocket) SendFinish() error
- func (b *BillImportWebsocket) SendTransactionCreateFail(transInfo transactionModel.Info, failErr error) error
- func (b *BillImportWebsocket) SendTransactionCreateSuccess(transaction transactionModel.Transaction) error
- func (b *BillImportWebsocket) TryFinish() error
- type TotalData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillImportWebsocket ¶
type BillImportWebsocket struct { msg.Reader WaitRetryTrans *dataTool.RWMutexMap[string, transactionModel.Info] RetryingTrans *dataTool.RWMutexMap[string, transactionModel.Info] // contains filtered or unexported fields }
func NewBillImportWebsocket ¶
func NewBillImportWebsocket(conn *websocket.Conn, account accountModel.Account) *BillImportWebsocket
func (*BillImportWebsocket) Read ¶
func (b *BillImportWebsocket) Read() error
func (*BillImportWebsocket) ReadFile ¶
func (b *BillImportWebsocket) ReadFile() (name []byte, file io.Reader, err error)
func (*BillImportWebsocket) RegisterMsgHandlerCreateRetry ¶
func (b *BillImportWebsocket) RegisterMsgHandlerCreateRetry(handler func(transactionModel.Info) error)
func (*BillImportWebsocket) RegisterMsgHandlerIgnoreTrans ¶
func (b *BillImportWebsocket) RegisterMsgHandlerIgnoreTrans()
func (*BillImportWebsocket) SendError ¶
func (b *BillImportWebsocket) SendError() error
func (*BillImportWebsocket) SendFinish ¶
func (b *BillImportWebsocket) SendFinish() error
func (*BillImportWebsocket) SendTransactionCreateFail ¶
func (b *BillImportWebsocket) SendTransactionCreateFail(transInfo transactionModel.Info, failErr error) error
func (*BillImportWebsocket) SendTransactionCreateSuccess ¶
func (b *BillImportWebsocket) SendTransactionCreateSuccess(transaction transactionModel.Transaction) error
func (*BillImportWebsocket) TryFinish ¶
func (b *BillImportWebsocket) TryFinish() error
Directories
¶
Path | Synopsis |
---|---|
Package msg is the middle layer of client websocket communication This package is used to standardize websocket message formats with clients
|
Package msg is the middle layer of client websocket communication This package is used to standardize websocket message formats with clients |
Click to show internal directories.
Click to hide internal directories.