Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Invoker = func(payloadType reflect.Type, payloadValue, funcValue reflect.Value, funcType reflect.Type) error { var result []reflect.Value if payloadType.Kind() == reflect.Ptr { result = funcValue.Call([]reflect.Value{payloadValue}) } else { result = funcValue.Call([]reflect.Value{reflect.Indirect(payloadValue)}) } if len(result) > 0 { intf := result[0].Interface() if e, ok := intf.(error); ok { return e } } return nil }
Functions ¶
func GetHandler ¶
func GetPayloadName ¶
func GetPayloadName(payload interface{}) string
func InvokeHandler ¶
func InvokeHandler(payload interface{}) (e error)
func MarshalPayload ¶
Types ¶
type NsqHandler ¶ added in v0.0.8
type NsqHandler struct { }
func (NsqHandler) HandleMessage ¶ added in v0.0.8
func (NsqHandler) HandleMessage(m *nsq.Message) error
Click to show internal directories.
Click to hide internal directories.