0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00

restructure imageproxy package

- move binary from imageproxy.go to cmd/imageproxy/main.go
- move proxy package up to top level
This commit is contained in:
Will Norris 2014-07-30 18:23:43 -07:00
parent c5b89e481c
commit a74e590181
6 changed files with 7 additions and 8 deletions

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package proxy package imageproxy
// The Cache interface defines a cache for storing arbitrary data. The // The Cache interface defines a cache for storing arbitrary data. The
// interface is designed to align with httpcache.Cache. // interface is designed to align with httpcache.Cache.

View file

@ -24,7 +24,7 @@ import (
"github.com/gregjones/httpcache" "github.com/gregjones/httpcache"
"github.com/gregjones/httpcache/diskcache" "github.com/gregjones/httpcache/diskcache"
"willnorris.com/go/imageproxy/proxy" "willnorris.com/go/imageproxy"
) )
// goxc values // goxc values
@ -56,7 +56,7 @@ func main() {
c = httpcache.NewMemoryCache() c = httpcache.NewMemoryCache()
} }
p := proxy.NewProxy(nil, c) p := imageproxy.NewProxy(nil, c)
p.MaxWidth = 2000 p.MaxWidth = 2000
p.MaxHeight = 2000 p.MaxHeight = 2000
if *whitelist != "" { if *whitelist != "" {

View file

@ -13,7 +13,7 @@
// limitations under the License. // limitations under the License.
// Package data provides common shared data structures for imageproxy. // Package data provides common shared data structures for imageproxy.
package proxy package imageproxy
import ( import (
"bytes" "bytes"

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package proxy package imageproxy
import ( import (
"net/http" "net/http"

View file

@ -13,7 +13,7 @@
// limitations under the License. // limitations under the License.
// Package proxy provides the image proxy. // Package proxy provides the image proxy.
package proxy package imageproxy
import ( import (
"bufio" "bufio"

View file

@ -12,8 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Package transform handles image transformation such as resizing. package imageproxy
package proxy
import ( import (
"bytes" "bytes"