Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileServer ¶
type FileServer struct {
// contains filtered or unexported fields
}
func NewFileServer ¶
func NewFileServer(options *Options) *FileServer
func (*FileServer) Serve ¶
func (instance *FileServer) Serve( request httpcontract.Request, logger loggingcontract.Logger, ) (int, nethttp.Header, []byte, bool)
func (*FileServer) ServeReader ¶
func (instance *FileServer) ServeReader( request httpcontract.Request, logger loggingcontract.Logger, ) (int, nethttp.Header, io.ReadCloser, bool)
type FileServerConfig ¶
type FileServerConfig struct {
// contains filtered or unexported fields
}
func NewFileServerConfig ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions( fileServerConfig *FileServerConfig, root string, fileSystem fs.FS, ) *Options
Click to show internal directories.
Click to hide internal directories.