Documentation ¶
Index ¶
- type AcknowledgeRequestServiceInterface
- func (_m *AcknowledgeRequestServiceInterface) Acknowledge(ctx *context.Context, status string, message string) error
- func (_m *AcknowledgeRequestServiceInterface) Create(ctx *context.Context, acknowledgeRequest *client.AcknowledgeRequest) error
- func (_m *AcknowledgeRequestServiceInterface) Prepare(ctx *context.Context) error
- type AcknowledgeRequestStorage
- func (_m *AcknowledgeRequestStorage) Delete(ctx *context.Context, acknowledgeRequestID int) *types.Error
- func (_m *AcknowledgeRequestStorage) FindAll(ctx *context.Context, params *client.FindAllAcknowledgeRequests) ([]*client.AcknowledgeRequest, *types.Error)
- func (_m *AcknowledgeRequestStorage) FindByID(ctx *context.Context, acknowledgeRequestID int) (*client.AcknowledgeRequest, *types.Error)
- func (_m *AcknowledgeRequestStorage) Insert(ctx *context.Context, acknowledgeRequest *client.AcknowledgeRequest) (*client.AcknowledgeRequest, *types.Error)
- func (_m *AcknowledgeRequestStorage) Update(ctx *context.Context, acknowledgeRequest *client.AcknowledgeRequest) (*client.AcknowledgeRequest, *types.Error)
- type ClientCacheServiceInterface
- func (_m *ClientCacheServiceInterface) CountClientCache(ctx *context.Context, params *client.FindAllClientCachesParams) (int, *types.Error)
- func (_m *ClientCacheServiceInterface) CreateClientCache(ctx *context.Context, params *client.CreateClientCacheParams) (*client.ClientCache, *types.Error)
- func (_m *ClientCacheServiceInterface) DeleteClientCache(ctx *context.Context, clientCacheID int) *types.Error
- func (_m *ClientCacheServiceInterface) GetClientCache(ctx *context.Context, clientCacheID int) (*client.ClientCache, *types.Error)
- func (_m *ClientCacheServiceInterface) GetClientCacheByURL(ctx *context.Context, params *client.GetClientCacheByURLParams) (*client.ClientCache, *types.Error)
- func (_m *ClientCacheServiceInterface) IsClientNeedToBeCache(ctx *context.Context, url string, method string) (bool, *types.Error)
- func (_m *ClientCacheServiceInterface) ListClientCaches(ctx *context.Context, params *client.FindAllClientCachesParams) ([]*client.ClientCache, *types.Error)
- func (_m *ClientCacheServiceInterface) UpdateClientCache(ctx *context.Context, clientCache int, params *client.UpdateClientCacheParams) (*client.ClientCache, *types.Error)
- type ClientCacheStorage
- func (_m *ClientCacheStorage) Delete(ctx *context.Context, clientCache *client.ClientCache) *types.Error
- func (_m *ClientCacheStorage) FindAll(ctx *context.Context, params *client.FindAllClientCachesParams) ([]*client.ClientCache, *types.Error)
- func (_m *ClientCacheStorage) FindByID(ctx *context.Context, clientCacheID int) (*client.ClientCache, *types.Error)
- func (_m *ClientCacheStorage) FindByURL(ctx *context.Context, url string, method string, bufferedTime *int) (*client.ClientCache, *types.Error)
- func (_m *ClientCacheStorage) Insert(ctx *context.Context, clientCache *client.ClientCache) (*client.ClientCache, *types.Error)
- func (_m *ClientCacheStorage) Update(ctx *context.Context, clientCache *client.ClientCache) (*client.ClientCache, *types.Error)
- type ClientRequestLogStorage
- func (_m *ClientRequestLogStorage) Delete(ctx *context.Context, clientRequestLogID int)
- func (_m *ClientRequestLogStorage) FindAll(ctx *context.Context, params *client.FindAllClientRequestLogs) []*client.ClientRequestLog
- func (_m *ClientRequestLogStorage) FindByID(ctx *context.Context, clientRequestLogID int) *client.ClientRequestLog
- func (_m *ClientRequestLogStorage) Insert(ctx *context.Context, clientRequestLog *client.ClientRequestLog) *client.ClientRequestLog
- func (_m *ClientRequestLogStorage) Update(ctx *context.Context, clientRequestLog *client.ClientRequestLog) *client.ClientRequestLog
- type EventMirroringServiceInterface
- func (_m *EventMirroringServiceInterface) Acknowledge(ctx *context.Context, _a1 *event.Event) *types.Error
- func (_m *EventMirroringServiceInterface) Consume(ctx *context.Context, topicName string) (*event.Event, *types.Error)
- func (_m *EventMirroringServiceInterface) IsExist(ctx *context.Context, _a1 *event.Event) bool
- func (_m *EventMirroringServiceInterface) Publish(ctx *context.Context, params *event.PublishEventParams) *types.Error
- type EventPublisherServiceInterface
- type GenericHTTPClient
- func (_m *GenericHTTPClient) AddAuthentication(ctx *context.Context, authorizationType client.AuthorizationType)
- func (_m *GenericHTTPClient) CallClient(ctx *context.Context, path string, method client.Method, request interface{}, ...) *client.ResponseError
- func (_m *GenericHTTPClient) CallClientWithBaseURLGiven(ctx *context.Context, url string, method client.Method, request interface{}, ...) *client.ResponseError
- func (_m *GenericHTTPClient) CallClientWithCaching(ctx *context.Context, path string, method client.Method, request interface{}, ...) *client.ResponseError
- func (_m *GenericHTTPClient) CallClientWithCachingInRedis(ctx *context.Context, durationInSecond int, path string, method client.Method, ...) *client.ResponseError
- func (_m *GenericHTTPClient) CallClientWithCachingInRedisWithDifferentKey(ctx *context.Context, durationInSecond int, path string, ...) *client.ResponseError
- func (_m *GenericHTTPClient) CallClientWithCircuitBreaker(ctx *context.Context, path string, method client.Method, request interface{}, ...) *client.ResponseError
- func (_m *GenericHTTPClient) CallClientWithCustomizedError(ctx *context.Context, path string, method client.Method, ...) *client.ResponseError
- func (_m *GenericHTTPClient) CallClientWithCustomizedErrorAndCaching(ctx *context.Context, path string, method client.Method, ...) *client.ResponseError
- func (_m *GenericHTTPClient) CallClientWithRequestInBytes(ctx *context.Context, path string, method client.Method, request []byte, ...) *client.ResponseError
- func (_m *GenericHTTPClient) CallClientWithoutLog(ctx *context.Context, path string, method client.Method, request interface{}, ...) *client.ResponseError
- func (_m *GenericHTTPClient) Do(req *http.Request) (string, *client.ResponseError)
- type GenericStorage
- func (_m *GenericStorage) CountAll(ctx *context.Context, count interface{}) error
- func (_m *GenericStorage) Delete(ctx *context.Context, id interface{}) error
- func (_m *GenericStorage) DeleteMany(ctx *context.Context, ids interface{}) error
- func (_m *GenericStorage) ExecQuery(ctx *context.Context, query string, args map[string]interface{}) error
- func (_m *GenericStorage) FindAll(ctx *context.Context, elems interface{}, page int, limit int, isAsc bool) error
- func (_m *GenericStorage) FindByID(ctx *context.Context, elem interface{}, id interface{}) error
- func (_m *GenericStorage) HardDelete(ctx *context.Context, id interface{}) error
- func (_m *GenericStorage) Insert(ctx *context.Context, elem interface{}) error
- func (_m *GenericStorage) InsertMany(ctx *context.Context, elem interface{}) error
- func (_m *GenericStorage) InsertManyWithResult(ctx *context.Context, elem interface{}, bulk interface{}) error
- func (_m *GenericStorage) InsertManyWithTime(ctx *context.Context, elem interface{}, createdAt time.Time) error
- func (_m *GenericStorage) SelectFirstWithQuery(ctx *context.Context, elem interface{}, query string, ...) error
- func (_m *GenericStorage) SelectWithQuery(ctx *context.Context, elem interface{}, query string, ...) error
- func (_m *GenericStorage) Single(ctx *context.Context, elem interface{}, where string, ...) error
- func (_m *GenericStorage) SinglePOSTEMP(ctx *context.Context, elem interface{}, where string, ...) error
- func (_m *GenericStorage) Update(ctx *context.Context, elem interface{}) error
- func (_m *GenericStorage) UpdateMany(ctx *context.Context, elems interface{}) error
- func (_m *GenericStorage) UpdateManyWithResult(ctx *context.Context, elem interface{}, bulk interface{}) error
- func (_m *GenericStorage) Where(ctx *context.Context, elems interface{}, where string, ...) error
- func (_m *GenericStorage) WherePOSTEMP(ctx *context.Context, elems interface{}, where string, ...) error
- type ImmutableGenericStorage
- func (_m *ImmutableGenericStorage) DeleteMany(ctx *context.Context, ids interface{}) error
- func (_m *ImmutableGenericStorage) FindAll(ctx *context.Context, elems interface{}, page int, limit int, isAsc bool) error
- func (_m *ImmutableGenericStorage) FindByID(ctx *context.Context, elem interface{}, id interface{}) error
- func (_m *ImmutableGenericStorage) Insert(ctx *context.Context, elem interface{}) error
- func (_m *ImmutableGenericStorage) Single(ctx *context.Context, elem interface{}, where string, ...) error
- func (_m *ImmutableGenericStorage) Where(ctx *context.Context, elems interface{}, where string, ...) error
- type Mailer
- type Notifier
- type Queryer
- func (_m *Queryer) Get(dest interface{}, query string, args ...interface{}) error
- func (_m *Queryer) MustExec(query string, args ...interface{}) sql.Result
- func (_m *Queryer) PrepareNamed(query string) (*sqlx.NamedStmt, error)
- func (_m *Queryer) Rebind(query string) string
- func (_m *Queryer) Select(dest interface{}, query string, args ...interface{}) error
- type RiceBoxSource
- func (_m *RiceBoxSource) Close() error
- func (_m *RiceBoxSource) First() (uint, error)
- func (_m *RiceBoxSource) Next(version uint) (uint, error)
- func (_m *RiceBoxSource) Open(url string) (source.Driver, error)
- func (_m *RiceBoxSource) PopulateMigrations(box *rice.Box) error
- func (_m *RiceBoxSource) Prev(version uint) (uint, error)
- func (_m *RiceBoxSource) ReadDown(version uint) (io.ReadCloser, string, error)
- func (_m *RiceBoxSource) ReadUp(version uint) (io.ReadCloser, string, error)
- type Subscriber
- type URLToCacheServiceInterface
- func (_m *URLToCacheServiceInterface) CountURLToCache(ctx *context.Context, params *client.FindAllURLToCachesParams) (int, *types.Error)
- func (_m *URLToCacheServiceInterface) CreateURLToCache(ctx *context.Context, params *client.CreateURLToCacheParams) (*client.URLToCache, *types.Error)
- func (_m *URLToCacheServiceInterface) DeleteURLToCache(ctx *context.Context, urlToCacheID int) *types.Error
- func (_m *URLToCacheServiceInterface) GetURLToCache(ctx *context.Context, couponID int) (*client.URLToCache, *types.Error)
- func (_m *URLToCacheServiceInterface) GetURLToCacheByURL(ctx *context.Context, url string, method string) (*client.URLToCache, *types.Error)
- func (_m *URLToCacheServiceInterface) ListURLToCaches(ctx *context.Context, params *client.FindAllURLToCachesParams) ([]*client.URLToCache, *types.Error)
- func (_m *URLToCacheServiceInterface) UpdateURLToCache(ctx *context.Context, urlToCache int, params *client.UpdateURLToCacheParams) (*client.URLToCache, *types.Error)
- type URLToCacheStorage
- func (_m *URLToCacheStorage) Delete(ctx *context.Context, urlToCache *client.URLToCache) *types.Error
- func (_m *URLToCacheStorage) FindAll(ctx *context.Context, params *client.FindAllURLToCachesParams) ([]*client.URLToCache, *types.Error)
- func (_m *URLToCacheStorage) FindByID(ctx *context.Context, urlToCacheID int) (*client.URLToCache, *types.Error)
- func (_m *URLToCacheStorage) FindByURL(ctx *context.Context, url string, method string) (*client.URLToCache, *types.Error)
- func (_m *URLToCacheStorage) Insert(ctx *context.Context, urlToCache *client.URLToCache) (*client.URLToCache, *types.Error)
- func (_m *URLToCacheStorage) Update(ctx *context.Context, urlToCache *client.URLToCache) (*client.URLToCache, *types.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcknowledgeRequestServiceInterface ¶
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
type AcknowledgeRequestStorage ¶
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 ¶
func (_m *AcknowledgeRequestStorage) FindAll(ctx *context.Context, params *client.FindAllAcknowledgeRequests) ([]*client.AcknowledgeRequest, *types.Error)
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 ¶
func (_m *AcknowledgeRequestStorage) Insert(ctx *context.Context, acknowledgeRequest *client.AcknowledgeRequest) (*client.AcknowledgeRequest, *types.Error)
Insert provides a mock function with given fields: ctx, acknowledgeRequest
func (*AcknowledgeRequestStorage) Update ¶
func (_m *AcknowledgeRequestStorage) Update(ctx *context.Context, acknowledgeRequest *client.AcknowledgeRequest) (*client.AcknowledgeRequest, *types.Error)
Update provides a mock function with given fields: ctx, acknowledgeRequest
type ClientCacheServiceInterface ¶
ClientCacheServiceInterface is an autogenerated mock type for the ClientCacheServiceInterface type
func (*ClientCacheServiceInterface) CountClientCache ¶
func (_m *ClientCacheServiceInterface) CountClientCache(ctx *context.Context, params *client.FindAllClientCachesParams) (int, *types.Error)
CountClientCache provides a mock function with given fields: ctx, params
func (*ClientCacheServiceInterface) CreateClientCache ¶
func (_m *ClientCacheServiceInterface) CreateClientCache(ctx *context.Context, params *client.CreateClientCacheParams) (*client.ClientCache, *types.Error)
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 ¶
func (_m *ClientCacheServiceInterface) GetClientCacheByURL(ctx *context.Context, params *client.GetClientCacheByURLParams) (*client.ClientCache, *types.Error)
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 ¶
func (_m *ClientCacheServiceInterface) ListClientCaches(ctx *context.Context, params *client.FindAllClientCachesParams) ([]*client.ClientCache, *types.Error)
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 ¶
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 ¶
func (_m *ClientCacheStorage) FindAll(ctx *context.Context, params *client.FindAllClientCachesParams) ([]*client.ClientCache, *types.Error)
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 ¶
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 ¶
func (_m *ClientRequestLogStorage) FindAll(ctx *context.Context, params *client.FindAllClientRequestLogs) []*client.ClientRequestLog
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 ¶
func (_m *ClientRequestLogStorage) Insert(ctx *context.Context, clientRequestLog *client.ClientRequestLog) *client.ClientRequestLog
Insert provides a mock function with given fields: ctx, clientRequestLog
func (*ClientRequestLogStorage) Update ¶
func (_m *ClientRequestLogStorage) Update(ctx *context.Context, clientRequestLog *client.ClientRequestLog) *client.ClientRequestLog
Update provides a mock function with given fields: ctx, clientRequestLog
type EventMirroringServiceInterface ¶
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 ¶
func (_m *EventMirroringServiceInterface) Publish(ctx *context.Context, params *event.PublishEventParams) *types.Error
Publish provides a mock function with given fields: ctx, params
type EventPublisherServiceInterface ¶
EventPublisherServiceInterface is an autogenerated mock type for the EventPublisherServiceInterface type
func (*EventPublisherServiceInterface) Publish ¶
func (_m *EventPublisherServiceInterface) Publish(ctx *context.Context, params *eda.PublishEventParams) *types.Error
Publish provides a mock function with given fields: ctx, params
type GenericHTTPClient ¶
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 ¶
func (_m *GenericHTTPClient) Do(req *http.Request) (string, *client.ResponseError)
Do provides a mock function with given fields: req
type GenericStorage ¶
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 ¶
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
type Notifier ¶
Notifier is an autogenerated mock type for the Notifier type
type Queryer ¶
Queryer is an autogenerated mock type for the Queryer type
func (*Queryer) PrepareNamed ¶
PrepareNamed provides a mock function with given fields: query
type RiceBoxSource ¶
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 ¶
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 ¶
URLToCacheServiceInterface is an autogenerated mock type for the URLToCacheServiceInterface type
func (*URLToCacheServiceInterface) CountURLToCache ¶
func (_m *URLToCacheServiceInterface) CountURLToCache(ctx *context.Context, params *client.FindAllURLToCachesParams) (int, *types.Error)
CountURLToCache provides a mock function with given fields: ctx, params
func (*URLToCacheServiceInterface) CreateURLToCache ¶
func (_m *URLToCacheServiceInterface) CreateURLToCache(ctx *context.Context, params *client.CreateURLToCacheParams) (*client.URLToCache, *types.Error)
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 ¶
func (_m *URLToCacheServiceInterface) ListURLToCaches(ctx *context.Context, params *client.FindAllURLToCachesParams) ([]*client.URLToCache, *types.Error)
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 ¶
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 ¶
func (_m *URLToCacheStorage) FindAll(ctx *context.Context, params *client.FindAllURLToCachesParams) ([]*client.URLToCache, *types.Error)
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
Source Files ¶
- AcknowledgeRequestServiceInterface.go
- AcknowledgeRequestStorage.go
- ClientCacheServiceInterface.go
- ClientCacheStorage.go
- ClientRequestLogStorage.go
- EventMirroringServiceInterface.go
- EventPublisherServiceInterface.go
- GenericHTTPClient.go
- GenericStorage.go
- ImmutableGenericStorage.go
- Mailer.go
- Notifier.go
- Queryer.go
- RiceBoxSource.go
- Subscriber.go
- URLToCacheServiceInterface.go
- URLToCacheStorage.go