summaryrefslogtreecommitdiff
path: root/internal/events/contract.go
blob: 5bea6ac9f7a2149001b4fcd5ec58ecb1e3adfb60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
package events

import "go.neonxp.dev/djson/internal/command"

type Dispatcher interface {
	Subscribe(path []string, id string, ch chan command.Mutation)

	Unsubscribe(path []string, id string)

	Notify(path []string, event *command.Mutation)
}