mocks

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcknowledgeRequestServiceInterface

type AcknowledgeRequestServiceInterface struct {
	mock.Mock
}

AcknowledgeRequestServiceInterface is an autogenerated mock type for the AcknowledgeRequestServiceInterface type

func (*AcknowledgeRequestServiceInterface) Acknowledge

func (_m *AcknowledgeRequestServiceInterface) Acknowledge(ctx *context.Context, status string, message string) error

Acknowledge provides a mock function with given fields: ctx, status, message

func (*AcknowledgeRequestServiceInterface) Create

func (_m *AcknowledgeRequestServiceInterface) Create(ctx *context.Context, acknowledgeRequest *client.AcknowledgeRequest) error

Create provides a mock function with given fields: ctx, acknowledgeRequest

func (*AcknowledgeRequestServiceInterface) Prepare

Prepare provides a mock function with given fields: ctx

type AcknowledgeRequestStorage

type AcknowledgeRequestStorage struct {
	mock.Mock
}

AcknowledgeRequestStorage is an autogenerated mock type for the AcknowledgeRequestStorage type

func (*AcknowledgeRequestStorage) Delete

func (_m *AcknowledgeRequestStorage) Delete(ctx *context.Context, acknowledgeRequestID int) *types.Error

Delete provides a mock function with given fields: ctx, acknowledgeRequestID

func (*AcknowledgeRequestStorage) FindAll

FindAll provides a mock function with given fields: ctx, params

func (*AcknowledgeRequestStorage) FindByID

func (_m *AcknowledgeRequestStorage) FindByID(ctx *context.Context, acknowledgeRequestID int) (*client.AcknowledgeRequest, *types.Error)

FindByID provides a mock function with given fields: ctx, acknowledgeRequestID

func (*AcknowledgeRequestStorage) Insert

Insert provides a mock function with given fields: ctx, acknowledgeRequest

func (*AcknowledgeRequestStorage) Update

Update provides a mock function with given fields: ctx, acknowledgeRequest

type ClientCacheServiceInterface

type ClientCacheServiceInterface struct {
	mock.Mock
}

ClientCacheServiceInterface is an autogenerated mock type for the ClientCacheServiceInterface type

func (*ClientCacheServiceInterface) CountClientCache

CountClientCache provides a mock function with given fields: ctx, params

func (*ClientCacheServiceInterface) CreateClientCache

CreateClientCache provides a mock function with given fields: ctx, params

func (*ClientCacheServiceInterface) DeleteClientCache

func (_m *ClientCacheServiceInterface) DeleteClientCache(ctx *context.Context, clientCacheID int) *types.Error

DeleteClientCache provides a mock function with given fields: ctx, clientCacheID

func (*ClientCacheServiceInterface) GetClientCache

func (_m *ClientCacheServiceInterface) GetClientCache(ctx *context.Context, clientCacheID int) (*client.ClientCache, *types.Error)

GetClientCache provides a mock function with given fields: ctx, clientCacheID

func (*ClientCacheServiceInterface) GetClientCacheByURL

GetClientCacheByURL provides a mock function with given fields: ctx, params

func (*ClientCacheServiceInterface) IsClientNeedToBeCache

func (_m *ClientCacheServiceInterface) IsClientNeedToBeCache(ctx *context.Context, url string, method string) (bool, *types.Error)

IsClientNeedToBeCache provides a mock function with given fields: ctx, url, method

func (*ClientCacheServiceInterface) ListClientCaches

ListClientCaches provides a mock function with given fields: ctx, params

func (*ClientCacheServiceInterface) UpdateClientCache

func (_m *ClientCacheServiceInterface) UpdateClientCache(ctx *context.Context, clientCache int, params *client.UpdateClientCacheParams) (*client.ClientCache, *types.Error)

UpdateClientCache provides a mock function with given fields: ctx, clientCache, params

type ClientCacheStorage

type ClientCacheStorage struct {
	mock.Mock
}

ClientCacheStorage is an autogenerated mock type for the ClientCacheStorage type

func (*ClientCacheStorage) Delete

func (_m *ClientCacheStorage) Delete(ctx *context.Context, clientCache *client.ClientCache) *types.Error

