eventsmiddleware

package
v2.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerCreated added in v2.3.0

func ContainerCreated(r *provider.CreateContainerResponse, req *provider.CreateContainerRequest, spaceOwner, executant *user.UserId) events.ContainerCreated

ContainerCreated converts the response to an event

func FileDownloaded added in v2.1.0

FileDownloaded converts the response to an event

func FileLocked added in v2.19.2

func FileLocked(r *provider.SetLockResponse, req *provider.SetLockRequest, owner, executant *user.UserId) events.FileLocked

FileLocked converts the response to an events

func FileTouched added in v2.6.1

func FileTouched(r *provider.TouchFileResponse, req *provider.TouchFileRequest, spaceOwner, executant *user.UserId) events.FileTouched

FileTouched converts the response to an event

func FileUnlocked added in v2.19.2

func FileUnlocked(r *provider.UnlockResponse, req *provider.UnlockRequest, owner, executant *user.UserId) events.FileUnlocked

FileUnlocked converts the response to an event

func FileUploaded added in v2.1.0

FileUploaded converts the response to an event

func FileVersionRestored added in v2.1.0

func FileVersionRestored(r *provider.RestoreFileVersionResponse, req *provider.RestoreFileVersionRequest, spaceOwner, executant *user.UserId) events.FileVersionRestored

FileVersionRestored converts the response to an event

func ItemMoved added in v2.1.0

func ItemMoved(r *provider.MoveResponse, req *provider.MoveRequest, spaceOwner, executant *user.UserId) events.ItemMoved

ItemMoved converts the response to an event

func ItemPurged added in v2.1.0

ItemPurged converts the response to an event

func ItemRestored added in v2.1.0

ItemRestored converts the response to an event

func ItemTrashed added in v2.1.0

func ItemTrashed(r *provider.DeleteResponse, req *provider.DeleteRequest, spaceOwner, executant *user.UserId) events.ItemTrashed

ItemTrashed converts the response to an event

func LinkAccessFailed added in v2.1.0

LinkAccessFailed converts the response to an event

func LinkAccessed added in v2.1.0

func LinkAccessed(r *link.GetPublicShareByTokenResponse, executant *user.UserId) events.LinkAccessed

LinkAccessed converts the response to an event

func LinkCreated added in v2.1.0

func LinkCreated(r *link.CreatePublicShareResponse, executant *user.UserId) events.LinkCreated

LinkCreated converts the response to an event

func LinkRemoved added in v2.1.0

LinkRemoved converts the response to an event

func LinkUpdated added in v2.1.0

LinkUpdated converts the response to an event

func NewStream

func NewStream() grpc.StreamServerInterceptor

NewStream returns a new server stream interceptor that creates the application context.

func NewUnary

func NewUnary(m map[string]interface{}) (grpc.UnaryServerInterceptor, int, error)

NewUnary returns a new unary interceptor that emits events when needed no lint because of the switch statement that should be extendable

func ReceivedShareUpdated added in v2.1.0

ReceivedShareUpdated converts the response to an event

func ShareCreated

func ShareCreated(r *collaboration.CreateShareResponse, executant *user.UserId) events.ShareCreated

ShareCreated converts the response to an event

func ShareRemoved added in v2.1.0

ShareRemoved converts the response to an event

func ShareUpdated added in v2.1.0

ShareUpdated converts the response to an event

func SpaceCreated added in v2.1.0

SpaceCreated converts the response to an event

func SpaceDeleted added in v2.1.0

SpaceDeleted converts the response to an event

func SpaceDisabled added in v2.1.0

SpaceDisabled converts the response to an event

func SpaceEnabled added in v2.1.0

SpaceEnabled converts the response to an event

func SpaceRenamed added in v2.1.0

SpaceRenamed converts the response to an event

func SpaceShareUpdated added in v2.20.0

SpaceShareUpdated converts the response to an events

func SpaceShared added in v2.11.0

SpaceShared converts the response to an event func SpaceShared(req *provider.AddGrantRequest, executant, sharer *user.UserId, grantee *provider.Grantee) events.SpaceShared {

func SpaceUnshared added in v2.12.0

SpaceUnshared converts the response to an event

func SpaceUpdated added in v2.12.0

SpaceUpdated converts the response to an event

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL