diff options
| author | Chris Lu <chris.lu@gmail.com> | 2014-04-15 10:01:13 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2014-04-15 10:01:13 -0700 |
| commit | 4ecf5956d799ff67d91a586563075400899510da (patch) | |
| tree | 7bee1224446ca8dd3450430cb3bf2cacf8f53dd4 /go/operation/upload_content.go | |
| parent | 7ad6cd35e88009bc9703f47ad5c9ab4f400110f8 (diff) | |
| download | seaweedfs-4ecf5956d799ff67d91a586563075400899510da.tar.xz seaweedfs-4ecf5956d799ff67d91a586563075400899510da.zip | |
Add types to uploading
Diffstat (limited to 'go/operation/upload_content.go')
| -rw-r--r-- | go/operation/upload_content.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/go/operation/upload_content.go b/go/operation/upload_content.go index 646df6886..b89e65ce8 100644 --- a/go/operation/upload_content.go +++ b/go/operation/upload_content.go @@ -17,9 +17,9 @@ import ( ) type UploadResult struct { - Name string - Size int - Error string + Name string `json:"name,omitempty"` + Size uint32 `json:"size,omitempty"` + Error string `json:"error,omitempty"` } var ( |
