repo

package
v0.0.0-...-ed0dbbb Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package repo is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CampaignCreator

type CampaignCreator interface {
	Create(c context.Context, campaign *biz.Campaign) error
}

CampaignCreator is an interface to create a new campaign

type CampaignFinder

type CampaignFinder interface {
	GetByID(c context.Context, id string) (*biz.Campaign, error)
	List(c context.Context, cond ListCampaignCondition) ([]*biz.Campaign, int64, error)
}

type CampaignUpdater

type CampaignUpdater interface {
	UpdateStatus(c context.Context, id string, status model.CampaignStatus) error
}

type ListCampaignCondition

type ListCampaignCondition struct {
	Limit  int64
	Offset int64
}

ListCampaignCondition is a struct to define the condition of list campaign

type MockCampaignCreator

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

MockCampaignCreator is a mock of CampaignCreator interface.

func NewMockCampaignCreator

func NewMockCampaignCreator(ctrl *gomock.Controller) *MockCampaignCreator

NewMockCampaignCreator creates a new mock instance.

func (*MockCampaignCreator) Create

func (m *MockCampaignCreator) Create(c context.Context, campaign *biz.Campaign) error

Create mocks base method.

func (*MockCampaignCreator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockCampaignCreatorMockRecorder

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

MockCampaignCreatorMockRecorder is the mock recorder for MockCampaignCreator.

func (*MockCampaignCreatorMockRecorder) Create

func (mr *MockCampaignCreatorMockRecorder) Create(c, campaign any) *gomock.Call

Create indicates an expected call of Create.

type MockCampaignFinder

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

MockCampaignFinder is a mock of CampaignFinder interface.

func NewMockCampaignFinder

func NewMockCampaignFinder(ctrl *gomock.Controller) *MockCampaignFinder

NewMockCampaignFinder creates a new mock instance.

func (*MockCampaignFinder) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCampaignFinder) GetByID

func (m *MockCampaignFinder) GetByID(c context.Context, id string) (*biz.Campaign, error)

GetByID mocks base method.

func (*MockCampaignFinder) List

List mocks base method.

type MockCampaignFinderMockRecorder

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

MockCampaignFinderMockRecorder is the mock recorder for MockCampaignFinder.

func (*MockCampaignFinderMockRecorder) GetByID

func (mr *MockCampaignFinderMockRecorder) GetByID(c, id any) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockCampaignFinderMockRecorder) List

func (mr *MockCampaignFinderMockRecorder) List(c, cond any) *gomock.Call

List indicates an expected call of List.

type MockCampaignUpdater

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

MockCampaignUpdater is a mock of CampaignUpdater interface.

func NewMockCampaignUpdater

func NewMockCampaignUpdater(ctrl *gomock.Controller) *MockCampaignUpdater

NewMockCampaignUpdater creates a new mock instance.

func (*MockCampaignUpdater) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCampaignUpdater) UpdateStatus

func (m *MockCampaignUpdater) UpdateStatus(c context.Context, id string, status model.CampaignStatus) error

UpdateStatus mocks base method.

type MockCampaignUpdaterMockRecorder

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

MockCampaignUpdaterMockRecorder is the mock recorder for MockCampaignUpdater.

func (*MockCampaignUpdaterMockRecorder) UpdateStatus

func (mr *MockCampaignUpdaterMockRecorder) UpdateStatus(c, id, status any) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

Jump to

Keyboard shortcuts

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