github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/apiserver/resumer/state.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package resumer
     5  
     6  import (
     7  	"github.com/juju/juju/state"
     8  )
     9  
    10  type stateInterface interface {
    11  	ResumeTransactions() error
    12  }
    13  
    14  type stateShim struct {
    15  	*state.State
    16  }
    17  
    18  var getState = func(st *state.State) stateInterface {
    19  	return stateShim{st}
    20  }