util

package
v0.0.0-...-6dc7df5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package util provides a common place for boilerplate fuctions.

Index

Constants

This section is empty.

Variables

View Source
var (
	// URIKey ...
	URIKey = ctxKey("uri")
)

Functions

func CheckHop

func CheckHop(parcel *pb.Parcel) error

CheckHop checks if Parcel's hops have reached it's maximum configured hops

func Dispatch

func Dispatch(ctx context.Context, parcel *pb.Parcel, client client.Client, opts ...client.CallOption) error

Dispatch sends message to a Gossip net service previously selected

func Switchback

func Switchback(parcel *pb.Parcel, elected string) error

Switchback manages visited nodes rearraging field values

Types

This section is empty.

Jump to

Keyboard shortcuts

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