server

package
v0.0.0-...-a602de9 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TraceIDHeader

func TraceIDHeader(next echo.HandlerFunc) echo.HandlerFunc

Types

type Server

type Server struct {
	DB          *db.Client
	HTTPHost    string
	HTTPPort    uint
	HTTPTimeout time.Duration
	APIManager  *api.API
	BypassAuth  bool
	Logger      *log.Logger
}

Server represents a server

func (*Server) GetBaseURL

func (s *Server) GetBaseURL() string

func (*Server) Run

func (s *Server) Run(_ context.Context) error

func (*Server) Scrape

func (s *Server) Scrape(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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