2020-06-02 22:37:10 +00:00
|
|
|
package state
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/consul/agent/consul/stream"
|
|
|
|
)
|
|
|
|
|
2020-06-17 22:15:45 +00:00
|
|
|
// newTopicHandlers returns the default handlers for state change events.
|
2020-07-06 20:15:13 +00:00
|
|
|
func newTopicHandlers() map[stream.Topic]stream.TopicHandler {
|
|
|
|
return map[stream.Topic]stream.TopicHandler{
|
2020-07-06 18:34:58 +00:00
|
|
|
// TopicInternal is a special case for processors that handle events that are
|
|
|
|
// not for subscribers. They are used by the stream package.
|
|
|
|
stream.TopicInternal: {ProcessChanges: aclChangeUnsubscribeEvent},
|
2020-06-02 22:37:10 +00:00
|
|
|
}
|
|
|
|
}
|