Documentation
¶
Index ¶
Constants ¶
View Source
const (
ControllersPath = "/api/controllers"
)
Variables ¶
This section is empty.
Functions ¶
func WithControllerHandler ¶ added in v0.0.10
func WithControllerHandler(name string, method string, f http.HandlerFunc) func(*Server)
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, serverOptions ...Option, ) *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.