Categorygithub.com/casualjim/go-appserver
modulepackage
1.2.9
Repository: https://github.com/casualjim/go-appserver.git
Documentation: pkg.go.dev

# README

App Server

A small wrapper around httpd and chi. Comes with a simple service locator included.

Features

  • Fast router configurable with middlewares.
  • Service Locator with application lifecycle hooks.
  • Default middleware stack (can be replaced or augmented):
    • Recover from panics
    • Compression
    • Read Load Balancer headers for correct remote address and scheme
    • Request logging with zap

Usage

# Packages

No description provided by the author
No description provided by the author

# Functions

IsPublic lets the server know that it's going to be the first hopnoinspection GoUnusedExportedFunction.
New creates a new app server with default config.
No description provided by the author
No description provided by the author
WithAdminAPI registers a new api handler for the admin routesnoinspection GoUnusedExportedFunction.
WithHTTPDOption configures the httpd server.noinspection GoUnusedExportedFunction.
WithMetricsExporter enable opencensus metrics exporternoinspection GoUnusedExportedFunction.
WithTraceExporter enable opencensus trace exportingnoinspection GoUnusedExportedFunction.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author