Delete provides a mock function with given fields: ctx, clientCache

func (*ClientCacheStorage) FindAll

FindAll provides a mock function with given fields: ctx, params

func (*ClientCacheStorage) FindByID

func (_m *ClientCacheStorage) FindByID(ctx *context.Context, clientCacheID int) (*client.ClientCache, *types.Error)

FindByID provides a mock function with given fields: ctx, clientCacheID

func (*ClientCacheStorage) FindByURL

func (_m *ClientCacheStorage) FindByURL(ctx *context.Context, url string, method string, bufferedTime *int) (*client.ClientCache, *types.Error)

FindByURL provides a mock function with given fields: ctx, url, method, bufferedTime

func (*ClientCacheStorage) Insert

func (_m *ClientCacheStorage) Insert(ctx *context.Context, clientCache *client.ClientCache) (*client.ClientCache, *types.Error)

Insert provides a mock function with given fields: ctx, clientCache

func (*ClientCacheStorage) Update

func (_m *ClientCacheStorage) Update(ctx *context.Context, clientCache *client.ClientCache) (*client.ClientCache, *types.Error)

Update provides a mock function with given fields: ctx, clientCache

type ClientRequestLogStorage

type ClientRequestLogStorage struct {
	mock.Mock
}

ClientRequestLogStorage is an autogenerated mock type for the ClientRequestLogStorage type

func (*ClientRequestLogStorage) Delete

func (_m *ClientRequestLogStorage) Delete(ctx *context.Context, clientRequestLogID int)

Delete provides a mock function with given fields: ctx, clientRequestLogID

func (*ClientRequestLogStorage) FindAll

FindAll provides a mock function with given fields: ctx, params

func (*ClientRequestLogStorage) FindByID

func (_m *ClientRequestLogStorage) FindByID(ctx *context.Context, clientRequestLogID int) *client.ClientRequestLog

FindByID provides a mock function with given fields: ctx, clientRequestLogID

func (*ClientRequestLogStorage) Insert

Insert provides a mock function with given fields: ctx, clientRequestLog

func (*ClientRequestLogStorage) Update

Update provides a mock function with given fields: ctx, clientRequestLog

type EventMirroringServiceInterface

type EventMirroringServiceInterface struct {
	mock.Mock
}

EventMirroringServiceInterface is an autogenerated mock type for the EventMirroringServiceInterface type

func (*EventMirroringServiceInterface) Acknowledge

func (_m *EventMirroringServiceInterface) Acknowledge(ctx *context.Context, _a1 *event.Event) *types.Error

Acknowledge provides a mock function with given fields: ctx, _a1

func (*EventMirroringServiceInterface) Consume

func (_m *EventMirroringServiceInterface) Consume(ctx *context.Context, topicName string) (*event.Event, *types.Error)

Consume provides a mock function with given fields: ctx, topicName

func (*EventMirroringServiceInterface) IsExist

IsExist provides a mock function with given fields: ctx, _a1

func (*EventMirroringServiceInterface) Publish

Publish provides a mock function with given fields: ctx, params

type EventPublisherServiceInterface

type EventPublisherServiceInterface struct {
	mock.Mock
}

EventPublisherServiceInterface is an autogenerated mock type for the EventPublisherServiceInterface type

func (*EventPublisherServiceInterface) Publish

Publish provides a mock function with given fields: ctx, params

type GenericHTTPClient

type GenericHTTPClient struct {
	mock.Mock
}

GenericHTTPClient is an autogenerated mock type for the GenericHTTPClient type

func (*GenericHTTPClient) AddAuthentication

func (_m *GenericHTTPClient) AddAuthentication(ctx *context.Context, authorizationType client.AuthorizationType)

AddAuthentication provides a mock function with given fields: ctx, authorizationType

func (*GenericHTTPClient) CallClient

func (_m *GenericHTTPClient) CallClient(ctx *context.Context, path string, method client.Method, request interface{}, result interface{}, isAcknowledgeNeeded bool) *client.ResponseError

CallClient provides a mock function with given fields: ctx, path, method, request, result, isAcknowledgeNeeded

