biz

package
v0.0.0-...-890f6be Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package biz is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IShorteningBiz

type IShorteningBiz interface {
	// GetURLRecordByShortURL is used to get url record by short url
	GetURLRecordByShortURL(ctx contextx.Contextx, shortURL string) (record *model.ShortenedUrl, err error)

	// CreateShortenedURL is used to create a new shortened url
	CreateShortenedURL(ctx contextx.Contextx, originalURL string) (record *model.ShortenedUrl, err error)
}

IShorteningBiz is a shortening biz interface

type MockIShorteningBiz

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

MockIShorteningBiz is a mock of IShorteningBiz interface.

func NewMockIShorteningBiz

func NewMockIShorteningBiz(ctrl *gomock.Controller) *MockIShorteningBiz

NewMockIShorteningBiz creates a new mock instance.

func (*MockIShorteningBiz) CreateShortenedURL

func (m *MockIShorteningBiz) CreateShortenedURL(ctx contextx.Contextx, originalURL string) (*model.ShortenedUrl, error)

CreateShortenedURL mocks base method.

func (*MockIShorteningBiz) EXPECT

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

func (*MockIShorteningBiz) GetURLRecordByShortURL

func (m *MockIShorteningBiz) GetURLRecordByShortURL(ctx contextx.Contextx, shortURL string) (*model.ShortenedUrl, error)

GetURLRecordByShortURL mocks base method.

type MockIShorteningBizMockRecorder

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

MockIShorteningBizMockRecorder is the mock recorder for MockIShorteningBiz.

func (*MockIShorteningBizMockRecorder) CreateShortenedURL

func (mr *MockIShorteningBizMockRecorder) CreateShortenedURL(ctx, originalURL interface{}) *gomock.Call

CreateShortenedURL indicates an expected call of CreateShortenedURL.

func (*MockIShorteningBizMockRecorder) GetURLRecordByShortURL

func (mr *MockIShorteningBizMockRecorder) GetURLRecordByShortURL(ctx, shortURL interface{}) *gomock.Call

GetURLRecordByShortURL indicates an expected call of GetURLRecordByShortURL.

Jump to

Keyboard shortcuts

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