goldwarden/ipc/ipc.go

16 lines
342 B
Go
Raw Normal View History

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