Documentation ¶
Index ¶
- type FileController
- func (d *FileController) GetHumansTxt(ctx context.Context, _ *web.Request) web.Result
- func (d *FileController) GetRobotsTxt(ctx context.Context, _ *web.Request) web.Result
- func (d *FileController) GetSecurityTxt(ctx context.Context, _ *web.Request) web.Result
- func (d *FileController) Inject(responder *web.Responder, logger flamingo.Logger, config ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileController ¶
type FileController struct {
// contains filtered or unexported fields
}
FileController implementing FileController
func (*FileController) GetHumansTxt ¶
GetHumansTxt returns /humans.txt
func (*FileController) GetRobotsTxt ¶
GetRobotsTxt returns /robots.txt
func (*FileController) GetSecurityTxt ¶
GetSecurityTxt returns /.well-known/security.txt
func (*FileController) Inject ¶
func (d *FileController) Inject( responder *web.Responder, logger flamingo.Logger, config *struct { RobotsTxtFilepath string `inject:"config:core.robotstxt.filepath"` SecurityTxtFilepath string `inject:"config:core.securitytxt.filepath"` HumansTxtFilepath string `inject:"config:core.humanstxt.filepath"` }, )
Inject configuration
Click to show internal directories.
Click to hide internal directories.