Documentation ¶
Index ¶
Constants ¶
View Source
const ( OKMessage = "OK" StartingMessage = "Starting Process" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
type FakeServer ¶
type FakeServer struct { api.UnimplementedFakeServiceServer // contains filtered or unexported fields }
FakeServer implements the gRPC interface
func NewFakeServer ¶
func NewFakeServer( name, message string, duration *timing.RequestDuration, upstreamURIs []string, workerCount int, defaultClient client.HTTP, grpcClients map[string]client.GRPC, i *errors.Injector, loadGenerator *load.Generator, l *logging.Logger, requestGenerator load.RequestGenerator, waitTillReady bool, readinessHandler *Ready, ) *FakeServer
NewFakeServer creates a new instance of FakeServer
type Health ¶
type Health struct {
// contains filtered or unexported fields
}
Health defines the health handler for the service
func (*Health) Handle ¶
func (h *Health) Handle(rw http.ResponseWriter, r *http.Request)
Handle the request
func (*Health) SetStatusCode ¶
type Ready ¶
type Ready struct {
// contains filtered or unexported fields
}
Health defines the health handler for the service
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
Request handles inbound requests and makes any necessary upstream calls
func NewRequest ¶
func NewRequest( name, message string, duration *timing.RequestDuration, upstreamURIs []string, workerCount int, defaultClient client.HTTP, grpcClients map[string]client.GRPC, errorInjector *errors.Injector, loadGenerator *load.Generator, log *logging.Logger, requestGenerator load.RequestGenerator, waitTillReady bool, readinessHandler *Ready, ) *Request
NewRequest creates a new request handler
Click to show internal directories.
Click to hide internal directories.