func (*GenericHTTPClient) CallClientWithBaseURLGiven

func (_m *GenericHTTPClient) CallClientWithBaseURLGiven(ctx *context.Context, url string, method client.Method, request interface{}, result interface{}, isAcknowledgeNeeded bool) *client.ResponseError

CallClientWithBaseURLGiven provides a mock function with given fields: ctx, url, method, request, result, isAcknowledgeNeeded

func (*GenericHTTPClient) CallClientWithCaching

func (_m *GenericHTTPClient) CallClientWithCaching(ctx *context.Context, path string, method client.Method, request interface{}, result interface{}, isAcknowledgeNeeded bool) *client.ResponseError

CallClientWithCaching provides a mock function with given fields: ctx, path, method, request, result, isAcknowledgeNeeded

func (*GenericHTTPClient) CallClientWithCachingInRedis

func (_m *GenericHTTPClient) CallClientWithCachingInRedis(ctx *context.Context, durationInSecond int, path string, method client.Method, request interface{}, result interface{}, isAcknowledgeNeeded bool) *client.ResponseError

CallClientWithCachingInRedis provides a mock function with given fields: ctx, durationInSecond, path, method, request, result, isAcknowledgeNeeded

func (*GenericHTTPClient) CallClientWithCachingInRedisWithDifferentKey

func (_m *GenericHTTPClient) CallClientWithCachingInRedisWithDifferentKey(ctx *context.Context, durationInSecond int, path string, pathToBeStoredAsKey string, method client.Method, request interface{}, result interface{}, isAcknowledgeNeeded bool) *client.ResponseError

CallClientWithCachingInRedisWithDifferentKey provides a mock function with given fields: ctx, durationInSecond, path, pathToBeStoredAsKey, method, request, result, isAcknowledgeNeeded

func (*GenericHTTPClient) CallClientWithCircuitBreaker

func (_m *GenericHTTPClient) CallClientWithCircuitBreaker(ctx *context.Context, path string, method client.Method, request interface{}, result interface{}, isAcknowledgeNeeded bool) *client.ResponseError

CallClientWithCircuitBreaker provides a mock function with given fields: ctx, path, method, request, result, isAcknowledgeNeeded

func (*GenericHTTPClient) CallClientWithCustomizedError

func (_m *GenericHTTPClient) CallClientWithCustomizedError(ctx *context.Context, path string, method client.Method, queryParams interface{}, request interface{}, result interface{}, isAcknowledgeNeeded bool) *client.ResponseError

CallClientWithCustomizedError provides a mock function with given fields: ctx, path, method, queryParams, request, result, isAcknowledgeNeeded

func (*GenericHTTPClient) CallClientWithCustomizedErrorAndCaching

func (_m *GenericHTTPClient) CallClientWithCustomizedErrorAndCaching(ctx *context.Context, path string, method client.Method, queryParams interface{}, request interface{}, result interface{}, isAcknowledgeNeeded bool) *client.ResponseError

CallClientWithCustomizedErrorAndCaching provides a mock function with given fields: ctx, path, method, queryParams, request, result, isAcknowledgeNeeded

func (*GenericHTTPClient) CallClientWithRequestInBytes

func (_m *GenericHTTPClient) CallClientWithRequestInBytes(ctx *context.Context, path string, method client.Method, request []byte, result interface{}) *client.ResponseError

CallClientWithRequestInBytes provides a mock function with given fields: ctx, path, method, request, result

func (*GenericHTTPClient) CallClientWithoutLog

func (_m *GenericHTTPClient) CallClientWithoutLog(ctx *context.Context, path string, method client.Method, request interface{}, result interface{}, isAcknowledgeNeeded bool) *client.ResponseError

CallClientWithoutLog provides a mock function with given fields: ctx, path, method, request, result, isAcknowledgeNeeded

func (*GenericHTTPClient) Do

Do provides a mock function with given fields: req

type GenericStorage

type GenericStorage struct {
	mock.Mock
}

GenericStorage is an autogenerated mock type for the GenericStorage type

func (*GenericStorage) CountAll

func (_m *GenericStorage) CountAll(ctx *context.Context, count interface{}) error

