Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct { TxHandler sdk.TxHandler SrcManager sdk.ResourceManager }
Core core parameters for handler Impl
type FuncBox ¶
type FuncBox interface { OpenTxHandlerBox() map[TranCode]TxHandleFunc OpenSrcHandlerBox() map[TranCode]SrcHandleFunc }
FuncBox handler functions with TranCode
type Handler ¶
type Handler interface { HandleMessage(ctx context.Context, msg Message) RegisterEvent() error GetEvent() <-chan sdk.Event // RegisterTxHandleFunc(trancode TranCode, handleFunc TxHandleFunc) error // RegisterSrcHandlerFunc(trancode TranCode, handleFunc SrcHandleFunc) error FillHandlerFunc(box FuncBox) error }
Handler client handler for transaction
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
Impl implement for handler
func (*Impl) FillHandlerFunc ¶
FillHandlerFunc regisnter handler functions in the box
func (*Impl) HandleMessage ¶
HandleMessage handle message
type SrcHandleFunc ¶
SrcHandleFunc resource management handle function
Click to show internal directories.
Click to hide internal directories.