endpoints

package
v0.0.0-...-7b40e99 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogBasicErr

func LogBasicErr(err error, req *http.Request, statusCode int)

func LogBasicInfo

func LogBasicInfo(msg string, req *http.Request, statusCode int)

Types

type Endpoints

type Endpoints struct {
	Cntr controller.CntrInterface
}

func (*Endpoints) AuthMiddleware

func (endpoints *Endpoints) AuthMiddleware(next http.Handler) http.Handler

func (*Endpoints) CrawlPage

func (endpoints *Endpoints) CrawlPage(w http.ResponseWriter, r *http.Request)

func (*Endpoints) CreateCrawlingStatus

func (endpoints *Endpoints) CreateCrawlingStatus(w http.ResponseWriter, r *http.Request)

func (*Endpoints) DisallowFileBrowsing

func (endpoints *Endpoints) DisallowFileBrowsing(next http.Handler) http.Handler

func (*Endpoints) GetGameDetails

func (endpoints *Endpoints) GetGameDetails(w http.ResponseWriter, r *http.Request)

func (*Endpoints) HomeHandler

func (endpoints *Endpoints) HomeHandler(w http.ResponseWriter, req *http.Request)

func (*Endpoints) IsPrivateProfile

func (endpoints *Endpoints) IsPrivateProfile(w http.ResponseWriter, r *http.Request)

func (*Endpoints) LoggingMiddleware

func (endpoints *Endpoints) LoggingMiddleware(next http.Handler) http.Handler

func (*Endpoints) ServeGraph

func (endpoints *Endpoints) ServeGraph(w http.ResponseWriter, r *http.Request)

func (*Endpoints) ServeInteractiveGraph

func (endpoints *Endpoints) ServeInteractiveGraph(w http.ResponseWriter, r *http.Request)

func (*Endpoints) SetupRouter

func (endpoints *Endpoints) SetupRouter() *mux.Router

func (*Endpoints) ShortestDistance

func (endpoints *Endpoints) ShortestDistance(w http.ResponseWriter, r *http.Request)

func (*Endpoints) Status

func (endpoints *Endpoints) Status(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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