shared

package
v0.0.0-...-d945414 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GRPCPort = "8081"
View Source
var HTTPPort = "8080"
View Source
var Host = "localhost"
View Source
var Target = Host + ":" + GRPCPort

Functions

func HandleError

func HandleError(err error, hops int32) error

func PrintDeadlineReached

func PrintDeadlineReached[Int int | int32](hops Int)

func PrintDone

func PrintDone[Int int | int32](ctx context.Context, hops Int)

func PrintHop

func PrintHop[Int int | int32](hops Int)

func PrintResponse

func PrintResponse[Int int | int32](hops Int, resp *pb.DeadlineResponse)

func PrintStart

func PrintStart[Int int | int32](todo, timeout Int)

func RandomTimer

func RandomTimer() *time.Timer

Types

type ExampleHTTPClient

type ExampleHTTPClient struct {
	*http.Client
	// contains filtered or unexported fields
}

func NewExampleHTTPClient

func NewExampleHTTPClient(client *http.Client) *ExampleHTTPClient

func (*ExampleHTTPClient) Deadline

func (c *ExampleHTTPClient) Deadline(ctx context.Context, todo, timeout int32) (*pb.DeadlineResponse, error)

type ExampleResponse

type ExampleResponse struct{}

Jump to

Keyboard shortcuts

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