~james-page/ubuntu/saucy/juju-core/1.16.5

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/state/api/watcher/interfaces.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-09-03 14:22:22 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20130903142222-9mes2r8wqr0bs7lp
Tags: 1.13.3-0ubuntu1
New upstream point release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2012, 2013 Canonical Ltd.
 
2
// Licensed under the AGPLv3, see LICENCE file for details.
 
3
 
 
4
package watcher
 
5
 
 
6
// NotifyWatcher will send events when something changes.
 
7
// It does not send content for those changes.
 
8
type NotifyWatcher interface {
 
9
        Changes() <-chan struct{}
 
10
        Stop() error
 
11
        Err() error
 
12
}
 
13
 
 
14
// StringsWatcher will send events when something changes.
 
15
// The content for the changes is a list of strings.
 
16
type StringsWatcher interface {
 
17
        Changes() <-chan []string
 
18
        Stop() error
 
19
        Err() error
 
20
}