stores

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 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 MockPerson

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

MockPerson is a mock of Person interface.

func NewMockPerson

func NewMockPerson(ctrl *gomock.Controller) *MockPerson

NewMockPerson creates a new mock instance.

func (*MockPerson) Create

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

Create mocks base method.

func (*MockPerson) Delete

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

Delete mocks base method.

func (*MockPerson) EXPECT

func (m *MockPerson) EXPECT() *MockPersonMockRecorder

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

func (*MockPerson) Get

func (m *MockPerson) Get(ctx *gofr.Context, filter models.Person) []models.Person

Get mocks base method.

func (*MockPerson) Update

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

Update mocks base method.

type MockPersonMockRecorder

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

MockPersonMockRecorder is the mock recorder for MockPerson.

func (*MockPersonMockRecorder) Create

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

Create indicates an expected call of Create.

func (*MockPersonMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockPersonMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockPersonMockRecorder) Update

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

Update indicates an expected call of Update.

type Person

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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