api

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package api implements the REST API server for api.ingitdb.com.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler is the HTTP handler for the API server. Fields can be replaced in tests to inject mock implementations.

func NewHandler

func NewHandler() *Handler

NewHandler creates a Handler with the default (production) GitHub implementations.

func NewHandlerWithAuth added in v0.15.4

func NewHandlerWithAuth(cfg auth.Config, requireAuth bool) *Handler

NewHandlerWithAuth creates a handler with provided auth configuration and mode.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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