Documentation
¶
Overview ¶
Package pluginstest serves made-up source plugins for tests over the real wire (gRPC on cleartext HTTP/2).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Switchable ¶
type Switchable struct {
URL string
// Down cuts every connection without an answer, like a service that
// isn't listening.
Down atomic.Bool
// Requests counts requests that reached the service, answered or not.
Requests atomic.Int64
}
Switchable is a test plugin service that can stop answering.
func ServeSwitchable ¶
ServeSwitchable runs p behind apiKey and returns the switchable service.
Click to show internal directories.
Click to hide internal directories.