CountAll provides a mock function with given fields: ctx, count

func (*GenericStorage) Delete

func (_m *GenericStorage) Delete(ctx *context.Context, id interface{}) error

Delete provides a mock function with given fields: ctx, id

func (*GenericStorage) DeleteMany

func (_m *GenericStorage) DeleteMany(ctx *context.Context, ids interface{}) error

DeleteMany provides a mock function with given fields: ctx, ids

func (*GenericStorage) ExecQuery

func (_m *GenericStorage) ExecQuery(ctx *context.Context, query string, args map[string]interface{}) error

ExecQuery provides a mock function with given fields: ctx, query, args

func (*GenericStorage) FindAll

func (_m *GenericStorage) FindAll(ctx *context.Context, elems interface{}, page int, limit int, isAsc bool) error

FindAll provides a mock function with given fields: ctx, elems, page, limit, isAsc

func (*GenericStorage) FindByID

func (_m *GenericStorage) FindByID(ctx *context.Context, elem interface{}, id interface{}) error

FindByID provides a mock function with given fields: ctx, elem, id

func (*GenericStorage) HardDelete

func (_m *GenericStorage) HardDelete(ctx *context.Context, id interface{}) error

HardDelete provides a mock function with given fields: ctx, id

func (*GenericStorage) Insert

func (_m *GenericStorage) Insert(ctx *context.Context, elem interface{}) error

Insert provides a mock function with given fields: ctx, elem

func (*GenericStorage) InsertMany

func (_m *GenericStorage) InsertMany(ctx *context.Context, elem interface{}) error

InsertMany provides a mock function with given fields: ctx, elem

func (*GenericStorage) InsertManyWithResult

func (_m *GenericStorage) InsertManyWithResult(ctx *context.Context, elem interface{}, bulk interface{}) error

InsertManyWithResult provides a mock function with given fields: ctx, elem, bulk

func (*GenericStorage) InsertManyWithTime

func (_m *GenericStorage) InsertManyWithTime(ctx *context.Context, elem interface{}, createdAt time.Time) error

InsertManyWithTime provides a mock function with given fields: ctx, elem, createdAt

func (*GenericStorage) SelectFirstWithQuery

func (_m *GenericStorage) SelectFirstWithQuery(ctx *context.Context, elem interface{}, query string, args map[string]interface{}) error

SelectFirstWithQuery provides a mock function with given fields: ctx, elem, query, args

func (*GenericStorage) SelectWithQuery

func (_m *GenericStorage) SelectWithQuery(ctx *context.Context, elem interface{}, query string, args map[string]interface{}) error

SelectWithQuery provides a mock function with given fields: ctx, elem, query, args

func (*GenericStorage) Single

func (_m *GenericStorage) Single(ctx *context.Context, elem interface{}, where string, arg map[string]interface{}) error

Single provides a mock function with given fields: ctx, elem, where, arg

func (*GenericStorage) SinglePOSTEMP

func (_m *GenericStorage) SinglePOSTEMP(ctx *context.Context, elem interface{}, where string, arg map[string]interface{}) error

SinglePOSTEMP provides a mock function with given fields: ctx, elem, where, arg

func (*GenericStorage) Update

func (_m *GenericStorage) Update(ctx *context.Context, elem interface{}) error

Update provides a mock function with given fields: ctx, elem

func (*GenericStorage) UpdateMany

func (_m *GenericStorage) UpdateMany(ctx *context.Context, elems interface{}) error

UpdateMany provides a mock function with given fields: ctx, elems

func (*GenericStorage) UpdateManyWithResult

func (_m *GenericStorage) UpdateManyWithResult(ctx *context.Context, elem interface{}, bulk interface{}) error

UpdateManyWithResult provides a mock function with given fields: ctx, elem, bulk

func (*GenericStorage) Where

func (_m *GenericStorage) Where(ctx *context.Context, elems interface{}, where string, arg map[string]interface{}) error

Where provides a mock function with given fields: ctx, elems, where, arg

func (*GenericStorage) WherePOSTEMP

func (_m *GenericStorage) WherePOSTEMP(ctx *context.Context, elems interface{}, where string, arg map[string]interface{}) error

