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. If compression argument is set to true, the response will be compressed with gzip default options.
Types ¶
type File ¶
File defines a structure that holds dump metadata and body as reader interface. Body must be closed after the read is done.
type Interface ¶
Interface defines method to retrieve data Dump. If ifModifiedSince is not nil and data is not changed since provided time, both return values, Dump and error, will be nil.
type InterfaceFunc ¶
InterfaceFunc implements Interface as a single function that can be assigned.