mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-24 11:29:24 +00:00
18 lines
239 B
Go
18 lines
239 B
Go
package amqp
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
type AMQPPayload struct {
|
|
Data interface{}
|
|
}
|
|
|
|
type AMQPPayloader interface {
|
|
MarshalJSON() ([]byte, error)
|
|
}
|
|
|
|
func (h AMQPPayload) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(h.Data)
|
|
}
|