directory
Version:
v0.0.0-...-c107da6
Opens a new window with list of versions in this module.
Published: Jul 12, 2020
License: Apache-2.0
Opens a new window with license information.
README
¶
Use Async Feature
Implement this interface
//AsyncCallbackService callback interface for async
type AsyncCallbackService interface {
CallBack(response CallbackResponse) // callback
}
like this
type UserProvider struct {
GetUser func(ctx context.Context, req []interface{}, rsp *User) error
}
func (u *UserProvider) CallBack(res common.CallbackResponse) {
fmt.Println("CallBack res:",res)
}
Dubbogo will run Async logic once network request finished.
Directories
¶
go-client
|
|
|
|
go-server
|
|
|
|
Click to show internal directories.
Click to hide internal directories.