~themue/pyjuju/go-state-auth

Viewing all changes in revision 99.

  • Committer: Frank Mueller
  • Author(s): Frank Mueller
  • Date: 2012-03-21 07:57:55 UTC
  • mfrom: (83.2.12 go)
  • Revision ID: themue@gmail.com-20120321075755-9z0kj3xmfaiqimrh
Implement agent interface and helper.

First draft of how to let state entities with a common agent interface
implement this with a helper type. The Python implementation
uses a mixin, which is not supported by Go. This draft uses the helper
to let an entity easily implement the agent interface. Type embedding
as an alternative solution would hamper the dynamic access to the
ZooKeeper agent path.

R=rog, fwereade, niemeyer
CC=
https://codereview.appspot.com/5782053

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: