stats

package
v0.0.0-...-46baba5 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

type MockService struct {
	mock.Mock
}

MockService is an autogenerated mock type for the Service type

func NewMockService

func NewMockService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockService

NewMockService creates a new instance of MockService. 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 (*MockService) GetTotalSize

func (_m *MockService) GetTotalSize(ctx context.Context) (uint64, error)

GetTotalSize provides a mock function with given fields: ctx

func (*MockService) SetTotalSize

func (_m *MockService) SetTotalSize(ctx context.Context, totalSize uint64) error

SetTotalSize provides a mock function with given fields: ctx, totalSize

type Service

type Service interface {
	SetTotalSize(ctx context.Context, totalSize uint64) error
	GetTotalSize(ctx context.Context) (uint64, error)
}

func Init

func Init(db sqlstorage.Querier) Service

Jump to

Keyboard shortcuts

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