Documentation ¶
Index ¶
- func FileFS(r *chi.Mux, path, file string, filesystem fs.FS)
- func LoggerMiddleware(logger *zerolog.Logger) func(next http.Handler) http.Handler
- func StaticFS(r *chi.Mux, pathPrefix string, filesystem fs.FS)
- func StaticFSNew(r *chi.Mux, baseUrl, pathPrefix string, filesystem fs.FS)
- func StaticFileHandler(file string, filesystem fs.FS) http.HandlerFunc
- type IndexParams
- type LogFile
- type LogfilesResponse
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileFS ¶ added in v1.55.0
FileFS registers a new route with path to serve a file from the provided file system.
func LoggerMiddleware ¶
func StaticFS ¶ added in v1.55.0
StaticFS registers a new route with path prefix to serve static files from the provided file system.
func StaticFSNew ¶ added in v1.55.0
StaticFSNew registers a new route with path prefix to serve static files from the provided file system.
func StaticFileHandler ¶ added in v1.55.0
func StaticFileHandler(file string, filesystem fs.FS) http.HandlerFunc
StaticFileHandler creates a handler function to serve a file from the provided file system.
Types ¶
type IndexParams ¶ added in v1.55.0
type LogfilesResponse ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(log logger.Logger, config *config.AppConfig, sse *sse.Server, db *database.DB, version string, commit string, date string, actionService actionService, apiService apikeyService, authService authService, downloadClientSvc downloadClientService, filterSvc filterService, feedSvc feedService, indexerSvc indexerService, ircSvc ircService, listSvc listService, notificationSvc notificationService, proxySvc proxyService, releaseSvc releaseService, updateSvc updateService) Server
Click to show internal directories.
Click to hide internal directories.