proxy

package
v0.0.0-...-bb56650 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 7 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 Router

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

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

func New

func New(addr, certFile, keyFile, caFile string) (*Router, error)

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

func (*Router) Close

func (r *Router) Close()

Close stops the handler.

func (*Router) Route

func (r *Router) Route(ctx context.Context, header *wire.MsgHeader, body wire.MsgBody) (*wire.MsgHeader, wire.MsgBody)

Route routes the message by sending it to another wire protocol compatible service.

Jump to

Keyboard shortcuts

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