stratus

package module
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Stratus

Stratus is a minimal, serverless Go web framework for building APIs—designed for production teams leveraging AWS Lambda; audit-ready security logging, and observability integration (traces/metrics/log correlation).


✨ Key Features

🛡️ Middleware-First Pipeline

The request lifecycle is managed through a robust, order-dependent pipeline:

  • Security Headers: Built-in protection for HSTS, CSP, and XSS.
  • Access Control: Integrated authentication and rate limiting.
  • Custom Hooks: Easily inject logic before or after request execution.

Outcome & Reason: Explicit logging of why a request was successful or blocked.

🔭 First-Class Observability

Designed for distributed systems and modern monitoring stacks:

  • Trace Correlation: Automatic propagation of Trace IDs across logs and metrics.
  • Vendor Agnostic: Integrated hooks for OpenTelemetry, New Relic, and more.
  • Audit Events: Context-rich logging for deep-dive debugging.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	ServeHTTP(http.ResponseWriter, *http.Request)
}

type Router

type Router interface {
	HandleFunc(string, func(http.ResponseWriter, *http.Request))
}

type Stratus

func NewStratus

func NewStratus() *Stratus

func (*Stratus) Start

func (s *Stratus) Start()

func (*Stratus) StratusResource

func (s *Stratus) StratusResource(methods []string, path string, handler func(http.ResponseWriter, *http.Request))

func (*Stratus) StratusRouter

func (s *Stratus) StratusRouter() StratusInterface

func (*Stratus) Use

func (s *Stratus) Use(m types.MiddleWare)

type StratusInterface

type StratusInterface interface {
	Router
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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