Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexPageInfo ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New( logger *slog.Logger, all fs.FS, versions []*Version, webFS fs.FS, indexTemplate string, getInfo func() (*IndexPageInfo, error), timeToLive time.Duration, cacheMiddleware func(next http.Handler) http.Handler, ) *Server
New creates a new server using
func (*Server) GetVersionNames ¶
GetVersionNames returns an array with the prefixes of the tags
Click to show internal directories.
Click to hide internal directories.