package stream

import "github.com/synapse-garden/sg-proto/store"

// Removed is a notification Resourcer that can inform a user they have
// been removed from the Stream without informing them of any other
// information about the Stream.
type Removed string

// Resource implements Resourcer.Resource on Removed.
func (Removed) Resource() store.Resource { return "removed" }

// Connected is a notification Resourcer that can inform a user someone
// has joined the Stream.
type Connected string

// Resource implements Resourcer.Resource on Connected.
func (Connected) Resource() store.Resource { return "connected" }

// Disconnected is a notification Resourcer that can inform a user
// someone has left the Stream.
type Disconnected string

// Resource implements Resourcer.Resource on Disconnected.
func (Disconnected) Resource() store.Resource { return "disconnected" }

// Deleted is a notification Resourcer that notifies the user a resource
// has been deleted.
type Deleted string

// Resource implements Resourcer.Resource on Deleted.
func (Deleted) Resource() store.Resource { return "deleted" }

package stream

import "github.com/synapse-garden/sg-proto/store"

// Removed is a notification Resourcer that can inform a user they have
// been removed from the Stream without informing them of any other
// information about the Stream.
type Removed string

// Resource implements Resourcer.Resource on Removed.
func (Removed) Resource() store.Resource { return "removed" }

// Connected is a notification Resourcer that can inform a user someone
// has joined the Stream.
type Connected string

// Resource implements Resourcer.Resource on Connected.
func (Connected) Resource() store.Resource { return "connected" }

--- 
+++ 
@@ -16,3 +16,17 @@
 
 // Resource implements Resourcer.Resource on Connected.
 func (Connected) Resource() store.Resource { return "connected" }
+
+// Disconnected is a notification Resourcer that can inform a user
+// someone has left the Stream.
+type Disconnected string
+
+// Resource implements Resourcer.Resource on Disconnected.
+func (Disconnected) Resource() store.Resource { return "disconnected" }
+
+// Deleted is a notification Resourcer that notifies the user a resource
+// has been deleted.
+type Deleted string
+
+// Resource implements Resourcer.Resource on Deleted.
+func (Deleted) Resource() store.Resource { return "deleted" }
Add stream Deleted and Disconnected Resourcers
