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
Click to show internal directories.
Click to hide internal directories.