Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct { ResultRoundTripper http.RoundTripper ResultPerRPCCredentials credentials.PerRPCCredentials MustError bool }
MockClient provides a mock implementation of GRPCClient and HTTPClient interfaces
func (*MockClient) PerRPCCredentials ¶
func (m *MockClient) PerRPCCredentials() (credentials.PerRPCCredentials, error)
PerRPCCredentials for the MockClient either returns error if the mock authenticator is forced to or returns the supplied resultPerRPCCredentials.
func (*MockClient) RoundTripper ¶
func (m *MockClient) RoundTripper(base http.RoundTripper) (http.RoundTripper, error)
RoundTripper for the MockClient either returns error if the mock authenticator is forced to or returns the supplied resultRoundTripper.
Click to show internal directories.
Click to hide internal directories.