harmonyproxy

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package harmonyproxy provides a simple proxy for harmony requests to fix inconsistencies in tx hashes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HarmonyProxy

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

HarmonyProxy handles simple rxoy requests to omnirpc.

func NewHarmonyProxy

func NewHarmonyProxy(proxyURL string, handler metrics.Handler, port int) *HarmonyProxy

NewHarmonyProxy creates a new harmny confirmable proxy.

func (*HarmonyProxy) ProxyRequest

func (r *HarmonyProxy) ProxyRequest(c *gin.Context) (err error)

ProxyRequest proxies a request to the proxyURL.

func (*HarmonyProxy) Run

func (r *HarmonyProxy) Run(_ context.Context) error

Run runs the harmony proxy.

Jump to

Keyboard shortcuts

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