gateway

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 31 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChannelTimeout time.Duration = 100 * time.Millisecond
	ProxyHeader                  = "X-Substrate-Peer"
	MaxScore                     = 50
)

Functions

func New

func New(ctx context.Context, config *tauConfig.Node) (gateway iface.Service, err error)

TODO: Substrate Nodes should ping Gateway that they are alive, threshold should

func Package

func Package() config.ProtoCommandIface

Types

type Gateway

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

func (*Gateway) Close

func (g *Gateway) Close() error

func (*Gateway) Get

func (g *Gateway) Get(res *client.Response) responseGetter

func (*Gateway) Http

func (g *Gateway) Http() http.Service

func (*Gateway) Node

func (g *Gateway) Node() peer.Node

Jump to

Keyboard shortcuts

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