Skip to content

Commit

Permalink
Merge branch 'master' of bitbucket.org:aldor007/go-img
Browse files Browse the repository at this point in the history
  • Loading branch information
aldor007 committed Sep 11, 2017
2 parents f444f5e + 9a40a94 commit ff703ac
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/imgserver/imgserver.go → cmd/imgserver.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package cmd

import (

Expand Down
3 changes: 3 additions & 0 deletions src/imgserver/engine/image_engine.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package engine

func
3 changes: 3 additions & 0 deletions src/imgserver/object/file_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ func (self *FileObject) decodeLiipPath() error {
return nil
}

func (self)

func (self *FileObject) GetParent() *FileObject {
parent, _ := NewFileObject(self.Parent)
return parent
Expand All @@ -110,3 +112,4 @@ func (self *FileObject) GetParent() *FileObject {
func (self *FileObject) HasParent() bool{
return self.Parent != ""
}

14 changes: 13 additions & 1 deletion src/imgserver/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ package imgserver


import (

"imgserver/storage"
"imgserver/object"
"imgserver/response"
"gopkg.in/h2non/bimg.v1"
)

func Process(obj *object.FileObject) (*response.Response) {
Expand All @@ -19,6 +21,16 @@ func Process(obj *object.FileObject) (*response.Response) {

res := storage.Get(obj)



return res

}
}

func processResponse(obj *object.FileObject, res *response.Response) (*response.Response) {
processImage(obj, res)
}

func processImage(obj *object.FileObject, res *response.Response) {
bimg.
}

0 comments on commit ff703ac

Please sign in to comment.