1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2025-07-18 05:50:26 +00:00

etcd: progress on etcd

Open() Create() and Delete() are there'ish.
But get/set metadata is not quite right yet.
And it seems that _viewing_ an uploaded object is not working.

But all of the index fetching is not there yet.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-04-07 16:01:54 -04:00
parent b2a0ac7a3b
commit 56ccafefa9
Signed by: vbatts
GPG key ID: 10937E57733F1362
6 changed files with 195 additions and 10 deletions

View file

@ -8,16 +8,14 @@ import (
)
type Info struct {
Keywords []string // tags
Ip string // who uploaded it
Random int64
Keywords []string // tags
Ip string // who uploaded it
TimeStamp time.Time "timestamp,omitempty"
}
type File struct {
Metadata Info ",omitempty"
Md5 string
ChunkSize int
UploadDate time.Time
Length uint64
Filename string ",omitempty"