receiver

package
v0.0.0-...-3c1e1a6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPMessageReceiver

type HTTPMessageReceiver struct {
	Host string
	Port int
	// contains filtered or unexported fields
}

HTTPMessageReceiver is responsible for receiving messages over HTTP.

func NewHTTPMessageReceiver

func NewHTTPMessageReceiver(port int) *HTTPMessageReceiver

NewHTTPMessageReceiver returns a new NewHTTPMessageReceiver instance with the given Port.

func (*HTTPMessageReceiver) BaseURL

func (r *HTTPMessageReceiver) BaseURL() string

func (*HTTPMessageReceiver) StartListen

func (r *HTTPMessageReceiver) StartListen(ctx context.Context, handler http.Handler, logger *emlogger.Logger) error

StartListen starts the HTTP message receiver and blocks until it receives a shutdown signal.

Jump to

Keyboard shortcuts

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