adapters

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPAdapter

type HTTPAdapter struct {
	// contains filtered or unexported fields
}

HTTPAdapter provides HTTP API for AMQ

func NewHTTPAdapter

func NewHTTPAdapter(manager *queue.Manager, config HTTPConfig) *HTTPAdapter

NewHTTPAdapter creates a new HTTP adapter

func (*HTTPAdapter) ServeHTTP

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

ServeHTTP implements http.Handler

func (*HTTPAdapter) Server

func (h *HTTPAdapter) Server() *http.Server

Server returns a configured HTTP server

type HTTPConfig

type HTTPConfig struct {
	Address        string
	ReadTimeout    time.Duration
	WriteTimeout   time.Duration
	MaxMessageSize int
}

HTTPConfig holds HTTP adapter configuration

func DefaultHTTPConfig

func DefaultHTTPConfig() HTTPConfig

DefaultHTTPConfig returns default configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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