Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Component = &app.Component{ Dependencies: app.Components{ router.Component, }, Constructor: app.Constructor(func(container container.Container) error { return container.Provides( NewInformation, func(info *Information) Info { return info }, ) }), Run: app.Run(func(c container.Container) error { router, err := container.Get[router.Router](c) if err != nil { return err } info, err := container.Get[*Information](c) if err != nil { return err } router.Get("/info", info.ServeHTTP) return nil }), }
Functions ¶
This section is empty.
Types ¶
type Information ¶
type Information struct {
// contains filtered or unexported fields
}
func NewInformation ¶
func (*Information) Registration ¶
func (info *Information) Registration(name string, c any)
func (*Information) ServeHTTP ¶
func (info *Information) ServeHTTP(writer http.ResponseWriter, request *http.Request)
Click to show internal directories.
Click to hide internal directories.