Documentation
¶
Index ¶
- type NamespaceService
- type NamespaceService_Expecter
- type NamespaceService_GetByID_Call
- func (_c *NamespaceService_GetByID_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceService_GetByID_Call
- func (_c *NamespaceService_GetByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *NamespaceService_GetByID_Call
- func (_c *NamespaceService_GetByID_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*namespace.Namespace, error)) *NamespaceService_GetByID_Call
- type NamespaceService_GetByName_Call
- func (_c *NamespaceService_GetByName_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceService_GetByName_Call
- func (_c *NamespaceService_GetByName_Call) Run(run func(ctx context.Context, name string)) *NamespaceService_GetByName_Call
- func (_c *NamespaceService_GetByName_Call) RunAndReturn(run func(context.Context, string) (*namespace.Namespace, error)) *NamespaceService_GetByName_Call
- type StatsDClient
- type StatsDClient_Expecter
- type StatsDClient_Histogram_Call
- func (_c *StatsDClient_Histogram_Call) Return(_a0 *statsd.Metric) *StatsDClient_Histogram_Call
- func (_c *StatsDClient_Histogram_Call) Run(run func(name string, value float64)) *StatsDClient_Histogram_Call
- func (_c *StatsDClient_Histogram_Call) RunAndReturn(run func(string, float64) *statsd.Metric) *StatsDClient_Histogram_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceService ¶
NamespaceService is an autogenerated mock type for the NamespaceService type
func NewNamespaceService ¶
func NewNamespaceService(t mockConstructorTestingTNewNamespaceService) *NamespaceService
NewNamespaceService creates a new instance of NamespaceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NamespaceService) EXPECT ¶
func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
type NamespaceService_Expecter ¶
type NamespaceService_Expecter struct {
// contains filtered or unexported fields
}
func (*NamespaceService_Expecter) GetByID ¶
func (_e *NamespaceService_Expecter) GetByID(ctx interface{}, id interface{}) *NamespaceService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*NamespaceService_Expecter) GetByName ¶
func (_e *NamespaceService_Expecter) GetByName(ctx interface{}, name interface{}) *NamespaceService_GetByName_Call
GetByName is a helper method to define mock.On call
- ctx context.Context
- name string
type NamespaceService_GetByID_Call ¶
NamespaceService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*NamespaceService_GetByID_Call) Return ¶
func (_c *NamespaceService_GetByID_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceService_GetByID_Call
func (*NamespaceService_GetByID_Call) Run ¶
func (_c *NamespaceService_GetByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *NamespaceService_GetByID_Call
func (*NamespaceService_GetByID_Call) RunAndReturn ¶
func (_c *NamespaceService_GetByID_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*namespace.Namespace, error)) *NamespaceService_GetByID_Call
type NamespaceService_GetByName_Call ¶
NamespaceService_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*NamespaceService_GetByName_Call) Return ¶
func (_c *NamespaceService_GetByName_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceService_GetByName_Call
func (*NamespaceService_GetByName_Call) Run ¶
func (_c *NamespaceService_GetByName_Call) Run(run func(ctx context.Context, name string)) *NamespaceService_GetByName_Call
func (*NamespaceService_GetByName_Call) RunAndReturn ¶
func (_c *NamespaceService_GetByName_Call) RunAndReturn(run func(context.Context, string) (*namespace.Namespace, error)) *NamespaceService_GetByName_Call
type StatsDClient ¶
StatsDClient is an autogenerated mock type for the StatsDClient type
func NewStatsDClient ¶
func NewStatsDClient(t mockConstructorTestingTNewStatsDClient) *StatsDClient
NewStatsDClient creates a new instance of StatsDClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StatsDClient) EXPECT ¶
func (_m *StatsDClient) EXPECT() *StatsDClient_Expecter
type StatsDClient_Expecter ¶
type StatsDClient_Expecter struct {
// contains filtered or unexported fields
}
func (*StatsDClient_Expecter) Histogram ¶
func (_e *StatsDClient_Expecter) Histogram(name interface{}, value interface{}) *StatsDClient_Histogram_Call
Histogram is a helper method to define mock.On call
- name string
- value float64
type StatsDClient_Histogram_Call ¶
StatsDClient_Histogram_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Histogram'
func (*StatsDClient_Histogram_Call) Return ¶
func (_c *StatsDClient_Histogram_Call) Return(_a0 *statsd.Metric) *StatsDClient_Histogram_Call
func (*StatsDClient_Histogram_Call) Run ¶
func (_c *StatsDClient_Histogram_Call) Run(run func(name string, value float64)) *StatsDClient_Histogram_Call
func (*StatsDClient_Histogram_Call) RunAndReturn ¶
func (_c *StatsDClient_Histogram_Call) RunAndReturn(run func(string, float64) *statsd.Metric) *StatsDClient_Histogram_Call