store

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package store is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) Create

func (m *MockStore) Create(ctx *gofr.Context, user models.User) (models.User, error)

Create mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) Get

func (m *MockStore) Get(ctx *gofr.Context) ([]models.User, error)

Get mocks base method.

func (*MockStore) GetByID

func (m *MockStore) GetByID(ctx *gofr.Context, id uuid.UUID) (models.User, error)

GetByID mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) Create

func (mr *MockStoreMockRecorder) Create(ctx, user interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockStoreMockRecorder) Get

func (mr *MockStoreMockRecorder) Get(ctx interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockStoreMockRecorder) GetByID

func (mr *MockStoreMockRecorder) GetByID(ctx, id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

type Store

type Store interface {
	Get(ctx *gofr.Context) ([]models.User, error)
	GetByID(ctx *gofr.Context, id uuid.UUID) (models.User, error)
	Create(ctx *gofr.Context, user models.User) (models.User, error)
}

func New

func New() Store

New is factory function for store layer

Jump to

Keyboard shortcuts

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