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 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(c *gofr.Context, user models.Person) error

Create mocks base method.

func (*MockPerson) Delete

func (m *MockPerson) Delete(c *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(c *gofr.Context, id string) (models.Person, error)

Get mocks base method.

func (*MockPerson) Update

func (m *MockPerson) Update(c *gofr.Context, user 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(c, user interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockPersonMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockPersonMockRecorder) Get

func (mr *MockPersonMockRecorder) Get(c, id interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockPersonMockRecorder) Update

func (mr *MockPersonMockRecorder) Update(c, user interface{}) *gomock.Call

Update indicates an expected call of Update.

type Person

type Person interface {
	Get(c *gofr.Context, id string) (models.Person, error)
	Create(c *gofr.Context, user models.Person) error
	Update(c *gofr.Context, user models.Person) error
	Delete(c *gofr.Context, id string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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