MCPcopy Index your code
hub / github.com/frain-dev/convoy / DecodeMsgPack

Function DecodeMsgPack

pkg/msgpack/msgpack.go:40–53  ·  view source on GitHub ↗
(pack []byte, target interface{})

Source from the content-addressed store, hash-verified

38}
39
40func DecodeMsgPack(pack []byte, target interface{}) error {
41 var buf bytes.Buffer
42 buf.Write(pack)
43
44 enc := msgpack.NewDecoder(&buf)
45 enc.SetCustomStructTag("json")
46
47 err := enc.Decode(&target)
48 if err != nil {
49 return err
50 }
51
52 return nil
53}

Callers 15

GetCircuitBreakerMethod · 0.92
FormatPayloadMethod · 0.92
FormatResultMethod · 0.92
ProcessBatchRetryFunction · 0.92
ExpireSecretFunction · 0.92
ProcessBulkOnboardFunction · 0.92
ProcessNotificationsFunction · 0.92
ProcessEventDeliveryFunction · 0.92

Calls 2

WriteMethod · 0.65
DecodeMethod · 0.45