github.com/Pankov404/juju@v0.0.0-20150703034450-be266991dceb/state/leadership/token.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package leadership 5 6 import ( 7 "gopkg.in/mgo.v2/txn" 8 ) 9 10 // token implements Token. 11 type token struct { 12 op txn.Op 13 } 14 15 // AssertOps is part of the Token interface. 16 func (t token) AssertOps() []txn.Op { 17 return []txn.Op{t.op} 18 }