handler

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

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHandler

type HttpHandler struct {
	NatsConn *nats.Conn // Use the standard NATS connection
	Config   *gwconfig.Config
	Logger   *slog.Logger
	// contains filtered or unexported fields
}

func NewHttpHandler

func NewHttpHandler(logger *slog.Logger, nc *nats.Conn, cfg *gwconfig.Config) *HttpHandler

func (*HttpHandler) ServeHTTP

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

ServeHTTP now simply delegates to the internal mux.

Jump to

Keyboard shortcuts

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