Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler returns http.Handler that will call DataDump on every o field that implements Interface. If filePrefix is not blank Content-Disposition HTTP header will be added to the response. The response body will be the tar archive containing binary files named by the o fields that implement Interface. The provided interface can be a struct or a map with string keys and interface{} values that will be checked if they implement the Interface.
Types ¶
type Dump ¶
type Dump struct { Name string ContentType string Length int64 ModTime *time.Time Body io.ReadCloser }
Dump defines a structure that holds dump metadata and body as reader interface. Body must be closed after the read is done.
Click to show internal directories.
Click to hide internal directories.