proxy

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Message string      `json:"message"`
	Error   interface{} `json:"error,omitempty"`
}

type Gateway

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

func NewGateway

func NewGateway(cfg *config.ProxyConfig, db *db.DB, queue queue.TaskQueue) *Gateway

func (*Gateway) DispatchEvent

func (gw *Gateway) DispatchEvent(ctx context.Context, event *entities.Event) error

func (*Gateway) Handle

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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