Files
opencloud/services/clientlog/pkg/service/events.go
2026-02-12 17:21:09 +01:00

21 lines
679 B
Go

package service
// FileEvent is emitted when a file is uploaded/renamed/deleted/...
type FileEvent struct {
ParentItemID string `json:"parentitemid"`
ItemID string `json:"itemid"`
SpaceID string `json:"spaceid"`
InitiatorID string `json:"initiatorid"`
Etag string `json:"etag"`
// Only in case of sharing (refactor this into separate struct when more fields are needed)
AffectedUserIDs []string `json:"affecteduserids"`
}
// BackchannelLogout is emitted when the callback revived from the identity provider
type BackchannelLogout struct {
UserID string `json:"userid"`
Timestamp string `json:"timestamp"`
SessionID string `json:"sessionid"`
}