Documentation ¶
Index ¶
- type MIMEMap
- type ZipFileServer
- func (zf *ZipFileServer) AttachFile(fn string)
- func (zf *ZipFileServer) Close() error
- func (zf *ZipFileServer) GetHandlingFunction(mime string, file *zip.File, fm time.Time) func(w http.ResponseWriter, r *http.Request)
- func (zf *ZipFileServer) GetHandlingMemFunction(mime string, file *zip.File, fm time.Time) func(w http.ResponseWriter, r *http.Request)
- func (zf *ZipFileServer) MapFiles(mux *http.ServeMux) error
- func (zf *ZipFileServer) ParseJSONMIME() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MIMEMap ¶
func HardcodedMap ¶
func HardcodedMap() []MIMEMap
type ZipFileServer ¶
type ZipFileServer struct { HTTPprefix string IndexSuffix string PATHprefix string // html/ CachingThreshold int64 Mime []MIMEMap Locker *sync.Mutex // Looks like zip is concurrent read safe - locking removed // contains filtered or unexported fields }
func (*ZipFileServer) AttachFile ¶
func (zf *ZipFileServer) AttachFile(fn string)
func (*ZipFileServer) Close ¶
func (zf *ZipFileServer) Close() error
func (*ZipFileServer) GetHandlingFunction ¶
func (zf *ZipFileServer) GetHandlingFunction(mime string, file *zip.File, fm time.Time) func(w http.ResponseWriter, r *http.Request)
func (*ZipFileServer) GetHandlingMemFunction ¶
func (zf *ZipFileServer) GetHandlingMemFunction(mime string, file *zip.File, fm time.Time) func(w http.ResponseWriter, r *http.Request)
func (*ZipFileServer) ParseJSONMIME ¶
func (zf *ZipFileServer) ParseJSONMIME() error
Click to show internal directories.
Click to hide internal directories.