Documentation ¶ Index ¶ func New(cfg config.Config, urlRepo sdump.URLRepository, ...) *http.Server type APIError type APIStatus func (a APIStatus) Render(w http.ResponseWriter, r *http.Request) error 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 Source Files ¶ View all Source files http.goresponse.gourl.go Click to show internal directories. Click to hide internal directories.