interfaces

package
v3.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (d *FileController) GetHumansTxt(ctx context.Context, _ *web.Request) web.Result

GetHumansTxt returns /humans.txt

func (*FileController) GetRobotsTxt

func (d *FileController) GetRobotsTxt(ctx context.Context, _ *web.Request) web.Result

GetRobotsTxt returns /robots.txt

func (*FileController) GetSecurityTxt

func (d *FileController) GetSecurityTxt(ctx context.Context, _ *web.Request) web.Result

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL