Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
ID string `json:"id"`
TokenID string `json:"-"` // this data should NEVER be sent to the client !!!
Sha256 string `json:"hash"`
Size int64 `json:"size"`
Name string `json:"name"`
Mime string `json:"mime"`
Expire *NullTime `json:"expire"`
UploadIP string `json:"-"`
UploadTime time.Time `json:"uploadTime"`
}
type NullTime ¶
thanks to lib/pq !! https://github.com/lib/pq/blob/b269bd035a727d6c1081f76e7a239a1b00674c40/encode.go#L521
func (*NullTime) MarshalJSON ¶
support json.Marshal()
Click to show internal directories.
Click to hide internal directories.