api

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientIP

func ClientIP(r *http.Request) string

func WireFrontend

func WireFrontend(router interface {
	Handle(pattern string, h http.Handler)
	NotFound(h http.HandlerFunc)
}, mode string, env string, embeddedDist fs.FS, viteDevURL string, apiPrefix string) error

Types

type App

type App struct {
	Router        *chi.Mux
	API           huma.API
	PublicBaseURL string
	BasePath      string
}

func Build

func Build(cfg config.Config, deps *app.Deps) (*App, error)

func (*App) PublicURLs

func (a *App) PublicURLs() map[string]string

Jump to

Keyboard shortcuts

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