repo

package
v0.0.0-...-7208f07 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewImpl)

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IHealthRepo

type IHealthRepo interface {
	PingDatabase(ctx contextx.Contextx) error
}

IHealthRepo declare repository functions

func CreateIRepo

func CreateIRepo(rw *sqlx.DB) (IHealthRepo, error)

func NewImpl

func NewImpl(rw *sqlx.DB) IHealthRepo

NewImpl return IHealthRepo

type MockIHealthRepo

type MockIHealthRepo struct {
	mock.Mock
}

MockIHealthRepo is an autogenerated mock type for the IHealthRepo type

func NewMockIHealthRepo

func NewMockIHealthRepo(t mockConstructorTestingTNewMockIHealthRepo) *MockIHealthRepo

NewMockIHealthRepo creates a new instance of MockIHealthRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockIHealthRepo) PingDatabase

func (_m *MockIHealthRepo) PingDatabase(ctx contextx.Contextx) error

PingDatabase provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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