WherePOSTEMP provides a mock function with given fields: ctx, elems, where, arg

type ImmutableGenericStorage

type ImmutableGenericStorage struct {
	mock.Mock
}

ImmutableGenericStorage is an autogenerated mock type for the ImmutableGenericStorage type

func (*ImmutableGenericStorage) DeleteMany

func (_m *ImmutableGenericStorage) DeleteMany(ctx *context.Context, ids interface{}) error

DeleteMany provides a mock function with given fields: ctx, ids

func (*ImmutableGenericStorage) FindAll

func (_m *ImmutableGenericStorage) FindAll(ctx *context.Context, elems interface{}, page int, limit int, isAsc bool) error

FindAll provides a mock function with given fields: ctx, elems, page, limit, isAsc

func (*ImmutableGenericStorage) FindByID

func (_m *ImmutableGenericStorage) FindByID(ctx *context.Context, elem interface{}, id interface{}) error

FindByID provides a mock function with given fields: ctx, elem, id

func (*ImmutableGenericStorage) Insert

func (_m *ImmutableGenericStorage) Insert(ctx *context.Context, elem interface{}) error

Insert provides a mock function with given fields: ctx, elem

func (*ImmutableGenericStorage) Single

func (_m *ImmutableGenericStorage) Single(ctx *context.Context, elem interface{}, where string, arg map[string]interface{}) error

Single provides a mock function with given fields: ctx, elem, where, arg

func (*ImmutableGenericStorage) Where

func (_m *ImmutableGenericStorage) Where(ctx *context.Context, elems interface{}, where string, arg map[string]interface{}) error

Where provides a mock function with given fields: ctx, elems, where, arg

type Mailer

type Mailer struct {
	mock.Mock
}

Mailer is an autogenerated mock type for the Mailer type

func (*Mailer) SendEmail

func (_m *Mailer) SendEmail(mailData mailer.MailData)

SendEmail provides a mock function with given fields: mailData

type Notifier

type Notifier struct {
	mock.Mock
}

Notifier is an autogenerated mock type for the Notifier type

func (*Notifier) Notify

func (_m *Notifier) Notify(message string) error

Notify provides a mock function with given fields: message

func (*Notifier) Send

func (_m *Notifier) Send(ctx context.Context, data interface{}) error

Send provides a mock function with given fields: ctx, data

type Queryer

type Queryer struct {
	mock.Mock
}

Queryer is an autogenerated mock type for the Queryer type

func (*Queryer) Get

func (_m *Queryer) Get(dest interface{}, query string, args ...interface{}) error

Get provides a mock function with given fields: dest, query, args

func (*Queryer) MustExec

func (_m *Queryer) MustExec(query string, args ...interface{}) sql.Result

MustExec provides a mock function with given fields: query, args

func (*Queryer) PrepareNamed

func (_m *Queryer) PrepareNamed(query string) (*sqlx.NamedStmt, error)

PrepareNamed provides a mock function with given fields: query

func (*Queryer) Rebind

func (_m *Queryer) Rebind(query string) string

Rebind provides a mock function with given fields: query

func (*Queryer) Select

func (_m *Queryer) Select(dest interface{}, query string, args ...interface{}) error

Select provides a mock function with given fields: dest, query, args

type RiceBoxSource

type RiceBoxSource struct {
	mock.Mock
}

RiceBoxSource is an autogenerated mock type for the RiceBoxSource type

func (*RiceBoxSource) Close

func (_m *RiceBoxSource) Close() error

Close provides a mock function with given fields:

func (*RiceBoxSource) First

func (_m *RiceBoxSource) First() (uint, error)

First provides a mock function with given fields:

func (*RiceBoxSource) Next

func (_m *RiceBoxSource) Next(version uint) (uint, error)

Next provides a mock function with given fields: version

func (*RiceBoxSource) Open

func (_m *RiceBoxSource) Open(url string) (source.Driver, error)

Open provides a mock function with given fields: url

func (*RiceBoxSource) PopulateMigrations

func (_m *RiceBoxSource) PopulateMigrations(box *rice.Box) error

