Files
kopia/notification/notifydata/empty.go
Jarek Kowalski fec575bd90 fix(server): fixed server-based notifications (#4598)
* fix(server): fixed server-based notifications

Used TypedEventArgs instead of `any` to ensure all notification data
carries type information, allowing the server to property deserialize it.

* fix
2025-05-24 08:15:45 -07:00

12 lines
391 B
Go

package notifydata
import "github.com/kopia/kopia/internal/grpcapi"
// EmptyEventData is a placeholder for events that do not carry any additional data.
type EmptyEventData struct{}
// EventArgsType returns the type of event arguments for EmptyEventData.
func (e EmptyEventData) EventArgsType() grpcapi.NotificationEventArgType {
return grpcapi.NotificationEventArgType_ARG_TYPE_EMPTY
}