daemon-socket-go-example/msghandlers/echorequesthandler.go

14 lines
259 B
Go
Raw Normal View History

2024-12-28 19:11:50 +01:00
package msghandlers
import (
"daemonSocketExample/daemonconn"
"log/slog"
)
func handleEchoRequest(msg daemonconn.Message) error {
echoRequest := msg.(daemonconn.EchoRequest)
slog.Info("Got echo request", "echoByte", echoRequest.EchoByte)
return nil
}