pkg

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package pkg is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Migrate(ctx context.Context) error
}

func NewDB

func NewDB(entry DBEntry) DB

type DBEntry

type DBEntry struct {
	dig.In
	*gorm.DB
}

func (*DBEntry) Migrate

func (entry *DBEntry) Migrate(ctx context.Context) error

type MockUser

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

MockUser is a mock of User interface.

func NewMockUser

func NewMockUser(ctrl *gomock.Controller) *MockUser

NewMockUser creates a new mock instance.

func (*MockUser) Create

Create mocks base method.

func (*MockUser) EXPECT

func (m *MockUser) EXPECT() *MockUserMockRecorder

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

type MockUserMockRecorder

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

MockUserMockRecorder is the mock recorder for MockUser.

func (*MockUserMockRecorder) Create

func (mr *MockUserMockRecorder) Create(ctx, req interface{}) *gomock.Call

Create indicates an expected call of Create.

type User

type User interface {
	Create(ctx context.Context, req *model.UserCreateRequest) (*model.UserCreateResponse, error)
}

func NewUser

func NewUser(entry UserEntry) User

type UserEntry

type UserEntry struct {
	dig.In
	DB *gorm.DB
}

func (*UserEntry) Create

Jump to

Keyboard shortcuts

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