Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileHandler ¶
type FileHandler struct {
Initialized bool
FilePath string
Content []byte
Etag string
// contains filtered or unexported fields
}
func NewFileHandler ¶
func NewFileHandler(filePath string) (*FileHandler, error)
func (*FileHandler) AddProcess ¶
func (c *FileHandler) AddProcess(process func(content []byte) ([]byte, error)) *FileHandler
func (*FileHandler) Clone ¶
func (c *FileHandler) Clone() *FileHandler
func (*FileHandler) Refresh ¶
func (c *FileHandler) Refresh() error
func (*FileHandler) ServeHTTP ¶
func (h *FileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.