usecase

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWarning

type MockWarning struct {
	mock.Mock
}

MockWarning is an autogenerated mock type for the Warning type

func NewMockWarning

func NewMockWarning(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWarning

NewMockWarning creates a new instance of MockWarning. 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 (*MockWarning) Create

Create provides a mock function with given fields: in

func (*MockWarning) EXPECT

func (_m *MockWarning) EXPECT() *MockWarning_Expecter

type MockWarning_Create_Call

type MockWarning_Create_Call struct {
	*mock.Call
}

MockWarning_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*MockWarning_Create_Call) Return

func (*MockWarning_Create_Call) Run

func (*MockWarning_Create_Call) RunAndReturn

type MockWarning_Expecter

type MockWarning_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockWarning_Expecter) Create

func (_e *MockWarning_Expecter) Create(in interface{}) *MockWarning_Create_Call

Create is a helper method to define mock.On call

  • in *warning.WarningCreate

type Service

type Service struct {
	Status
	Warning
}

func NewService

func NewService(ctx context.Context, repos *repository.Repository, logger logging.Logger) *Service

type Status

type Status interface {
	GetAll() (dto *status.Status, code int, err error)
}

type Warning

type Warning interface {
	Create(in *warning.WarningCreate) (result warning.WarningResponse, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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