 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFunc ¶
type HandlerFunc func(uint64, interface{})
HandlerFunc is used to handle new data
type WatchPlan ¶
type WatchPlan struct {
	Datacenter string
	Token      string
	Type       string
	Exempt     map[string]interface{}
	Func      WatchFunc
	Handler   HandlerFunc
	Fail      func() bool
	Recover   func()
	LogOutput io.Writer
	Key        string
	CongestCtl bool
	// contains filtered or unexported fields
}
    WatchPlan is the parsed version of a watch specification. A watch provides the details of a query, which generates a view into the Consul data store. This view is watched for changes and a handler is invoked to take any appropriate actions.
func ParseExempt ¶
ParseExempt takes a watch query and compiles it into a WatchPlan or an error Any exempt parameters are stored in the Exempt map
 Click to show internal directories. 
   Click to hide internal directories.