mocks

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTelemetryService

type MockTelemetryService struct {
	mock.Mock
}

func (*MockTelemetryService) DecrementCounterUpDown added in v0.6.3

func (m *MockTelemetryService) DecrementCounterUpDown(ctx context.Context, name string, value interface{})

func (*MockTelemetryService) IncrementCounter

func (m *MockTelemetryService) IncrementCounter(ctx context.Context, name string, value interface{})

func (*MockTelemetryService) IncrementCounterUpDown added in v0.6.3

func (m *MockTelemetryService) IncrementCounterUpDown(ctx context.Context, name string, value interface{})

func (*MockTelemetryService) NewCounter

func (m *MockTelemetryService) NewCounter(name, description string, valueType telemetry.CounterType) error

func (*MockTelemetryService) NewCounterUpDown added in v0.6.3

func (m *MockTelemetryService) NewCounterUpDown(name, description string, valueType telemetry.CounterType) error

func (*MockTelemetryService) NewHistogram added in v0.6.3

func (m *MockTelemetryService) NewHistogram(name, description string, valueType telemetry.HistogramType) error

func (*MockTelemetryService) ObserveValue added in v0.6.3

func (m *MockTelemetryService) ObserveValue(ctx context.Context, name string, value interface{})

func (*MockTelemetryService) Record

func (m *MockTelemetryService) Record(ctx context.Context, name string, properties map[string]string) telemetry.Span

type MockTelemetrySpan

type MockTelemetrySpan struct {
	mock.Mock
}

func (*MockTelemetrySpan) End

func (m *MockTelemetrySpan) End()

type MockUsersRepository

type MockUsersRepository struct {
	mock.Mock
}

func (*MockUsersRepository) GetUserById

func (m *MockUsersRepository) GetUserById(ctx context.Context, id string) (*model.User, error)

func (*MockUsersRepository) GetUsersByIds added in v0.6.2

func (m *MockUsersRepository) GetUsersByIds(ctx context.Context, ids []string) ([]*model.User, error)

func (*MockUsersRepository) InsertUser

func (m *MockUsersRepository) InsertUser(ctx context.Context, user *model.User) error

func (*MockUsersRepository) UpdateUser

func (m *MockUsersRepository) UpdateUser(ctx context.Context, user *model.User) error

func (*MockUsersRepository) UserExists

func (m *MockUsersRepository) UserExists(ctx context.Context, id string) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL