neomastdlib

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package neomastdlib provides a neoma adapter for Go's standard library net/http router.

Index

Constants

This section is empty.

Variables

View Source
var MultipartMaxMemory int64 = 8 * 1024

MultipartMaxMemory is the maximum memory in bytes used for parsing multipart forms.

Functions

func New

func New(mux *http.ServeMux, config core.Config) core.API

New creates a new neoma API using the given http.ServeMux and configuration.

func NewAdapter

func NewAdapter(mux *http.ServeMux) core.Adapter

NewAdapter creates a new neoma Adapter wrapping the given http.ServeMux.

func NewContext

func NewContext(op *core.Operation, r *http.Request, w http.ResponseWriter) core.Context

NewContext creates a new neoma Context wrapping the given http.Request and http.ResponseWriter.

func Unwrap

func Unwrap(ctx core.Context) (*http.Request, http.ResponseWriter)

Unwrap extracts the underlying *http.Request and http.ResponseWriter from a neoma Context. It panics if the context was not created by this adapter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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