PopulateMigrations provides a mock function with given fields: box

func (*RiceBoxSource) Prev

func (_m *RiceBoxSource) Prev(version uint) (uint, error)

Prev provides a mock function with given fields: version

func (*RiceBoxSource) ReadDown

func (_m *RiceBoxSource) ReadDown(version uint) (io.ReadCloser, string, error)

ReadDown provides a mock function with given fields: version

func (*RiceBoxSource) ReadUp

func (_m *RiceBoxSource) ReadUp(version uint) (io.ReadCloser, string, error)

ReadUp provides a mock function with given fields: version

type Subscriber

type Subscriber struct {
	mock.Mock
}

Subscriber is an autogenerated mock type for the Subscriber type

func (*Subscriber) Subscribe

func (_m *Subscriber) Subscribe(topic observer.Topic)

Subscribe provides a mock function with given fields: topic

type URLToCacheServiceInterface

type URLToCacheServiceInterface struct {
	mock.Mock
}

URLToCacheServiceInterface is an autogenerated mock type for the URLToCacheServiceInterface type

func (*URLToCacheServiceInterface) CountURLToCache

CountURLToCache provides a mock function with given fields: ctx, params

func (*URLToCacheServiceInterface) CreateURLToCache

CreateURLToCache provides a mock function with given fields: ctx, params

func (*URLToCacheServiceInterface) DeleteURLToCache

func (_m *URLToCacheServiceInterface) DeleteURLToCache(ctx *context.Context, urlToCacheID int) *types.Error

DeleteURLToCache provides a mock function with given fields: ctx, urlToCacheID

func (*URLToCacheServiceInterface) GetURLToCache

func (_m *URLToCacheServiceInterface) GetURLToCache(ctx *context.Context, couponID int) (*client.URLToCache, *types.Error)

GetURLToCache provides a mock function with given fields: ctx, couponID

func (*URLToCacheServiceInterface) GetURLToCacheByURL

func (_m *URLToCacheServiceInterface) GetURLToCacheByURL(ctx *context.Context, url string, method string) (*client.URLToCache, *types.Error)

GetURLToCacheByURL provides a mock function with given fields: ctx, url, method

func (*URLToCacheServiceInterface) ListURLToCaches

ListURLToCaches provides a mock function with given fields: ctx, params

func (*URLToCacheServiceInterface) UpdateURLToCache

func (_m *URLToCacheServiceInterface) UpdateURLToCache(ctx *context.Context, urlToCache int, params *client.UpdateURLToCacheParams) (*client.URLToCache, *types.Error)

UpdateURLToCache provides a mock function with given fields: ctx, urlToCache, params

type URLToCacheStorage

type URLToCacheStorage struct {
	mock.Mock
}

URLToCacheStorage is an autogenerated mock type for the URLToCacheStorage type

func (*URLToCacheStorage) Delete

func (_m *URLToCacheStorage) Delete(ctx *context.Context, urlToCache *client.URLToCache) *types.Error

Delete provides a mock function with given fields: ctx, urlToCache

func (*URLToCacheStorage) FindAll

FindAll provides a mock function with given fields: ctx, params

func (*URLToCacheStorage) FindByID

func (_m *URLToCacheStorage) FindByID(ctx *context.Context, urlToCacheID int) (*client.URLToCache, *types.Error)

FindByID provides a mock function with given fields: ctx, urlToCacheID

func (*URLToCacheStorage) FindByURL

func (_m *URLToCacheStorage) FindByURL(ctx *context.Context, url string, method string) (*client.URLToCache, *types.Error)

FindByURL provides a mock function with given fields: ctx, url, method

func (*URLToCacheStorage) Insert

func (_m *URLToCacheStorage) Insert(ctx *context.Context, urlToCache *client.URLToCache) (*client.URLToCache, *types.Error)

Insert provides a mock function with given fields: ctx, urlToCache

func (*URLToCacheStorage) Update

func (_m *URLToCacheStorage) Update(ctx *context.Context, urlToCache *client.URLToCache) (*client.URLToCache, *types.Error)

Update provides a mock function with given fields: ctx, urlToCache

Jump to

Keyboard shortcuts

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