Documentation
¶
Index ¶
- Variables
- func HandleError(err error, hops int32) error
- func PrintDeadlineReached[Int int | int32](hops Int)
- func PrintDone[Int int | int32](ctx context.Context, hops Int)
- func PrintHop[Int int | int32](hops Int)
- func PrintResponse[Int int | int32](hops Int, resp *pb.DeadlineResponse)
- func PrintStart[Int int | int32](todo, timeout Int)
- func RandomTimer() *time.Timer
- type ExampleHTTPClient
- type ExampleResponse
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 PrintDeadlineReached ¶
func PrintResponse ¶
func PrintResponse[Int int | int32](hops Int, resp *pb.DeadlineResponse)
func PrintStart ¶
func RandomTimer ¶
Types ¶
type ExampleHTTPClient ¶
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{}
Click to show internal directories.
Click to hide internal directories.