2023-07-17 03:23:26 +02:00
|
|
|
package ipc
|
|
|
|
|
|
|
|
import (
|
2024-05-04 01:06:24 +02:00
|
|
|
"github.com/quexten/goldwarden/cli/ipc/messages"
|
2023-07-17 03:23:26 +02:00
|
|
|
)
|
|
|
|
|
2023-09-20 03:05:44 +02:00
|
|
|
func ParsedPayload(m messages.IPCMessage) interface{} {
|
|
|
|
payload := messages.ParsePayload(m)
|
|
|
|
return payload
|
2023-07-17 05:02:29 +02:00
|
|
|
}
|
|
|
|
|
2023-09-20 03:05:44 +02:00
|
|
|
func IPCMessageFromPayload(payload interface{}) (messages.IPCMessage, error) {
|
|
|
|
message, err := messages.IPCMessageFromPayload(payload)
|
|
|
|
return message, err
|
2023-07-17 05:02:29 +02:00
|
|
|
}
|