Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrGRPCDialCode = "1000" ErrInvalidEndpointCode = "1001" ErrResponseNilCode = "1002" )
Variables ¶
View Source
var ( ErrInvalidEndpoint = errors.NewDefault(ErrInvalidEndpointCode, "Endpoint is unavailable or endpoint is unreachable") ErrResponseNil = errors.NewDefault(ErrResponseNilCode, "Response is nil from the generator") )
Functions ¶
func ErrGRPCDial ¶
func Transform ¶
func Transform(res *nighthawk_client.ExecutionResponse) ([]byte, error)
func Transform transforms nighthawk's json output to fortio compatible json output This implementation is adpated from nighthawk's own transformer https://github.com/envoyproxy/nighthawk/blob/main/source/client/output_formatter_impl.cc
Types ¶
type Client ¶
type Client struct { Handler nighthawk_client.NighthawkServiceClient // contains filtered or unexported fields }
Client holds the nighthawk client information
Click to show internal directories.
Click to hide internal directories.