target

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

package target includes utilities for ascertaining the state of the target node, namely whether it is healthy and is ready to serve requests, and what slot it has synced to.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasSlot

func HasSlot(ctx context.Context, awaitSlot int) error

HasSlot blocks until the target server has synchronized the slot needed for the test case.

func IsHealthy

func IsHealthy(ctx context.Context) error

IsHealthy blocks until the target server reports itself as being ready.

Types

type BadTargetError

type BadTargetError struct {
	Route string
	Err   error
}

func (BadTargetError) Error

func (e BadTargetError) Error() string

type ClientMissingTargetSlotErr added in v0.3.0

type ClientMissingTargetSlotErr struct {
	Current int
	Target  int
}

func (*ClientMissingTargetSlotErr) Error added in v0.3.0

Jump to

Keyboard shortcuts

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