httpd

package
v0.0.0-...-5b3d147 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg config.Config,
	urlRepo sdump.URLRepository,
	ingestRepo sdump.IngestRepository,
	userRepo sdump.UserRepository,
	logger *logrus.Entry,
	sseServer *sse.Server,
	ratelimitStore limiter.Store,
) *http.Server

Types

type APIError

type APIError struct {
	APIStatus
}

type APIStatus

type APIStatus struct {
	Message string `json:"message"`
	// contains filtered or unexported fields
}

func (APIStatus) Render

func (a APIStatus) Render(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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