proxy

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrQueueDisabled = errors.New("queue is disabled")
)

Functions

This section is empty.

Types

type Gateway

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

func NewGateway

func NewGateway(opts Options) *Gateway

func (*Gateway) Handle

func (gw *Gateway) Handle(w http.ResponseWriter, r *http.Request)

func (*Gateway) HandleMessages added in v0.8.0

func (gw *Gateway) HandleMessages(ctx context.Context, messages []*queue.Message) error

func (*Gateway) Start

func (gw *Gateway) Start()

Start starts an HTTP server

func (*Gateway) Stop

func (gw *Gateway) Stop() error

Stop stops the HTTP server

type Options added in v0.8.0

type Options struct {
	Cfg         *config.ProxyConfig
	Middlewares []mux.MiddlewareFunc
	DB          *db.DB
	Dispatcher  *dispatcher.Dispatcher
	Metrics     *metrics.Metrics
	Tracer      *tracing.Tracer
	EventBus    eventbus.Bus
	Srv         *service.Service
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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