stores

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package stores is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockShop

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

MockShop is a mock of Shop interface.

func NewMockShop

func NewMockShop(ctrl *gomock.Controller) *MockShop

NewMockShop creates a new mock instance.

func (*MockShop) Create

func (m *MockShop) Create(ctx *gofr.Context, data models.Shop) ([]models.Shop, error)

Create mocks base method.

func (*MockShop) Delete

func (m *MockShop) Delete(ctx *gofr.Context, id string) error

Delete mocks base method.

func (*MockShop) EXPECT

func (m *MockShop) EXPECT() *MockShopMockRecorder

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

func (*MockShop) Get

func (m *MockShop) Get(ctx *gofr.Context, filter models.Shop) []models.Shop

Get mocks base method.

func (*MockShop) Update

func (m *MockShop) Update(ctx *gofr.Context, data models.Shop) ([]models.Shop, error)

Update mocks base method.

type MockShopMockRecorder

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

MockShopMockRecorder is the mock recorder for MockShop.

func (*MockShopMockRecorder) Create

func (mr *MockShopMockRecorder) Create(ctx, data interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockShopMockRecorder) Delete

func (mr *MockShopMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockShopMockRecorder) Get

func (mr *MockShopMockRecorder) Get(ctx, filter interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockShopMockRecorder) Update

func (mr *MockShopMockRecorder) Update(ctx, data interface{}) *gomock.Call

Update indicates an expected call of Update.

type Shop

type Shop interface {
	Get(ctx *gofr.Context, filter models.Shop) []models.Shop
	Create(ctx *gofr.Context, data models.Shop) ([]models.Shop, error)
	Delete(ctx *gofr.Context, id string) error
	Update(ctx *gofr.Context, data models.Shop) ([]models.Shop, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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