Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertHandler ¶
func ConvertHandler(handlerObj interface{}) (Handler, *HandlerTypeInfo)
func ConvertPtrHandler ¶
func ConvertPtrHandler(ptrHandlerObj interface{}) (*Handler, *HandlerTypeInfo)
Types ¶
type ErrorNumber ¶
type ErrorNumber interface {
ErrorNumber() int
}
type Handler ¶
type Handler func(ctx *countlog.Context, request unsafe.Pointer) (response unsafe.Pointer, err error)
Handler is the function prototype for both client and server. User should substitute request and response with their own concrete types. For example func(ctx *countlog.Context, request NewOrderRequest) (NewOrderResponse, error)
type HandlerTypeInfo ¶
type Marshaller ¶
type Unmarshaller ¶
type WithNumberError ¶
func (*WithNumberError) Error ¶
func (err *WithNumberError) Error() string
func (*WithNumberError) ErrorNumber ¶
func (err *WithNumberError) ErrorNumber() int
Click to show internal directories.
Click to hide internal directories.