Skip to content

Commit 8f0994f

Browse files
0xmohitfsouza
andauthored
add aliases to support specifying EventOptions (#1696)
* add aliases to support specifying EventOptions This is done to enable specifying EventOptions when using NewServerWithOptions. https://pkg.go.dev/github.com/fsouza/fake-gcs-server/fakestorage#NewServerWithOptions Fixes #1695 * fakestorage: remove unused type --------- Co-authored-by: francisco souza <[email protected]>
1 parent 88d8d3d commit 8f0994f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fakestorage/server.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ func NewServerWithHostPort(objects []Object, host string, port uint16) (*Server,
7373
})
7474
}
7575

76+
type EventManagerOptions = notification.EventManagerOptions
77+
7678
// Options are used to configure the server on creation.
7779
type Options struct {
7880
InitialObjects []Object
@@ -111,7 +113,7 @@ type Options struct {
111113

112114
// EventOptions contains the events that should be published and the URL
113115
// of the Google cloud function such events should be published to.
114-
EventOptions notification.EventManagerOptions
116+
EventOptions EventManagerOptions
115117

116118
// Location used for buckets in the server.
117119
BucketsLocation string

0 commit comments

Comments
 (0)