Documentation ¶
Index ¶
- type Client
- type Client_Expecter
- type Client_GetGroupAPIUsage_Call
- func (_c *Client_GetGroupAPIUsage_Call) Return(_a0 *client.GetGroupAPIUsageRes, _a1 error) *Client_GetGroupAPIUsage_Call
- func (_c *Client_GetGroupAPIUsage_Call) Run(run func(ctx context.Context, req *client.GetGroupAPIUsageReq)) *Client_GetGroupAPIUsage_Call
- func (_c *Client_GetGroupAPIUsage_Call) RunAndReturn(...) *Client_GetGroupAPIUsage_Call
- type Client_GetUserAPIUsage_Call
- func (_c *Client_GetUserAPIUsage_Call) Return(_a0 *client.GetUserAPIUsageRes, _a1 error) *Client_GetUserAPIUsage_Call
- func (_c *Client_GetUserAPIUsage_Call) Run(run func(ctx context.Context, req *client.GetUserAPIUsageReq)) *Client_GetUserAPIUsage_Call
- func (_c *Client_GetUserAPIUsage_Call) RunAndReturn(...) *Client_GetUserAPIUsage_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) GetGroupAPIUsage ¶
func (_m *Client) GetGroupAPIUsage(ctx context.Context, req *client.GetGroupAPIUsageReq) (*client.GetGroupAPIUsageRes, error)
GetGroupAPIUsage provides a mock function with given fields: ctx, req
func (*Client) GetUserAPIUsage ¶
func (_m *Client) GetUserAPIUsage(ctx context.Context, req *client.GetUserAPIUsageReq) (*client.GetUserAPIUsageRes, error)
GetUserAPIUsage provides a mock function with given fields: ctx, req
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) GetGroupAPIUsage ¶
func (_e *Client_Expecter) GetGroupAPIUsage(ctx interface{}, req interface{}) *Client_GetGroupAPIUsage_Call
GetGroupAPIUsage is a helper method to define mock.On call
- ctx context.Context
- req *client.GetGroupAPIUsageReq
func (*Client_Expecter) GetUserAPIUsage ¶
func (_e *Client_Expecter) GetUserAPIUsage(ctx interface{}, req interface{}) *Client_GetUserAPIUsage_Call
GetUserAPIUsage is a helper method to define mock.On call
- ctx context.Context
- req *client.GetUserAPIUsageReq
type Client_GetGroupAPIUsage_Call ¶
Client_GetGroupAPIUsage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGroupAPIUsage'
func (*Client_GetGroupAPIUsage_Call) Return ¶
func (_c *Client_GetGroupAPIUsage_Call) Return(_a0 *client.GetGroupAPIUsageRes, _a1 error) *Client_GetGroupAPIUsage_Call
func (*Client_GetGroupAPIUsage_Call) Run ¶
func (_c *Client_GetGroupAPIUsage_Call) Run(run func(ctx context.Context, req *client.GetGroupAPIUsageReq)) *Client_GetGroupAPIUsage_Call
func (*Client_GetGroupAPIUsage_Call) RunAndReturn ¶
func (_c *Client_GetGroupAPIUsage_Call) RunAndReturn(run func(context.Context, *client.GetGroupAPIUsageReq) (*client.GetGroupAPIUsageRes, error)) *Client_GetGroupAPIUsage_Call
type Client_GetUserAPIUsage_Call ¶
Client_GetUserAPIUsage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserAPIUsage'
func (*Client_GetUserAPIUsage_Call) Return ¶
func (_c *Client_GetUserAPIUsage_Call) Return(_a0 *client.GetUserAPIUsageRes, _a1 error) *Client_GetUserAPIUsage_Call
func (*Client_GetUserAPIUsage_Call) Run ¶
func (_c *Client_GetUserAPIUsage_Call) Run(run func(ctx context.Context, req *client.GetUserAPIUsageReq)) *Client_GetUserAPIUsage_Call
func (*Client_GetUserAPIUsage_Call) RunAndReturn ¶
func (_c *Client_GetUserAPIUsage_Call) RunAndReturn(run func(context.Context, *client.GetUserAPIUsageReq) (*client.GetUserAPIUsageRes, error)) *Client_GetUserAPIUsage_Call