robots

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func New

func New(d db.DB) (*Module, error)

func (*Module) Name

func (m *Module) Name() string

Name return the module name

func (*Module) RobotsGetHandler

func (m *Module) RobotsGetHandler(w http.ResponseWriter, r *http.Request)

RobotsGetHandler serves the robots.txt page.

func (*Module) Route

func (m *Module) Route(s *ihttp.Server) error

Route attaches routes to the web server.

func (*Module) SetServer

func (*Module) SetServer(_ *ihttp.Server)

SetServer adds a reference to the server to the module.

Jump to

Keyboard shortcuts

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