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:
parent
b2a0ac7a3b
commit
56ccafefa9
6 changed files with 195 additions and 10 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue