proxy

package
v0.0.0-...-b57e8ac Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package proxy sends requests to another wire protocol compatible service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler "handles" messages by sending them to another wire protocol compatible service.

func New

func New(addr string) (*Handler, error)

New creates a new Handler for a service with given address.

func (*Handler) Close

func (h *Handler) Close()

Close stops the handler.

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, header *wire.MsgHeader, body wire.MsgBody) (*wire.MsgHeader, wire.MsgBody, error)

Handle "handles" the message by sending it to another wire protocol compatible service.

Returned error is something fatal.

Jump to

Keyboard shortcuts

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