mirror of
https://github.com/kopia/kopia.git
synced 2026-01-01 11:07:50 -05:00
* 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
12 lines
391 B
Go
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
|
|
}
|