Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add aliases to support specifying EventOptions #1696

Merged
merged 2 commits into from
Sep 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion fakestorage/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ func NewServerWithHostPort(objects []Object, host string, port uint16) (*Server,
})
}

type EventManagerOptions = notification.EventManagerOptions

type EventNotificationOptions = notification.EventNotificationOptions
fsouza marked this conversation as resolved.
Show resolved Hide resolved

// Options are used to configure the server on creation.
type Options struct {
InitialObjects []Object
Expand Down Expand Up @@ -111,7 +115,7 @@ type Options struct {

// EventOptions contains the events that should be published and the URL
// of the Google cloud function such events should be published to.
EventOptions notification.EventManagerOptions
EventOptions EventManagerOptions

// Location used for buckets in the server.
BucketsLocation string
Expand Down