Documentation ¶
Overview ¶
Package biz is a generated GoMock package.
Index ¶
- type IShorteningBiz
- type MockIShorteningBiz
- func (m *MockIShorteningBiz) CreateShortenedURL(ctx contextx.Contextx, originalURL string) (*model.ShortenedUrl, error)
- func (m *MockIShorteningBiz) EXPECT() *MockIShorteningBizMockRecorder
- func (m *MockIShorteningBiz) GetURLRecordByShortURL(ctx contextx.Contextx, shortURL string) (*model.ShortenedUrl, error)
- type MockIShorteningBizMockRecorder
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 ¶
func (m *MockIShorteningBiz) EXPECT() *MockIShorteningBizMockRecorder
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.
Click to show internal directories.
Click to hide internal directories.