// Copyright 2015 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package server

import (
	"github.com/juju/loggo"
)

var logger = loggo.GetLogger("juju.resource.api.server")

// Version is the version number of the current Facade.
const Version = 0

// State is the functionality of Juju's state needed for the resources API.
type State interface {
	specState
}

// Facade is the public API facade for resources.
type Facade struct {
	*specFacade
}

// NewFacade returns a new resoures facade for the given Juju state.
func NewFacade(st State) *Facade {
	return &Facade{
		specFacade: &specFacade{st},
	}
}

// Copyright 2015 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package server

import (
	"github.com/juju/loggo"
)

var logger = loggo.GetLogger("juju.resource.api.server")

// State is the functionality of Juju's state needed for the resources API.
type State interface {
	specState
}

// Facade is the public API facade for resources.
type Facade struct {
	*specFacade
}

// NewFacade returns a new resoures facade for the given Juju state.
func NewFacade(st State) *Facade {
	return &Facade{
		specFacade: &specFacade{st},
	}
}

--- 
+++ 
@@ -8,6 +8,9 @@
 )
 
 var logger = loggo.GetLogger("juju.resource.api.server")
+
+// Version is the version number of the current Facade.
+const Version = 0
 
 // State is the functionality of Juju's state needed for the resources API.
 type State interface {
Add a constant for the API facade version.
