Documentation
¶
Overview ¶
Package proxy serves the client-facing /v1 API and routes requests to upstream accounts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// ClientIP resolves the caller's address for the audit log; RemoteAddr when unset.
ClientIP func(*http.Request) string
// contains filtered or unexported fields
}
func (*Handler) MountOpenRouter ¶
MountOpenRouter serves the same API under OpenRouter's base path (/api/v1), so clients that only offer an "OpenRouter" option work by swapping the host. Mount it on the /api subrouter.