Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Reactor
 - type Target
 - func (tc *Target) AsyncSubscribers(method, path string, eventType eventpkg.TypeName) []router.AsyncSubscriber
 - func (tc *Target) CORS(method, path string) *cors.CORS
 - func (tc *Target) EventType(space string, name eventpkg.TypeName) *eventpkg.Type
 - func (tc *Target) Function(space string, id function.ID) *function.Function
 - func (tc *Target) Shutdown()
 - func (tc *Target) SyncSubscriber(method, path string, eventType eventpkg.TypeName) *router.SyncSubscriber
 
- type Watcher
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Target ¶
type Target struct {
	// contains filtered or unexported fields
}
    Target is an implementation of router.Targeter using the docker/libkv library for watching data in etcd, zookeeper, and consul.
func (*Target) AsyncSubscribers ¶
func (tc *Target) AsyncSubscribers(method, path string, eventType eventpkg.TypeName) []router.AsyncSubscriber
AsyncSubscribers is used for determining which functions is async subscribed to the event.
func (*Target) EventType ¶
EventType takes a event type name and returns a deserialized instance of event type, if it exists
func (*Target) Function ¶
Function takes a function ID and returns a deserialized instance of that function, if it exists
func (*Target) Shutdown ¶
func (tc *Target) Shutdown()
Shutdown causes all state watchers to clean up their state.
func (*Target) SyncSubscriber ¶
func (tc *Target) SyncSubscriber(method, path string, eventType eventpkg.TypeName) *router.SyncSubscriber
SyncSubscriber returns function space and ID for handling sync subscription. It also returns matched URL parameters in case of HTTP subscription containing parameters in path.
type Watcher ¶
type Watcher struct {
	// contains filtered or unexported fields
}
    Watcher provides a means of watching for changes to interesting configuration in the backing database. It also maintains a cache of updates observed by a Reactive instance.
func NewWatcher ¶
NewWatcher instantiates a new Watcher.