Documentation
¶
Index ¶
- type AsyncQueue
- type AsyncQueue_Expecter
- type AsyncQueue_Len_Call
- type AsyncQueue_Pop_Call
- type AsyncQueue_Push_Call
- type Condition
- type Condition_Expecter
- type Condition_NotifyAll_Call
- type Condition_NotifyOne_Call
- type Condition_Wait_Call
- type HTTPRequestMetricHelper
- type HTTPRequestMetricHelper_Expecter
- type HTTPRequestMetricHelper_RecordRequest_Call
- func (_c *HTTPRequestMetricHelper_RecordRequest_Call) Return() *HTTPRequestMetricHelper_RecordRequest_Call
- func (_c *HTTPRequestMetricHelper_RecordRequest_Call) Run(run func(method string, status int, latency time.Duration, respSize int64)) *HTTPRequestMetricHelper_RecordRequest_Call
- func (_c *HTTPRequestMetricHelper_RecordRequest_Call) RunAndReturn(run func(method string, status int, latency time.Duration, respSize int64)) *HTTPRequestMetricHelper_RecordRequest_Call
- type IntervalTimer
- type IntervalTimer_Expecter
- type IntervalTimer_Start_Call
- type IntervalTimer_Stop_Call
- type MessageBus
- func (_mock *MessageBus) CreateTopic(ctxt context.Context, topicName string, topicLogTags log.Fields) (goutils.MessageTopic, error)
- func (_mock *MessageBus) DeleteTopic(ctxt context.Context, topicName string) error
- func (_m *MessageBus) EXPECT() *MessageBus_Expecter
- func (_mock *MessageBus) GetTopic(ctxt context.Context, topicName string) (goutils.MessageTopic, error)
- type MessageBus_CreateTopic_Call
- func (_c *MessageBus_CreateTopic_Call) Return(messageTopic goutils.MessageTopic, err error) *MessageBus_CreateTopic_Call
- func (_c *MessageBus_CreateTopic_Call) Run(run func(ctxt context.Context, topicName string, topicLogTags log.Fields)) *MessageBus_CreateTopic_Call
- func (_c *MessageBus_CreateTopic_Call) RunAndReturn(...) *MessageBus_CreateTopic_Call
- type MessageBus_DeleteTopic_Call
- func (_c *MessageBus_DeleteTopic_Call) Return(err error) *MessageBus_DeleteTopic_Call
- func (_c *MessageBus_DeleteTopic_Call) Run(run func(ctxt context.Context, topicName string)) *MessageBus_DeleteTopic_Call
- func (_c *MessageBus_DeleteTopic_Call) RunAndReturn(run func(ctxt context.Context, topicName string) error) *MessageBus_DeleteTopic_Call
- type MessageBus_Expecter
- func (_e *MessageBus_Expecter) CreateTopic(ctxt interface{}, topicName interface{}, topicLogTags interface{}) *MessageBus_CreateTopic_Call
- func (_e *MessageBus_Expecter) DeleteTopic(ctxt interface{}, topicName interface{}) *MessageBus_DeleteTopic_Call
- func (_e *MessageBus_Expecter) GetTopic(ctxt interface{}, topicName interface{}) *MessageBus_GetTopic_Call
- type MessageBus_GetTopic_Call
- func (_c *MessageBus_GetTopic_Call) Return(messageTopic goutils.MessageTopic, err error) *MessageBus_GetTopic_Call
- func (_c *MessageBus_GetTopic_Call) Run(run func(ctxt context.Context, topicName string)) *MessageBus_GetTopic_Call
- func (_c *MessageBus_GetTopic_Call) RunAndReturn(run func(ctxt context.Context, topicName string) (goutils.MessageTopic, error)) *MessageBus_GetTopic_Call
- type MessageTopic
- func (_mock *MessageTopic) CreateSubscription(ctxt context.Context, subscriber string, bufferLen int) (chan interface{}, error)
- func (_mock *MessageTopic) DeleteSubscription(ctxt context.Context, subscriber string) error
- func (_m *MessageTopic) EXPECT() *MessageTopic_Expecter
- func (_mock *MessageTopic) Publish(ctxt context.Context, message interface{}, blockFor time.Duration) error
- type MessageTopic_CreateSubscription_Call
- func (_c *MessageTopic_CreateSubscription_Call) Return(ifaceValCh chan interface{}, err error) *MessageTopic_CreateSubscription_Call
- func (_c *MessageTopic_CreateSubscription_Call) Run(run func(ctxt context.Context, subscriber string, bufferLen int)) *MessageTopic_CreateSubscription_Call
- func (_c *MessageTopic_CreateSubscription_Call) RunAndReturn(...) *MessageTopic_CreateSubscription_Call
- type MessageTopic_DeleteSubscription_Call
- func (_c *MessageTopic_DeleteSubscription_Call) Return(err error) *MessageTopic_DeleteSubscription_Call
- func (_c *MessageTopic_DeleteSubscription_Call) Run(run func(ctxt context.Context, subscriber string)) *MessageTopic_DeleteSubscription_Call
- func (_c *MessageTopic_DeleteSubscription_Call) RunAndReturn(run func(ctxt context.Context, subscriber string) error) *MessageTopic_DeleteSubscription_Call
- type MessageTopic_Expecter
- func (_e *MessageTopic_Expecter) CreateSubscription(ctxt interface{}, subscriber interface{}, bufferLen interface{}) *MessageTopic_CreateSubscription_Call
- func (_e *MessageTopic_Expecter) DeleteSubscription(ctxt interface{}, subscriber interface{}) *MessageTopic_DeleteSubscription_Call
- func (_e *MessageTopic_Expecter) Publish(ctxt interface{}, message interface{}, blockFor interface{}) *MessageTopic_Publish_Call
- type MessageTopic_Publish_Call
- func (_c *MessageTopic_Publish_Call) Return(err error) *MessageTopic_Publish_Call
- func (_c *MessageTopic_Publish_Call) Run(run func(ctxt context.Context, message interface{}, blockFor time.Duration)) *MessageTopic_Publish_Call
- func (_c *MessageTopic_Publish_Call) RunAndReturn(...) *MessageTopic_Publish_Call
- type MetricsCollector
- func (_m *MetricsCollector) EXPECT() *MetricsCollector_Expecter
- func (_mock *MetricsCollector) ExposeCollectionEndpoint(router *mux.Router, metricsPath string, maxSupportedRequest int)
- func (_mock *MetricsCollector) InstallApplicationMetrics()
- func (_mock *MetricsCollector) InstallCustomCounterVecMetrics(ctxt context.Context, metricsName string, metricsHelpMessage string, ...) (*prometheus.CounterVec, error)
- func (_mock *MetricsCollector) InstallCustomGaugeVecMetrics(ctxt context.Context, metricsName string, metricsHelpMessage string, ...) (*prometheus.GaugeVec, error)
- func (_mock *MetricsCollector) InstallHTTPMetrics() goutils.HTTPRequestMetricHelper
- func (_mock *MetricsCollector) InstallPubSubMetrics() goutils.PubSubMetricHelper
- func (_mock *MetricsCollector) InstallTaskProcessorMetrics() goutils.TaskProcessorMetricHelper
- type MetricsCollector_Expecter
- func (_e *MetricsCollector_Expecter) ExposeCollectionEndpoint(router interface{}, metricsPath interface{}, maxSupportedRequest interface{}) *MetricsCollector_ExposeCollectionEndpoint_Call
- func (_e *MetricsCollector_Expecter) InstallApplicationMetrics() *MetricsCollector_InstallApplicationMetrics_Call
- func (_e *MetricsCollector_Expecter) InstallCustomCounterVecMetrics(ctxt interface{}, metricsName interface{}, metricsHelpMessage interface{}, ...) *MetricsCollector_InstallCustomCounterVecMetrics_Call
- func (_e *MetricsCollector_Expecter) InstallCustomGaugeVecMetrics(ctxt interface{}, metricsName interface{}, metricsHelpMessage interface{}, ...) *MetricsCollector_InstallCustomGaugeVecMetrics_Call
- func (_e *MetricsCollector_Expecter) InstallHTTPMetrics() *MetricsCollector_InstallHTTPMetrics_Call
- func (_e *MetricsCollector_Expecter) InstallPubSubMetrics() *MetricsCollector_InstallPubSubMetrics_Call
- func (_e *MetricsCollector_Expecter) InstallTaskProcessorMetrics() *MetricsCollector_InstallTaskProcessorMetrics_Call
- type MetricsCollector_ExposeCollectionEndpoint_Call
- func (_c *MetricsCollector_ExposeCollectionEndpoint_Call) Return() *MetricsCollector_ExposeCollectionEndpoint_Call
- func (_c *MetricsCollector_ExposeCollectionEndpoint_Call) Run(run func(router *mux.Router, metricsPath string, maxSupportedRequest int)) *MetricsCollector_ExposeCollectionEndpoint_Call
- func (_c *MetricsCollector_ExposeCollectionEndpoint_Call) RunAndReturn(run func(router *mux.Router, metricsPath string, maxSupportedRequest int)) *MetricsCollector_ExposeCollectionEndpoint_Call
- type MetricsCollector_InstallApplicationMetrics_Call
- func (_c *MetricsCollector_InstallApplicationMetrics_Call) Return() *MetricsCollector_InstallApplicationMetrics_Call
- func (_c *MetricsCollector_InstallApplicationMetrics_Call) Run(run func()) *MetricsCollector_InstallApplicationMetrics_Call
- func (_c *MetricsCollector_InstallApplicationMetrics_Call) RunAndReturn(run func()) *MetricsCollector_InstallApplicationMetrics_Call
- type MetricsCollector_InstallCustomCounterVecMetrics_Call
- func (_c *MetricsCollector_InstallCustomCounterVecMetrics_Call) Return(counterVec *prometheus.CounterVec, err error) *MetricsCollector_InstallCustomCounterVecMetrics_Call
- func (_c *MetricsCollector_InstallCustomCounterVecMetrics_Call) Run(...) *MetricsCollector_InstallCustomCounterVecMetrics_Call
- func (_c *MetricsCollector_InstallCustomCounterVecMetrics_Call) RunAndReturn(...) *MetricsCollector_InstallCustomCounterVecMetrics_Call
- type MetricsCollector_InstallCustomGaugeVecMetrics_Call
- func (_c *MetricsCollector_InstallCustomGaugeVecMetrics_Call) Return(gaugeVec *prometheus.GaugeVec, err error) *MetricsCollector_InstallCustomGaugeVecMetrics_Call
- func (_c *MetricsCollector_InstallCustomGaugeVecMetrics_Call) Run(...) *MetricsCollector_InstallCustomGaugeVecMetrics_Call
- func (_c *MetricsCollector_InstallCustomGaugeVecMetrics_Call) RunAndReturn(...) *MetricsCollector_InstallCustomGaugeVecMetrics_Call
- type MetricsCollector_InstallHTTPMetrics_Call
- func (_c *MetricsCollector_InstallHTTPMetrics_Call) Return(hTTPRequestMetricHelper goutils.HTTPRequestMetricHelper) *MetricsCollector_InstallHTTPMetrics_Call
- func (_c *MetricsCollector_InstallHTTPMetrics_Call) Run(run func()) *MetricsCollector_InstallHTTPMetrics_Call
- func (_c *MetricsCollector_InstallHTTPMetrics_Call) RunAndReturn(run func() goutils.HTTPRequestMetricHelper) *MetricsCollector_InstallHTTPMetrics_Call
- type MetricsCollector_InstallPubSubMetrics_Call
- func (_c *MetricsCollector_InstallPubSubMetrics_Call) Return(pubSubMetricHelper goutils.PubSubMetricHelper) *MetricsCollector_InstallPubSubMetrics_Call
- func (_c *MetricsCollector_InstallPubSubMetrics_Call) Run(run func()) *MetricsCollector_InstallPubSubMetrics_Call
- func (_c *MetricsCollector_InstallPubSubMetrics_Call) RunAndReturn(run func() goutils.PubSubMetricHelper) *MetricsCollector_InstallPubSubMetrics_Call
- type MetricsCollector_InstallTaskProcessorMetrics_Call
- func (_c *MetricsCollector_InstallTaskProcessorMetrics_Call) Return(taskProcessorMetricHelper goutils.TaskProcessorMetricHelper) *MetricsCollector_InstallTaskProcessorMetrics_Call
- func (_c *MetricsCollector_InstallTaskProcessorMetrics_Call) Run(run func()) *MetricsCollector_InstallTaskProcessorMetrics_Call
- func (_c *MetricsCollector_InstallTaskProcessorMetrics_Call) RunAndReturn(run func() goutils.TaskProcessorMetricHelper) *MetricsCollector_InstallTaskProcessorMetrics_Call
- type OAuthTokenManager
- type OAuthTokenManager_Expecter
- type OAuthTokenManager_GetToken_Call
- func (_c *OAuthTokenManager_GetToken_Call) Return(s string, err error) *OAuthTokenManager_GetToken_Call
- func (_c *OAuthTokenManager_GetToken_Call) Run(run func(ctxt context.Context, timestamp time.Time)) *OAuthTokenManager_GetToken_Call
- func (_c *OAuthTokenManager_GetToken_Call) RunAndReturn(run func(ctxt context.Context, timestamp time.Time) (string, error)) *OAuthTokenManager_GetToken_Call
- type OAuthTokenManager_Stop_Call
- func (_c *OAuthTokenManager_Stop_Call) Return(err error) *OAuthTokenManager_Stop_Call
- func (_c *OAuthTokenManager_Stop_Call) Run(run func(ctxt context.Context)) *OAuthTokenManager_Stop_Call
- func (_c *OAuthTokenManager_Stop_Call) RunAndReturn(run func(ctxt context.Context) error) *OAuthTokenManager_Stop_Call
- type OpenIDProviderClient
- func (_mock *OpenIDProviderClient) AssociatedPublicKey(token *jwt.Token) (interface{}, error)
- func (_mock *OpenIDProviderClient) CanIntrospect() bool
- func (_m *OpenIDProviderClient) EXPECT() *OpenIDProviderClient_Expecter
- func (_mock *OpenIDProviderClient) IntrospectToken(ctxt context.Context, token string) (bool, error)
- func (_mock *OpenIDProviderClient) ParseJWT(raw string, claimStore jwt.Claims) (*jwt.Token, error)
- type OpenIDProviderClient_AssociatedPublicKey_Call
- func (_c *OpenIDProviderClient_AssociatedPublicKey_Call) Return(ifaceVal interface{}, err error) *OpenIDProviderClient_AssociatedPublicKey_Call
- func (_c *OpenIDProviderClient_AssociatedPublicKey_Call) Run(run func(token *jwt.Token)) *OpenIDProviderClient_AssociatedPublicKey_Call
- func (_c *OpenIDProviderClient_AssociatedPublicKey_Call) RunAndReturn(run func(token *jwt.Token) (interface{}, error)) *OpenIDProviderClient_AssociatedPublicKey_Call
- type OpenIDProviderClient_CanIntrospect_Call
- func (_c *OpenIDProviderClient_CanIntrospect_Call) Return(b bool) *OpenIDProviderClient_CanIntrospect_Call
- func (_c *OpenIDProviderClient_CanIntrospect_Call) Run(run func()) *OpenIDProviderClient_CanIntrospect_Call
- func (_c *OpenIDProviderClient_CanIntrospect_Call) RunAndReturn(run func() bool) *OpenIDProviderClient_CanIntrospect_Call
- type OpenIDProviderClient_Expecter
- func (_e *OpenIDProviderClient_Expecter) AssociatedPublicKey(token interface{}) *OpenIDProviderClient_AssociatedPublicKey_Call
- func (_e *OpenIDProviderClient_Expecter) CanIntrospect() *OpenIDProviderClient_CanIntrospect_Call
- func (_e *OpenIDProviderClient_Expecter) IntrospectToken(ctxt interface{}, token interface{}) *OpenIDProviderClient_IntrospectToken_Call
- func (_e *OpenIDProviderClient_Expecter) ParseJWT(raw interface{}, claimStore interface{}) *OpenIDProviderClient_ParseJWT_Call
- type OpenIDProviderClient_IntrospectToken_Call
- func (_c *OpenIDProviderClient_IntrospectToken_Call) Return(b bool, err error) *OpenIDProviderClient_IntrospectToken_Call
- func (_c *OpenIDProviderClient_IntrospectToken_Call) Run(run func(ctxt context.Context, token string)) *OpenIDProviderClient_IntrospectToken_Call
- func (_c *OpenIDProviderClient_IntrospectToken_Call) RunAndReturn(run func(ctxt context.Context, token string) (bool, error)) *OpenIDProviderClient_IntrospectToken_Call
- type OpenIDProviderClient_ParseJWT_Call
- func (_c *OpenIDProviderClient_ParseJWT_Call) Return(token *jwt.Token, err error) *OpenIDProviderClient_ParseJWT_Call
- func (_c *OpenIDProviderClient_ParseJWT_Call) Run(run func(raw string, claimStore jwt.Claims)) *OpenIDProviderClient_ParseJWT_Call
- func (_c *OpenIDProviderClient_ParseJWT_Call) RunAndReturn(run func(raw string, claimStore jwt.Claims) (*jwt.Token, error)) *OpenIDProviderClient_ParseJWT_Call
- type PriorityQueueEntry
- type PriorityQueueEntry_Expecter
- type PriorityQueueEntry_HigherPriorityThan_Call
- func (_c *PriorityQueueEntry_HigherPriorityThan_Call) Return(b bool) *PriorityQueueEntry_HigherPriorityThan_Call
- func (_c *PriorityQueueEntry_HigherPriorityThan_Call) Run(run func(right goutils.PriorityQueueEntry)) *PriorityQueueEntry_HigherPriorityThan_Call
- func (_c *PriorityQueueEntry_HigherPriorityThan_Call) RunAndReturn(run func(right goutils.PriorityQueueEntry) bool) *PriorityQueueEntry_HigherPriorityThan_Call
- type PubSubClient
- func (_mock *PubSubClient) Close(ctxt context.Context) error
- func (_mock *PubSubClient) CreateSubscription(ctxt context.Context, targetTopic string, subscription string, ...) error
- func (_mock *PubSubClient) CreateTopic(ctxt context.Context, topic string, config *pubsub.TopicConfig) error
- func (_mock *PubSubClient) DeleteSubscription(ctxt context.Context, subscription string) error
- func (_mock *PubSubClient) DeleteTopic(ctxt context.Context, topic string) error
- func (_m *PubSubClient) EXPECT() *PubSubClient_Expecter
- func (_mock *PubSubClient) GetSubscription(ctxt context.Context, subscription string) (pubsub.SubscriptionConfig, error)
- func (_mock *PubSubClient) GetTopic(ctxt context.Context, topic string) (pubsub.TopicConfig, error)
- func (_mock *PubSubClient) Publish(ctxt context.Context, topic string, message []byte, metadata map[string]string, ...) (*pubsub.PublishResult, error)
- func (_mock *PubSubClient) Subscribe(ctxt context.Context, subscription string, ...) error
- func (_mock *PubSubClient) UpdateLocalSubscriptionCache(ctxt context.Context) error
- func (_mock *PubSubClient) UpdateLocalTopicCache(ctxt context.Context) error
- func (_mock *PubSubClient) UpdateSubscription(ctxt context.Context, subscription string, ...) error
- func (_mock *PubSubClient) UpdateTopic(ctxt context.Context, topic string, newConfig pubsub.TopicConfigToUpdate) error
- type PubSubClient_Close_Call
- type PubSubClient_CreateSubscription_Call
- func (_c *PubSubClient_CreateSubscription_Call) Return(err error) *PubSubClient_CreateSubscription_Call
- func (_c *PubSubClient_CreateSubscription_Call) Run(run func(ctxt context.Context, targetTopic string, subscription string, ...)) *PubSubClient_CreateSubscription_Call
- func (_c *PubSubClient_CreateSubscription_Call) RunAndReturn(...) *PubSubClient_CreateSubscription_Call
- type PubSubClient_CreateTopic_Call
- func (_c *PubSubClient_CreateTopic_Call) Return(err error) *PubSubClient_CreateTopic_Call
- func (_c *PubSubClient_CreateTopic_Call) Run(run func(ctxt context.Context, topic string, config *pubsub.TopicConfig)) *PubSubClient_CreateTopic_Call
- func (_c *PubSubClient_CreateTopic_Call) RunAndReturn(run func(ctxt context.Context, topic string, config *pubsub.TopicConfig) error) *PubSubClient_CreateTopic_Call
- type PubSubClient_DeleteSubscription_Call
- func (_c *PubSubClient_DeleteSubscription_Call) Return(err error) *PubSubClient_DeleteSubscription_Call
- func (_c *PubSubClient_DeleteSubscription_Call) Run(run func(ctxt context.Context, subscription string)) *PubSubClient_DeleteSubscription_Call
- func (_c *PubSubClient_DeleteSubscription_Call) RunAndReturn(run func(ctxt context.Context, subscription string) error) *PubSubClient_DeleteSubscription_Call
- type PubSubClient_DeleteTopic_Call
- func (_c *PubSubClient_DeleteTopic_Call) Return(err error) *PubSubClient_DeleteTopic_Call
- func (_c *PubSubClient_DeleteTopic_Call) Run(run func(ctxt context.Context, topic string)) *PubSubClient_DeleteTopic_Call
- func (_c *PubSubClient_DeleteTopic_Call) RunAndReturn(run func(ctxt context.Context, topic string) error) *PubSubClient_DeleteTopic_Call
- type PubSubClient_Expecter
- func (_e *PubSubClient_Expecter) Close(ctxt interface{}) *PubSubClient_Close_Call
- func (_e *PubSubClient_Expecter) CreateSubscription(ctxt interface{}, targetTopic interface{}, subscription interface{}, ...) *PubSubClient_CreateSubscription_Call
- func (_e *PubSubClient_Expecter) CreateTopic(ctxt interface{}, topic interface{}, config interface{}) *PubSubClient_CreateTopic_Call
- func (_e *PubSubClient_Expecter) DeleteSubscription(ctxt interface{}, subscription interface{}) *PubSubClient_DeleteSubscription_Call
- func (_e *PubSubClient_Expecter) DeleteTopic(ctxt interface{}, topic interface{}) *PubSubClient_DeleteTopic_Call
- func (_e *PubSubClient_Expecter) GetSubscription(ctxt interface{}, subscription interface{}) *PubSubClient_GetSubscription_Call
- func (_e *PubSubClient_Expecter) GetTopic(ctxt interface{}, topic interface{}) *PubSubClient_GetTopic_Call
- func (_e *PubSubClient_Expecter) Publish(ctxt interface{}, topic interface{}, message interface{}, metadata interface{}, ...) *PubSubClient_Publish_Call
- func (_e *PubSubClient_Expecter) Subscribe(ctxt interface{}, subscription interface{}, handler interface{}) *PubSubClient_Subscribe_Call
- func (_e *PubSubClient_Expecter) UpdateLocalSubscriptionCache(ctxt interface{}) *PubSubClient_UpdateLocalSubscriptionCache_Call
- func (_e *PubSubClient_Expecter) UpdateLocalTopicCache(ctxt interface{}) *PubSubClient_UpdateLocalTopicCache_Call
- func (_e *PubSubClient_Expecter) UpdateSubscription(ctxt interface{}, subscription interface{}, newConfig interface{}) *PubSubClient_UpdateSubscription_Call
- func (_e *PubSubClient_Expecter) UpdateTopic(ctxt interface{}, topic interface{}, newConfig interface{}) *PubSubClient_UpdateTopic_Call
- type PubSubClient_GetSubscription_Call
- func (_c *PubSubClient_GetSubscription_Call) Return(subscriptionConfig pubsub.SubscriptionConfig, err error) *PubSubClient_GetSubscription_Call
- func (_c *PubSubClient_GetSubscription_Call) Run(run func(ctxt context.Context, subscription string)) *PubSubClient_GetSubscription_Call
- func (_c *PubSubClient_GetSubscription_Call) RunAndReturn(...) *PubSubClient_GetSubscription_Call
- type PubSubClient_GetTopic_Call
- func (_c *PubSubClient_GetTopic_Call) Return(topicConfig pubsub.TopicConfig, err error) *PubSubClient_GetTopic_Call
- func (_c *PubSubClient_GetTopic_Call) Run(run func(ctxt context.Context, topic string)) *PubSubClient_GetTopic_Call
- func (_c *PubSubClient_GetTopic_Call) RunAndReturn(run func(ctxt context.Context, topic string) (pubsub.TopicConfig, error)) *PubSubClient_GetTopic_Call
- type PubSubClient_Publish_Call
- type PubSubClient_Subscribe_Call
- func (_c *PubSubClient_Subscribe_Call) Return(err error) *PubSubClient_Subscribe_Call
- func (_c *PubSubClient_Subscribe_Call) Run(run func(ctxt context.Context, subscription string, ...)) *PubSubClient_Subscribe_Call
- func (_c *PubSubClient_Subscribe_Call) RunAndReturn(run func(ctxt context.Context, subscription string, ...) error) *PubSubClient_Subscribe_Call
- type PubSubClient_UpdateLocalSubscriptionCache_Call
- func (_c *PubSubClient_UpdateLocalSubscriptionCache_Call) Return(err error) *PubSubClient_UpdateLocalSubscriptionCache_Call
- func (_c *PubSubClient_UpdateLocalSubscriptionCache_Call) Run(run func(ctxt context.Context)) *PubSubClient_UpdateLocalSubscriptionCache_Call
- func (_c *PubSubClient_UpdateLocalSubscriptionCache_Call) RunAndReturn(run func(ctxt context.Context) error) *PubSubClient_UpdateLocalSubscriptionCache_Call
- type PubSubClient_UpdateLocalTopicCache_Call
- func (_c *PubSubClient_UpdateLocalTopicCache_Call) Return(err error) *PubSubClient_UpdateLocalTopicCache_Call
- func (_c *PubSubClient_UpdateLocalTopicCache_Call) Run(run func(ctxt context.Context)) *PubSubClient_UpdateLocalTopicCache_Call
- func (_c *PubSubClient_UpdateLocalTopicCache_Call) RunAndReturn(run func(ctxt context.Context) error) *PubSubClient_UpdateLocalTopicCache_Call
- type PubSubClient_UpdateSubscription_Call
- func (_c *PubSubClient_UpdateSubscription_Call) Return(err error) *PubSubClient_UpdateSubscription_Call
- func (_c *PubSubClient_UpdateSubscription_Call) Run(run func(ctxt context.Context, subscription string, ...)) *PubSubClient_UpdateSubscription_Call
- func (_c *PubSubClient_UpdateSubscription_Call) RunAndReturn(run func(ctxt context.Context, subscription string, ...) error) *PubSubClient_UpdateSubscription_Call
- type PubSubClient_UpdateTopic_Call
- type PubSubMetricHelper
- type PubSubMetricHelper_Expecter
- func (_e *PubSubMetricHelper_Expecter) RecordPublish(topic interface{}, successful interface{}, payloadLen interface{}) *PubSubMetricHelper_RecordPublish_Call
- func (_e *PubSubMetricHelper_Expecter) RecordReceive(topic interface{}, successful interface{}, payloadLen interface{}) *PubSubMetricHelper_RecordReceive_Call
- type PubSubMetricHelper_RecordPublish_Call
- func (_c *PubSubMetricHelper_RecordPublish_Call) Return() *PubSubMetricHelper_RecordPublish_Call
- func (_c *PubSubMetricHelper_RecordPublish_Call) Run(run func(topic string, successful bool, payloadLen int64)) *PubSubMetricHelper_RecordPublish_Call
- func (_c *PubSubMetricHelper_RecordPublish_Call) RunAndReturn(run func(topic string, successful bool, payloadLen int64)) *PubSubMetricHelper_RecordPublish_Call
- type PubSubMetricHelper_RecordReceive_Call
- func (_c *PubSubMetricHelper_RecordReceive_Call) Return() *PubSubMetricHelper_RecordReceive_Call
- func (_c *PubSubMetricHelper_RecordReceive_Call) Run(run func(topic string, successful bool, payloadLen int64)) *PubSubMetricHelper_RecordReceive_Call
- func (_c *PubSubMetricHelper_RecordReceive_Call) RunAndReturn(run func(topic string, successful bool, payloadLen int64)) *PubSubMetricHelper_RecordReceive_Call
- type Queue
- type Queue_Expecter
- type Queue_Len_Call
- type Queue_Pop_Call
- type Queue_Push_Call
- type RequestResponseClient
- func (_m *RequestResponseClient) EXPECT() *RequestResponseClient_Expecter
- func (_mock *RequestResponseClient) Request(ctxt context.Context, targetID string, message []byte, ...) (string, error)
- func (_mock *RequestResponseClient) Respond(ctxt context.Context, originalReq goutils.ReqRespMessage, message []byte, ...) error
- func (_mock *RequestResponseClient) SetInboundRequestHandler(ctxt context.Context, handler goutils.ReqRespMessageHandler) error
- func (_mock *RequestResponseClient) Stop(ctxt context.Context) error
- type RequestResponseClient_Expecter
- func (_e *RequestResponseClient_Expecter) Request(ctxt interface{}, targetID interface{}, message interface{}, ...) *RequestResponseClient_Request_Call
- func (_e *RequestResponseClient_Expecter) Respond(ctxt interface{}, originalReq interface{}, message interface{}, ...) *RequestResponseClient_Respond_Call
- func (_e *RequestResponseClient_Expecter) SetInboundRequestHandler(ctxt interface{}, handler interface{}) *RequestResponseClient_SetInboundRequestHandler_Call
- func (_e *RequestResponseClient_Expecter) Stop(ctxt interface{}) *RequestResponseClient_Stop_Call
- type RequestResponseClient_Request_Call
- func (_c *RequestResponseClient_Request_Call) Return(s string, err error) *RequestResponseClient_Request_Call
- func (_c *RequestResponseClient_Request_Call) Run(run func(ctxt context.Context, targetID string, message []byte, ...)) *RequestResponseClient_Request_Call
- func (_c *RequestResponseClient_Request_Call) RunAndReturn(...) *RequestResponseClient_Request_Call
- type RequestResponseClient_Respond_Call
- type RequestResponseClient_SetInboundRequestHandler_Call
- func (_c *RequestResponseClient_SetInboundRequestHandler_Call) Return(err error) *RequestResponseClient_SetInboundRequestHandler_Call
- func (_c *RequestResponseClient_SetInboundRequestHandler_Call) Run(run func(ctxt context.Context, handler goutils.ReqRespMessageHandler)) *RequestResponseClient_SetInboundRequestHandler_Call
- func (_c *RequestResponseClient_SetInboundRequestHandler_Call) RunAndReturn(run func(ctxt context.Context, handler goutils.ReqRespMessageHandler) error) *RequestResponseClient_SetInboundRequestHandler_Call
- type RequestResponseClient_Stop_Call
- func (_c *RequestResponseClient_Stop_Call) Return(err error) *RequestResponseClient_Stop_Call
- func (_c *RequestResponseClient_Stop_Call) Run(run func(ctxt context.Context)) *RequestResponseClient_Stop_Call
- func (_c *RequestResponseClient_Stop_Call) RunAndReturn(run func(ctxt context.Context) error) *RequestResponseClient_Stop_Call
- type S3Client
- func (_mock *S3Client) CopyObject(ctx context.Context, srcBucket string, srcKey string, dstBucket string, ...) error
- func (_mock *S3Client) CreateBucket(ctx context.Context, bucket string) error
- func (_mock *S3Client) DeleteBucket(ctx context.Context, bucket string) error
- func (_mock *S3Client) DeleteObject(ctx context.Context, bucket string, objectKey string) error
- func (_mock *S3Client) DeleteObjects(ctx context.Context, bucketName string, objectKeys []string) (map[string]error, error)
- func (_m *S3Client) EXPECT() *S3Client_Expecter
- func (_mock *S3Client) GeneratePresignedGetURL(ctx context.Context, bucketName string, objectKey string, ttl time.Duration, ...) (*url.URL, error)
- func (_mock *S3Client) GeneratePresignedPutURL(ctx context.Context, bucketName string, objectKey string, objectSize int64, ...) (*url.URL, error)
- func (_mock *S3Client) GetObject(ctx context.Context, bucket string, objectKey string) (goutils.S3ObjectStat, goutils.S3ObjectReader, error)
- func (_mock *S3Client) GetObjectStat(ctx context.Context, bucket string, objectKey string) (goutils.S3ObjectStat, error)
- func (_mock *S3Client) ListBuckets(ctx context.Context) ([]string, error)
- func (_mock *S3Client) ListObjects(ctx context.Context, bucket string, prefix *string, startingKey *string, ...) ([]goutils.S3ObjectStat, error)
- func (_mock *S3Client) PutObject(ctx context.Context, bucket string, objectKey string, data io.Reader, ...) error
- type S3ClientManager
- type S3ClientManager_Expecter
- type S3ClientManager_GetClient_Call
- func (_c *S3ClientManager_GetClient_Call) Return(s3Client goutils.S3Client, err error) *S3ClientManager_GetClient_Call
- func (_c *S3ClientManager_GetClient_Call) Run(run func(ctxt context.Context, timestamp time.Time)) *S3ClientManager_GetClient_Call
- func (_c *S3ClientManager_GetClient_Call) RunAndReturn(run func(ctxt context.Context, timestamp time.Time) (goutils.S3Client, error)) *S3ClientManager_GetClient_Call
- type S3Client_CopyObject_Call
- type S3Client_CreateBucket_Call
- func (_c *S3Client_CreateBucket_Call) Return(err error) *S3Client_CreateBucket_Call
- func (_c *S3Client_CreateBucket_Call) Run(run func(ctx context.Context, bucket string)) *S3Client_CreateBucket_Call
- func (_c *S3Client_CreateBucket_Call) RunAndReturn(run func(ctx context.Context, bucket string) error) *S3Client_CreateBucket_Call
- type S3Client_DeleteBucket_Call
- func (_c *S3Client_DeleteBucket_Call) Return(err error) *S3Client_DeleteBucket_Call
- func (_c *S3Client_DeleteBucket_Call) Run(run func(ctx context.Context, bucket string)) *S3Client_DeleteBucket_Call
- func (_c *S3Client_DeleteBucket_Call) RunAndReturn(run func(ctx context.Context, bucket string) error) *S3Client_DeleteBucket_Call
- type S3Client_DeleteObject_Call
- func (_c *S3Client_DeleteObject_Call) Return(err error) *S3Client_DeleteObject_Call
- func (_c *S3Client_DeleteObject_Call) Run(run func(ctx context.Context, bucket string, objectKey string)) *S3Client_DeleteObject_Call
- func (_c *S3Client_DeleteObject_Call) RunAndReturn(run func(ctx context.Context, bucket string, objectKey string) error) *S3Client_DeleteObject_Call
- type S3Client_DeleteObjects_Call
- func (_c *S3Client_DeleteObjects_Call) Return(stringToErr map[string]error, err error) *S3Client_DeleteObjects_Call
- func (_c *S3Client_DeleteObjects_Call) Run(run func(ctx context.Context, bucketName string, objectKeys []string)) *S3Client_DeleteObjects_Call
- func (_c *S3Client_DeleteObjects_Call) RunAndReturn(...) *S3Client_DeleteObjects_Call
- type S3Client_Expecter
- func (_e *S3Client_Expecter) CopyObject(ctx interface{}, srcBucket interface{}, srcKey interface{}, ...) *S3Client_CopyObject_Call
- func (_e *S3Client_Expecter) CreateBucket(ctx interface{}, bucket interface{}) *S3Client_CreateBucket_Call
- func (_e *S3Client_Expecter) DeleteBucket(ctx interface{}, bucket interface{}) *S3Client_DeleteBucket_Call
- func (_e *S3Client_Expecter) DeleteObject(ctx interface{}, bucket interface{}, objectKey interface{}) *S3Client_DeleteObject_Call
- func (_e *S3Client_Expecter) DeleteObjects(ctx interface{}, bucketName interface{}, objectKeys interface{}) *S3Client_DeleteObjects_Call
- func (_e *S3Client_Expecter) GeneratePresignedGetURL(ctx interface{}, bucketName interface{}, objectKey interface{}, ...) *S3Client_GeneratePresignedGetURL_Call
- func (_e *S3Client_Expecter) GeneratePresignedPutURL(ctx interface{}, bucketName interface{}, objectKey interface{}, ...) *S3Client_GeneratePresignedPutURL_Call
- func (_e *S3Client_Expecter) GetObject(ctx interface{}, bucket interface{}, objectKey interface{}) *S3Client_GetObject_Call
- func (_e *S3Client_Expecter) GetObjectStat(ctx interface{}, bucket interface{}, objectKey interface{}) *S3Client_GetObjectStat_Call
- func (_e *S3Client_Expecter) ListBuckets(ctx interface{}) *S3Client_ListBuckets_Call
- func (_e *S3Client_Expecter) ListObjects(ctx interface{}, bucket interface{}, prefix interface{}, ...) *S3Client_ListObjects_Call
- func (_e *S3Client_Expecter) PutObject(ctx interface{}, bucket interface{}, objectKey interface{}, data interface{}, ...) *S3Client_PutObject_Call
- type S3Client_GeneratePresignedGetURL_Call
- func (_c *S3Client_GeneratePresignedGetURL_Call) Return(uRL *url.URL, err error) *S3Client_GeneratePresignedGetURL_Call
- func (_c *S3Client_GeneratePresignedGetURL_Call) Run(...) *S3Client_GeneratePresignedGetURL_Call
- func (_c *S3Client_GeneratePresignedGetURL_Call) RunAndReturn(...) *S3Client_GeneratePresignedGetURL_Call
- type S3Client_GeneratePresignedPutURL_Call
- func (_c *S3Client_GeneratePresignedPutURL_Call) Return(uRL *url.URL, err error) *S3Client_GeneratePresignedPutURL_Call
- func (_c *S3Client_GeneratePresignedPutURL_Call) Run(...) *S3Client_GeneratePresignedPutURL_Call
- func (_c *S3Client_GeneratePresignedPutURL_Call) RunAndReturn(...) *S3Client_GeneratePresignedPutURL_Call
- type S3Client_GetObjectStat_Call
- func (_c *S3Client_GetObjectStat_Call) Return(s3ObjectStat goutils.S3ObjectStat, err error) *S3Client_GetObjectStat_Call
- func (_c *S3Client_GetObjectStat_Call) Run(run func(ctx context.Context, bucket string, objectKey string)) *S3Client_GetObjectStat_Call
- func (_c *S3Client_GetObjectStat_Call) RunAndReturn(...) *S3Client_GetObjectStat_Call
- type S3Client_GetObject_Call
- func (_c *S3Client_GetObject_Call) Return(s3ObjectStat goutils.S3ObjectStat, s3ObjectReader goutils.S3ObjectReader, ...) *S3Client_GetObject_Call
- func (_c *S3Client_GetObject_Call) Run(run func(ctx context.Context, bucket string, objectKey string)) *S3Client_GetObject_Call
- func (_c *S3Client_GetObject_Call) RunAndReturn(...) *S3Client_GetObject_Call
- type S3Client_ListBuckets_Call
- func (_c *S3Client_ListBuckets_Call) Return(strings []string, err error) *S3Client_ListBuckets_Call
- func (_c *S3Client_ListBuckets_Call) Run(run func(ctx context.Context)) *S3Client_ListBuckets_Call
- func (_c *S3Client_ListBuckets_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *S3Client_ListBuckets_Call
- type S3Client_ListObjects_Call
- type S3Client_PutObject_Call
- type S3ObjectReader
- func (_mock *S3ObjectReader) Close() error
- func (_m *S3ObjectReader) EXPECT() *S3ObjectReader_Expecter
- func (_mock *S3ObjectReader) Read(p []byte) (int, error)
- func (_mock *S3ObjectReader) ReadAt(p []byte, off int64) (int, error)
- func (_mock *S3ObjectReader) Seek(offset int64, whence int) (int64, error)
- type S3ObjectReader_Close_Call
- type S3ObjectReader_Expecter
- func (_e *S3ObjectReader_Expecter) Close() *S3ObjectReader_Close_Call
- func (_e *S3ObjectReader_Expecter) Read(p interface{}) *S3ObjectReader_Read_Call
- func (_e *S3ObjectReader_Expecter) ReadAt(p interface{}, off interface{}) *S3ObjectReader_ReadAt_Call
- func (_e *S3ObjectReader_Expecter) Seek(offset interface{}, whence interface{}) *S3ObjectReader_Seek_Call
- type S3ObjectReader_ReadAt_Call
- func (_c *S3ObjectReader_ReadAt_Call) Return(n int, err error) *S3ObjectReader_ReadAt_Call
- func (_c *S3ObjectReader_ReadAt_Call) Run(run func(p []byte, off int64)) *S3ObjectReader_ReadAt_Call
- func (_c *S3ObjectReader_ReadAt_Call) RunAndReturn(run func(p []byte, off int64) (int, error)) *S3ObjectReader_ReadAt_Call
- type S3ObjectReader_Read_Call
- type S3ObjectReader_Seek_Call
- func (_c *S3ObjectReader_Seek_Call) Return(n int64, err error) *S3ObjectReader_Seek_Call
- func (_c *S3ObjectReader_Seek_Call) Run(run func(offset int64, whence int)) *S3ObjectReader_Seek_Call
- func (_c *S3ObjectReader_Seek_Call) RunAndReturn(run func(offset int64, whence int) (int64, error)) *S3ObjectReader_Seek_Call
- type Sequencer
- type Sequencer_Expecter
- type Sequencer_NextValue_Call
- type TaskProcessor
- func (_mock *TaskProcessor) AddToTaskExecutionMap(parameterType reflect.Type, handler goutils.TaskProcessorSupportHandler) error
- func (_m *TaskProcessor) EXPECT() *TaskProcessor_Expecter
- func (_mock *TaskProcessor) SetTaskExecutionMap(newMap map[reflect.Type]goutils.TaskProcessorSupportHandler) error
- func (_mock *TaskProcessor) StartEventLoop(wg *sync.WaitGroup) error
- func (_mock *TaskProcessor) StopEventLoop() error
- func (_mock *TaskProcessor) Submit(ctx context.Context, newTaskParam interface{}) error
- type TaskProcessorMetricHelper
- type TaskProcessorMetricHelper_Expecter
- type TaskProcessorMetricHelper_RecordProcessed_Call
- func (_c *TaskProcessorMetricHelper_RecordProcessed_Call) Return() *TaskProcessorMetricHelper_RecordProcessed_Call
- func (_c *TaskProcessorMetricHelper_RecordProcessed_Call) Run(run func(instance string)) *TaskProcessorMetricHelper_RecordProcessed_Call
- func (_c *TaskProcessorMetricHelper_RecordProcessed_Call) RunAndReturn(run func(instance string)) *TaskProcessorMetricHelper_RecordProcessed_Call
- type TaskProcessorMetricHelper_RecordSubmit_Call
- func (_c *TaskProcessorMetricHelper_RecordSubmit_Call) Return() *TaskProcessorMetricHelper_RecordSubmit_Call
- func (_c *TaskProcessorMetricHelper_RecordSubmit_Call) Run(run func(instance string, successful bool)) *TaskProcessorMetricHelper_RecordSubmit_Call
- func (_c *TaskProcessorMetricHelper_RecordSubmit_Call) RunAndReturn(run func(instance string, successful bool)) *TaskProcessorMetricHelper_RecordSubmit_Call
- type TaskProcessor_AddToTaskExecutionMap_Call
- func (_c *TaskProcessor_AddToTaskExecutionMap_Call) Return(err error) *TaskProcessor_AddToTaskExecutionMap_Call
- func (_c *TaskProcessor_AddToTaskExecutionMap_Call) Run(...) *TaskProcessor_AddToTaskExecutionMap_Call
- func (_c *TaskProcessor_AddToTaskExecutionMap_Call) RunAndReturn(...) *TaskProcessor_AddToTaskExecutionMap_Call
- type TaskProcessor_Expecter
- func (_e *TaskProcessor_Expecter) AddToTaskExecutionMap(parameterType interface{}, handler interface{}) *TaskProcessor_AddToTaskExecutionMap_Call
- func (_e *TaskProcessor_Expecter) SetTaskExecutionMap(newMap interface{}) *TaskProcessor_SetTaskExecutionMap_Call
- func (_e *TaskProcessor_Expecter) StartEventLoop(wg interface{}) *TaskProcessor_StartEventLoop_Call
- func (_e *TaskProcessor_Expecter) StopEventLoop() *TaskProcessor_StopEventLoop_Call
- func (_e *TaskProcessor_Expecter) Submit(ctx interface{}, newTaskParam interface{}) *TaskProcessor_Submit_Call
- type TaskProcessor_SetTaskExecutionMap_Call
- func (_c *TaskProcessor_SetTaskExecutionMap_Call) Return(err error) *TaskProcessor_SetTaskExecutionMap_Call
- func (_c *TaskProcessor_SetTaskExecutionMap_Call) Run(run func(newMap map[reflect.Type]goutils.TaskProcessorSupportHandler)) *TaskProcessor_SetTaskExecutionMap_Call
- func (_c *TaskProcessor_SetTaskExecutionMap_Call) RunAndReturn(run func(newMap map[reflect.Type]goutils.TaskProcessorSupportHandler) error) *TaskProcessor_SetTaskExecutionMap_Call
- type TaskProcessor_StartEventLoop_Call
- func (_c *TaskProcessor_StartEventLoop_Call) Return(err error) *TaskProcessor_StartEventLoop_Call
- func (_c *TaskProcessor_StartEventLoop_Call) Run(run func(wg *sync.WaitGroup)) *TaskProcessor_StartEventLoop_Call
- func (_c *TaskProcessor_StartEventLoop_Call) RunAndReturn(run func(wg *sync.WaitGroup) error) *TaskProcessor_StartEventLoop_Call
- type TaskProcessor_StopEventLoop_Call
- type TaskProcessor_Submit_Call
- func (_c *TaskProcessor_Submit_Call) Return(err error) *TaskProcessor_Submit_Call
- func (_c *TaskProcessor_Submit_Call) Run(run func(ctx context.Context, newTaskParam interface{})) *TaskProcessor_Submit_Call
- func (_c *TaskProcessor_Submit_Call) RunAndReturn(run func(ctx context.Context, newTaskParam interface{}) error) *TaskProcessor_Submit_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncQueue ¶
AsyncQueue is an autogenerated mock type for the AsyncQueue type
func NewAsyncQueue ¶
func NewAsyncQueue[V any](t interface { mock.TestingT Cleanup(func()) }) *AsyncQueue[V]
NewAsyncQueue creates a new instance of AsyncQueue. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AsyncQueue[V]) EXPECT ¶
func (_m *AsyncQueue[V]) EXPECT() *AsyncQueue_Expecter[V]
func (*AsyncQueue[V]) Len ¶
func (_mock *AsyncQueue[V]) Len() int
Len provides a mock function for the type AsyncQueue
type AsyncQueue_Expecter ¶
type AsyncQueue_Expecter[V any] struct { // contains filtered or unexported fields }
func (*AsyncQueue_Expecter[V]) Len ¶
func (_e *AsyncQueue_Expecter[V]) Len() *AsyncQueue_Len_Call[V]
Len is a helper method to define mock.On call
func (*AsyncQueue_Expecter[V]) Pop ¶
func (_e *AsyncQueue_Expecter[V]) Pop(ctx interface{}, blocking interface{}, newDataSignalFlag interface{}) *AsyncQueue_Pop_Call[V]
Pop is a helper method to define mock.On call
- ctx context.Context
- blocking bool
- newDataSignalFlag chan bool
func (*AsyncQueue_Expecter[V]) Push ¶
func (_e *AsyncQueue_Expecter[V]) Push(ctx interface{}, data interface{}) *AsyncQueue_Push_Call[V]
Push is a helper method to define mock.On call
- ctx context.Context
- data V
type AsyncQueue_Len_Call ¶
AsyncQueue_Len_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Len'
func (*AsyncQueue_Len_Call[V]) Return ¶
func (_c *AsyncQueue_Len_Call[V]) Return(n int) *AsyncQueue_Len_Call[V]
func (*AsyncQueue_Len_Call[V]) Run ¶
func (_c *AsyncQueue_Len_Call[V]) Run(run func()) *AsyncQueue_Len_Call[V]
func (*AsyncQueue_Len_Call[V]) RunAndReturn ¶
func (_c *AsyncQueue_Len_Call[V]) RunAndReturn(run func() int) *AsyncQueue_Len_Call[V]
type AsyncQueue_Pop_Call ¶
AsyncQueue_Pop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pop'
func (*AsyncQueue_Pop_Call[V]) Return ¶
func (_c *AsyncQueue_Pop_Call[V]) Return(v V, err error) *AsyncQueue_Pop_Call[V]
func (*AsyncQueue_Pop_Call[V]) Run ¶
func (_c *AsyncQueue_Pop_Call[V]) Run(run func(ctx context.Context, blocking bool, newDataSignalFlag chan bool)) *AsyncQueue_Pop_Call[V]
func (*AsyncQueue_Pop_Call[V]) RunAndReturn ¶
func (_c *AsyncQueue_Pop_Call[V]) RunAndReturn(run func(ctx context.Context, blocking bool, newDataSignalFlag chan bool) (V, error)) *AsyncQueue_Pop_Call[V]
type AsyncQueue_Push_Call ¶
AsyncQueue_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'
func (*AsyncQueue_Push_Call[V]) Return ¶
func (_c *AsyncQueue_Push_Call[V]) Return(err error) *AsyncQueue_Push_Call[V]
func (*AsyncQueue_Push_Call[V]) Run ¶
func (_c *AsyncQueue_Push_Call[V]) Run(run func(ctx context.Context, data V)) *AsyncQueue_Push_Call[V]
func (*AsyncQueue_Push_Call[V]) RunAndReturn ¶
func (_c *AsyncQueue_Push_Call[V]) RunAndReturn(run func(ctx context.Context, data V) error) *AsyncQueue_Push_Call[V]
type Condition ¶
Condition is an autogenerated mock type for the Condition type
func NewCondition ¶
NewCondition creates a new instance of Condition. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Condition) EXPECT ¶
func (_m *Condition) EXPECT() *Condition_Expecter
type Condition_Expecter ¶
type Condition_Expecter struct {
// contains filtered or unexported fields
}
func (*Condition_Expecter) NotifyAll ¶
func (_e *Condition_Expecter) NotifyAll() *Condition_NotifyAll_Call
NotifyAll is a helper method to define mock.On call
func (*Condition_Expecter) NotifyOne ¶
func (_e *Condition_Expecter) NotifyOne() *Condition_NotifyOne_Call
NotifyOne is a helper method to define mock.On call
func (*Condition_Expecter) Wait ¶
func (_e *Condition_Expecter) Wait(ctx interface{}, wakeUp interface{}) *Condition_Wait_Call
Wait is a helper method to define mock.On call
- ctx context.Context
- wakeUp chan bool
type Condition_NotifyAll_Call ¶
Condition_NotifyAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NotifyAll'
func (*Condition_NotifyAll_Call) Return ¶
func (_c *Condition_NotifyAll_Call) Return(err error) *Condition_NotifyAll_Call
func (*Condition_NotifyAll_Call) Run ¶
func (_c *Condition_NotifyAll_Call) Run(run func()) *Condition_NotifyAll_Call
func (*Condition_NotifyAll_Call) RunAndReturn ¶
func (_c *Condition_NotifyAll_Call) RunAndReturn(run func() error) *Condition_NotifyAll_Call
type Condition_NotifyOne_Call ¶
Condition_NotifyOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NotifyOne'
func (*Condition_NotifyOne_Call) Return ¶
func (_c *Condition_NotifyOne_Call) Return(err error) *Condition_NotifyOne_Call
func (*Condition_NotifyOne_Call) Run ¶
func (_c *Condition_NotifyOne_Call) Run(run func()) *Condition_NotifyOne_Call
func (*Condition_NotifyOne_Call) RunAndReturn ¶
func (_c *Condition_NotifyOne_Call) RunAndReturn(run func() error) *Condition_NotifyOne_Call
type Condition_Wait_Call ¶
Condition_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'
func (*Condition_Wait_Call) Return ¶
func (_c *Condition_Wait_Call) Return(err error) *Condition_Wait_Call
func (*Condition_Wait_Call) Run ¶
func (_c *Condition_Wait_Call) Run(run func(ctx context.Context, wakeUp chan bool)) *Condition_Wait_Call
func (*Condition_Wait_Call) RunAndReturn ¶
func (_c *Condition_Wait_Call) RunAndReturn(run func(ctx context.Context, wakeUp chan bool) error) *Condition_Wait_Call
type HTTPRequestMetricHelper ¶
HTTPRequestMetricHelper is an autogenerated mock type for the HTTPRequestMetricHelper type
func NewHTTPRequestMetricHelper ¶
func NewHTTPRequestMetricHelper(t interface {
mock.TestingT
Cleanup(func())
}) *HTTPRequestMetricHelper
NewHTTPRequestMetricHelper creates a new instance of HTTPRequestMetricHelper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*HTTPRequestMetricHelper) EXPECT ¶
func (_m *HTTPRequestMetricHelper) EXPECT() *HTTPRequestMetricHelper_Expecter
func (*HTTPRequestMetricHelper) RecordRequest ¶
func (_mock *HTTPRequestMetricHelper) RecordRequest(method string, status int, latency time.Duration, respSize int64)
RecordRequest provides a mock function for the type HTTPRequestMetricHelper
type HTTPRequestMetricHelper_Expecter ¶
type HTTPRequestMetricHelper_Expecter struct {
// contains filtered or unexported fields
}
func (*HTTPRequestMetricHelper_Expecter) RecordRequest ¶
func (_e *HTTPRequestMetricHelper_Expecter) RecordRequest(method interface{}, status interface{}, latency interface{}, respSize interface{}) *HTTPRequestMetricHelper_RecordRequest_Call
RecordRequest is a helper method to define mock.On call
- method string
- status int
- latency time.Duration
- respSize int64
type HTTPRequestMetricHelper_RecordRequest_Call ¶
HTTPRequestMetricHelper_RecordRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecordRequest'
func (*HTTPRequestMetricHelper_RecordRequest_Call) Return ¶
func (_c *HTTPRequestMetricHelper_RecordRequest_Call) Return() *HTTPRequestMetricHelper_RecordRequest_Call
func (*HTTPRequestMetricHelper_RecordRequest_Call) Run ¶
func (_c *HTTPRequestMetricHelper_RecordRequest_Call) Run(run func(method string, status int, latency time.Duration, respSize int64)) *HTTPRequestMetricHelper_RecordRequest_Call
func (*HTTPRequestMetricHelper_RecordRequest_Call) RunAndReturn ¶
func (_c *HTTPRequestMetricHelper_RecordRequest_Call) RunAndReturn(run func(method string, status int, latency time.Duration, respSize int64)) *HTTPRequestMetricHelper_RecordRequest_Call
type IntervalTimer ¶
IntervalTimer is an autogenerated mock type for the IntervalTimer type
func NewIntervalTimer ¶
func NewIntervalTimer(t interface {
mock.TestingT
Cleanup(func())
}) *IntervalTimer
NewIntervalTimer creates a new instance of IntervalTimer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IntervalTimer) EXPECT ¶
func (_m *IntervalTimer) EXPECT() *IntervalTimer_Expecter
func (*IntervalTimer) Start ¶
func (_mock *IntervalTimer) Start(interval time.Duration, handler goutils.TimeoutHandler, oneShort bool) error
Start provides a mock function for the type IntervalTimer
func (*IntervalTimer) Stop ¶
func (_mock *IntervalTimer) Stop() error
Stop provides a mock function for the type IntervalTimer
type IntervalTimer_Expecter ¶
type IntervalTimer_Expecter struct {
// contains filtered or unexported fields
}
func (*IntervalTimer_Expecter) Start ¶
func (_e *IntervalTimer_Expecter) Start(interval interface{}, handler interface{}, oneShort interface{}) *IntervalTimer_Start_Call
Start is a helper method to define mock.On call
- interval time.Duration
- handler goutils.TimeoutHandler
- oneShort bool
func (*IntervalTimer_Expecter) Stop ¶
func (_e *IntervalTimer_Expecter) Stop() *IntervalTimer_Stop_Call
Stop is a helper method to define mock.On call
type IntervalTimer_Start_Call ¶
IntervalTimer_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*IntervalTimer_Start_Call) Return ¶
func (_c *IntervalTimer_Start_Call) Return(err error) *IntervalTimer_Start_Call
func (*IntervalTimer_Start_Call) Run ¶
func (_c *IntervalTimer_Start_Call) Run(run func(interval time.Duration, handler goutils.TimeoutHandler, oneShort bool)) *IntervalTimer_Start_Call
func (*IntervalTimer_Start_Call) RunAndReturn ¶
func (_c *IntervalTimer_Start_Call) RunAndReturn(run func(interval time.Duration, handler goutils.TimeoutHandler, oneShort bool) error) *IntervalTimer_Start_Call
type IntervalTimer_Stop_Call ¶
IntervalTimer_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*IntervalTimer_Stop_Call) Return ¶
func (_c *IntervalTimer_Stop_Call) Return(err error) *IntervalTimer_Stop_Call
func (*IntervalTimer_Stop_Call) Run ¶
func (_c *IntervalTimer_Stop_Call) Run(run func()) *IntervalTimer_Stop_Call
func (*IntervalTimer_Stop_Call) RunAndReturn ¶
func (_c *IntervalTimer_Stop_Call) RunAndReturn(run func() error) *IntervalTimer_Stop_Call
type MessageBus ¶
MessageBus is an autogenerated mock type for the MessageBus type
func NewMessageBus ¶
func NewMessageBus(t interface {
mock.TestingT
Cleanup(func())
}) *MessageBus
NewMessageBus creates a new instance of MessageBus. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MessageBus) CreateTopic ¶
func (_mock *MessageBus) CreateTopic(ctxt context.Context, topicName string, topicLogTags log.Fields) (goutils.MessageTopic, error)
CreateTopic provides a mock function for the type MessageBus
func (*MessageBus) DeleteTopic ¶
func (_mock *MessageBus) DeleteTopic(ctxt context.Context, topicName string) error
DeleteTopic provides a mock function for the type MessageBus
func (*MessageBus) EXPECT ¶
func (_m *MessageBus) EXPECT() *MessageBus_Expecter
func (*MessageBus) GetTopic ¶
func (_mock *MessageBus) GetTopic(ctxt context.Context, topicName string) (goutils.MessageTopic, error)
GetTopic provides a mock function for the type MessageBus
type MessageBus_CreateTopic_Call ¶
MessageBus_CreateTopic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateTopic'
func (*MessageBus_CreateTopic_Call) Return ¶
func (_c *MessageBus_CreateTopic_Call) Return(messageTopic goutils.MessageTopic, err error) *MessageBus_CreateTopic_Call
func (*MessageBus_CreateTopic_Call) Run ¶
func (_c *MessageBus_CreateTopic_Call) Run(run func(ctxt context.Context, topicName string, topicLogTags log.Fields)) *MessageBus_CreateTopic_Call
func (*MessageBus_CreateTopic_Call) RunAndReturn ¶
func (_c *MessageBus_CreateTopic_Call) RunAndReturn(run func(ctxt context.Context, topicName string, topicLogTags log.Fields) (goutils.MessageTopic, error)) *MessageBus_CreateTopic_Call
type MessageBus_DeleteTopic_Call ¶
MessageBus_DeleteTopic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTopic'
func (*MessageBus_DeleteTopic_Call) Return ¶
func (_c *MessageBus_DeleteTopic_Call) Return(err error) *MessageBus_DeleteTopic_Call
func (*MessageBus_DeleteTopic_Call) Run ¶
func (_c *MessageBus_DeleteTopic_Call) Run(run func(ctxt context.Context, topicName string)) *MessageBus_DeleteTopic_Call
func (*MessageBus_DeleteTopic_Call) RunAndReturn ¶
func (_c *MessageBus_DeleteTopic_Call) RunAndReturn(run func(ctxt context.Context, topicName string) error) *MessageBus_DeleteTopic_Call
type MessageBus_Expecter ¶
type MessageBus_Expecter struct {
// contains filtered or unexported fields
}
func (*MessageBus_Expecter) CreateTopic ¶
func (_e *MessageBus_Expecter) CreateTopic(ctxt interface{}, topicName interface{}, topicLogTags interface{}) *MessageBus_CreateTopic_Call
CreateTopic is a helper method to define mock.On call
- ctxt context.Context
- topicName string
- topicLogTags log.Fields
func (*MessageBus_Expecter) DeleteTopic ¶
func (_e *MessageBus_Expecter) DeleteTopic(ctxt interface{}, topicName interface{}) *MessageBus_DeleteTopic_Call
DeleteTopic is a helper method to define mock.On call
- ctxt context.Context
- topicName string
func (*MessageBus_Expecter) GetTopic ¶
func (_e *MessageBus_Expecter) GetTopic(ctxt interface{}, topicName interface{}) *MessageBus_GetTopic_Call
GetTopic is a helper method to define mock.On call
- ctxt context.Context
- topicName string
type MessageBus_GetTopic_Call ¶
MessageBus_GetTopic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTopic'
func (*MessageBus_GetTopic_Call) Return ¶
func (_c *MessageBus_GetTopic_Call) Return(messageTopic goutils.MessageTopic, err error) *MessageBus_GetTopic_Call
func (*MessageBus_GetTopic_Call) Run ¶
func (_c *MessageBus_GetTopic_Call) Run(run func(ctxt context.Context, topicName string)) *MessageBus_GetTopic_Call
func (*MessageBus_GetTopic_Call) RunAndReturn ¶
func (_c *MessageBus_GetTopic_Call) RunAndReturn(run func(ctxt context.Context, topicName string) (goutils.MessageTopic, error)) *MessageBus_GetTopic_Call
type MessageTopic ¶
MessageTopic is an autogenerated mock type for the MessageTopic type
func NewMessageTopic ¶
func NewMessageTopic(t interface {
mock.TestingT
Cleanup(func())
}) *MessageTopic
NewMessageTopic creates a new instance of MessageTopic. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MessageTopic) CreateSubscription ¶
func (_mock *MessageTopic) CreateSubscription(ctxt context.Context, subscriber string, bufferLen int) (chan interface{}, error)
CreateSubscription provides a mock function for the type MessageTopic
func (*MessageTopic) DeleteSubscription ¶
func (_mock *MessageTopic) DeleteSubscription(ctxt context.Context, subscriber string) error
DeleteSubscription provides a mock function for the type MessageTopic
func (*MessageTopic) EXPECT ¶
func (_m *MessageTopic) EXPECT() *MessageTopic_Expecter
type MessageTopic_CreateSubscription_Call ¶
MessageTopic_CreateSubscription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSubscription'
func (*MessageTopic_CreateSubscription_Call) Return ¶
func (_c *MessageTopic_CreateSubscription_Call) Return(ifaceValCh chan interface{}, err error) *MessageTopic_CreateSubscription_Call
func (*MessageTopic_CreateSubscription_Call) Run ¶
func (_c *MessageTopic_CreateSubscription_Call) Run(run func(ctxt context.Context, subscriber string, bufferLen int)) *MessageTopic_CreateSubscription_Call
func (*MessageTopic_CreateSubscription_Call) RunAndReturn ¶
func (_c *MessageTopic_CreateSubscription_Call) RunAndReturn(run func(ctxt context.Context, subscriber string, bufferLen int) (chan interface{}, error)) *MessageTopic_CreateSubscription_Call
type MessageTopic_DeleteSubscription_Call ¶
MessageTopic_DeleteSubscription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSubscription'
func (*MessageTopic_DeleteSubscription_Call) Return ¶
func (_c *MessageTopic_DeleteSubscription_Call) Return(err error) *MessageTopic_DeleteSubscription_Call
func (*MessageTopic_DeleteSubscription_Call) Run ¶
func (_c *MessageTopic_DeleteSubscription_Call) Run(run func(ctxt context.Context, subscriber string)) *MessageTopic_DeleteSubscription_Call
func (*MessageTopic_DeleteSubscription_Call) RunAndReturn ¶
func (_c *MessageTopic_DeleteSubscription_Call) RunAndReturn(run func(ctxt context.Context, subscriber string) error) *MessageTopic_DeleteSubscription_Call
type MessageTopic_Expecter ¶
type MessageTopic_Expecter struct {
// contains filtered or unexported fields
}
func (*MessageTopic_Expecter) CreateSubscription ¶
func (_e *MessageTopic_Expecter) CreateSubscription(ctxt interface{}, subscriber interface{}, bufferLen interface{}) *MessageTopic_CreateSubscription_Call
CreateSubscription is a helper method to define mock.On call
- ctxt context.Context
- subscriber string
- bufferLen int
func (*MessageTopic_Expecter) DeleteSubscription ¶
func (_e *MessageTopic_Expecter) DeleteSubscription(ctxt interface{}, subscriber interface{}) *MessageTopic_DeleteSubscription_Call
DeleteSubscription is a helper method to define mock.On call
- ctxt context.Context
- subscriber string
func (*MessageTopic_Expecter) Publish ¶
func (_e *MessageTopic_Expecter) Publish(ctxt interface{}, message interface{}, blockFor interface{}) *MessageTopic_Publish_Call
Publish is a helper method to define mock.On call
- ctxt context.Context
- message interface{}
- blockFor time.Duration
type MessageTopic_Publish_Call ¶
MessageTopic_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'
func (*MessageTopic_Publish_Call) Return ¶
func (_c *MessageTopic_Publish_Call) Return(err error) *MessageTopic_Publish_Call
func (*MessageTopic_Publish_Call) Run ¶
func (_c *MessageTopic_Publish_Call) Run(run func(ctxt context.Context, message interface{}, blockFor time.Duration)) *MessageTopic_Publish_Call
func (*MessageTopic_Publish_Call) RunAndReturn ¶
func (_c *MessageTopic_Publish_Call) RunAndReturn(run func(ctxt context.Context, message interface{}, blockFor time.Duration) error) *MessageTopic_Publish_Call
type MetricsCollector ¶
MetricsCollector is an autogenerated mock type for the MetricsCollector type
func NewMetricsCollector ¶
func NewMetricsCollector(t interface {
mock.TestingT
Cleanup(func())
}) *MetricsCollector
NewMetricsCollector creates a new instance of MetricsCollector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MetricsCollector) EXPECT ¶
func (_m *MetricsCollector) EXPECT() *MetricsCollector_Expecter
func (*MetricsCollector) ExposeCollectionEndpoint ¶
func (_mock *MetricsCollector) ExposeCollectionEndpoint(router *mux.Router, metricsPath string, maxSupportedRequest int)
ExposeCollectionEndpoint provides a mock function for the type MetricsCollector
func (*MetricsCollector) InstallApplicationMetrics ¶
func (_mock *MetricsCollector) InstallApplicationMetrics()
InstallApplicationMetrics provides a mock function for the type MetricsCollector
func (*MetricsCollector) InstallCustomCounterVecMetrics ¶
func (_mock *MetricsCollector) InstallCustomCounterVecMetrics(ctxt context.Context, metricsName string, metricsHelpMessage string, metricsLabels []string) (*prometheus.CounterVec, error)
InstallCustomCounterVecMetrics provides a mock function for the type MetricsCollector
func (*MetricsCollector) InstallCustomGaugeVecMetrics ¶
func (_mock *MetricsCollector) InstallCustomGaugeVecMetrics(ctxt context.Context, metricsName string, metricsHelpMessage string, metricsLabels []string) (*prometheus.GaugeVec, error)
InstallCustomGaugeVecMetrics provides a mock function for the type MetricsCollector
func (*MetricsCollector) InstallHTTPMetrics ¶
func (_mock *MetricsCollector) InstallHTTPMetrics() goutils.HTTPRequestMetricHelper
InstallHTTPMetrics provides a mock function for the type MetricsCollector
func (*MetricsCollector) InstallPubSubMetrics ¶
func (_mock *MetricsCollector) InstallPubSubMetrics() goutils.PubSubMetricHelper
InstallPubSubMetrics provides a mock function for the type MetricsCollector
func (*MetricsCollector) InstallTaskProcessorMetrics ¶
func (_mock *MetricsCollector) InstallTaskProcessorMetrics() goutils.TaskProcessorMetricHelper
InstallTaskProcessorMetrics provides a mock function for the type MetricsCollector
type MetricsCollector_Expecter ¶
type MetricsCollector_Expecter struct {
// contains filtered or unexported fields
}
func (*MetricsCollector_Expecter) ExposeCollectionEndpoint ¶
func (_e *MetricsCollector_Expecter) ExposeCollectionEndpoint(router interface{}, metricsPath interface{}, maxSupportedRequest interface{}) *MetricsCollector_ExposeCollectionEndpoint_Call
ExposeCollectionEndpoint is a helper method to define mock.On call
- router *mux.Router
- metricsPath string
- maxSupportedRequest int
func (*MetricsCollector_Expecter) InstallApplicationMetrics ¶
func (_e *MetricsCollector_Expecter) InstallApplicationMetrics() *MetricsCollector_InstallApplicationMetrics_Call
InstallApplicationMetrics is a helper method to define mock.On call
func (*MetricsCollector_Expecter) InstallCustomCounterVecMetrics ¶
func (_e *MetricsCollector_Expecter) InstallCustomCounterVecMetrics(ctxt interface{}, metricsName interface{}, metricsHelpMessage interface{}, metricsLabels interface{}) *MetricsCollector_InstallCustomCounterVecMetrics_Call
InstallCustomCounterVecMetrics is a helper method to define mock.On call
- ctxt context.Context
- metricsName string
- metricsHelpMessage string
- metricsLabels []string
func (*MetricsCollector_Expecter) InstallCustomGaugeVecMetrics ¶
func (_e *MetricsCollector_Expecter) InstallCustomGaugeVecMetrics(ctxt interface{}, metricsName interface{}, metricsHelpMessage interface{}, metricsLabels interface{}) *MetricsCollector_InstallCustomGaugeVecMetrics_Call
InstallCustomGaugeVecMetrics is a helper method to define mock.On call
- ctxt context.Context
- metricsName string
- metricsHelpMessage string
- metricsLabels []string
func (*MetricsCollector_Expecter) InstallHTTPMetrics ¶
func (_e *MetricsCollector_Expecter) InstallHTTPMetrics() *MetricsCollector_InstallHTTPMetrics_Call
InstallHTTPMetrics is a helper method to define mock.On call
func (*MetricsCollector_Expecter) InstallPubSubMetrics ¶
func (_e *MetricsCollector_Expecter) InstallPubSubMetrics() *MetricsCollector_InstallPubSubMetrics_Call
InstallPubSubMetrics is a helper method to define mock.On call
func (*MetricsCollector_Expecter) InstallTaskProcessorMetrics ¶
func (_e *MetricsCollector_Expecter) InstallTaskProcessorMetrics() *MetricsCollector_InstallTaskProcessorMetrics_Call
InstallTaskProcessorMetrics is a helper method to define mock.On call
type MetricsCollector_ExposeCollectionEndpoint_Call ¶
MetricsCollector_ExposeCollectionEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExposeCollectionEndpoint'
func (*MetricsCollector_ExposeCollectionEndpoint_Call) Run ¶
func (_c *MetricsCollector_ExposeCollectionEndpoint_Call) Run(run func(router *mux.Router, metricsPath string, maxSupportedRequest int)) *MetricsCollector_ExposeCollectionEndpoint_Call
func (*MetricsCollector_ExposeCollectionEndpoint_Call) RunAndReturn ¶
func (_c *MetricsCollector_ExposeCollectionEndpoint_Call) RunAndReturn(run func(router *mux.Router, metricsPath string, maxSupportedRequest int)) *MetricsCollector_ExposeCollectionEndpoint_Call
type MetricsCollector_InstallApplicationMetrics_Call ¶
MetricsCollector_InstallApplicationMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InstallApplicationMetrics'
func (*MetricsCollector_InstallApplicationMetrics_Call) Run ¶
func (_c *MetricsCollector_InstallApplicationMetrics_Call) Run(run func()) *MetricsCollector_InstallApplicationMetrics_Call
func (*MetricsCollector_InstallApplicationMetrics_Call) RunAndReturn ¶
func (_c *MetricsCollector_InstallApplicationMetrics_Call) RunAndReturn(run func()) *MetricsCollector_InstallApplicationMetrics_Call
type MetricsCollector_InstallCustomCounterVecMetrics_Call ¶
MetricsCollector_InstallCustomCounterVecMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InstallCustomCounterVecMetrics'
func (*MetricsCollector_InstallCustomCounterVecMetrics_Call) Return ¶
func (_c *MetricsCollector_InstallCustomCounterVecMetrics_Call) Return(counterVec *prometheus.CounterVec, err error) *MetricsCollector_InstallCustomCounterVecMetrics_Call
func (*MetricsCollector_InstallCustomCounterVecMetrics_Call) Run ¶
func (_c *MetricsCollector_InstallCustomCounterVecMetrics_Call) Run(run func(ctxt context.Context, metricsName string, metricsHelpMessage string, metricsLabels []string)) *MetricsCollector_InstallCustomCounterVecMetrics_Call
func (*MetricsCollector_InstallCustomCounterVecMetrics_Call) RunAndReturn ¶
func (_c *MetricsCollector_InstallCustomCounterVecMetrics_Call) RunAndReturn(run func(ctxt context.Context, metricsName string, metricsHelpMessage string, metricsLabels []string) (*prometheus.CounterVec, error)) *MetricsCollector_InstallCustomCounterVecMetrics_Call
type MetricsCollector_InstallCustomGaugeVecMetrics_Call ¶
MetricsCollector_InstallCustomGaugeVecMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InstallCustomGaugeVecMetrics'
func (*MetricsCollector_InstallCustomGaugeVecMetrics_Call) Return ¶
func (_c *MetricsCollector_InstallCustomGaugeVecMetrics_Call) Return(gaugeVec *prometheus.GaugeVec, err error) *MetricsCollector_InstallCustomGaugeVecMetrics_Call
func (*MetricsCollector_InstallCustomGaugeVecMetrics_Call) Run ¶
func (_c *MetricsCollector_InstallCustomGaugeVecMetrics_Call) Run(run func(ctxt context.Context, metricsName string, metricsHelpMessage string, metricsLabels []string)) *MetricsCollector_InstallCustomGaugeVecMetrics_Call
func (*MetricsCollector_InstallCustomGaugeVecMetrics_Call) RunAndReturn ¶
func (_c *MetricsCollector_InstallCustomGaugeVecMetrics_Call) RunAndReturn(run func(ctxt context.Context, metricsName string, metricsHelpMessage string, metricsLabels []string) (*prometheus.GaugeVec, error)) *MetricsCollector_InstallCustomGaugeVecMetrics_Call
type MetricsCollector_InstallHTTPMetrics_Call ¶
MetricsCollector_InstallHTTPMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InstallHTTPMetrics'
func (*MetricsCollector_InstallHTTPMetrics_Call) Return ¶
func (_c *MetricsCollector_InstallHTTPMetrics_Call) Return(hTTPRequestMetricHelper goutils.HTTPRequestMetricHelper) *MetricsCollector_InstallHTTPMetrics_Call
func (*MetricsCollector_InstallHTTPMetrics_Call) Run ¶
func (_c *MetricsCollector_InstallHTTPMetrics_Call) Run(run func()) *MetricsCollector_InstallHTTPMetrics_Call
func (*MetricsCollector_InstallHTTPMetrics_Call) RunAndReturn ¶
func (_c *MetricsCollector_InstallHTTPMetrics_Call) RunAndReturn(run func() goutils.HTTPRequestMetricHelper) *MetricsCollector_InstallHTTPMetrics_Call
type MetricsCollector_InstallPubSubMetrics_Call ¶
MetricsCollector_InstallPubSubMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InstallPubSubMetrics'
func (*MetricsCollector_InstallPubSubMetrics_Call) Return ¶
func (_c *MetricsCollector_InstallPubSubMetrics_Call) Return(pubSubMetricHelper goutils.PubSubMetricHelper) *MetricsCollector_InstallPubSubMetrics_Call
func (*MetricsCollector_InstallPubSubMetrics_Call) Run ¶
func (_c *MetricsCollector_InstallPubSubMetrics_Call) Run(run func()) *MetricsCollector_InstallPubSubMetrics_Call
func (*MetricsCollector_InstallPubSubMetrics_Call) RunAndReturn ¶
func (_c *MetricsCollector_InstallPubSubMetrics_Call) RunAndReturn(run func() goutils.PubSubMetricHelper) *MetricsCollector_InstallPubSubMetrics_Call
type MetricsCollector_InstallTaskProcessorMetrics_Call ¶
MetricsCollector_InstallTaskProcessorMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InstallTaskProcessorMetrics'
func (*MetricsCollector_InstallTaskProcessorMetrics_Call) Return ¶
func (_c *MetricsCollector_InstallTaskProcessorMetrics_Call) Return(taskProcessorMetricHelper goutils.TaskProcessorMetricHelper) *MetricsCollector_InstallTaskProcessorMetrics_Call
func (*MetricsCollector_InstallTaskProcessorMetrics_Call) Run ¶
func (_c *MetricsCollector_InstallTaskProcessorMetrics_Call) Run(run func()) *MetricsCollector_InstallTaskProcessorMetrics_Call
func (*MetricsCollector_InstallTaskProcessorMetrics_Call) RunAndReturn ¶
func (_c *MetricsCollector_InstallTaskProcessorMetrics_Call) RunAndReturn(run func() goutils.TaskProcessorMetricHelper) *MetricsCollector_InstallTaskProcessorMetrics_Call
type OAuthTokenManager ¶
OAuthTokenManager is an autogenerated mock type for the OAuthTokenManager type
func NewOAuthTokenManager ¶
func NewOAuthTokenManager(t interface {
mock.TestingT
Cleanup(func())
}) *OAuthTokenManager
NewOAuthTokenManager creates a new instance of OAuthTokenManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OAuthTokenManager) EXPECT ¶
func (_m *OAuthTokenManager) EXPECT() *OAuthTokenManager_Expecter
type OAuthTokenManager_Expecter ¶
type OAuthTokenManager_Expecter struct {
// contains filtered or unexported fields
}
func (*OAuthTokenManager_Expecter) GetToken ¶
func (_e *OAuthTokenManager_Expecter) GetToken(ctxt interface{}, timestamp interface{}) *OAuthTokenManager_GetToken_Call
GetToken is a helper method to define mock.On call
- ctxt context.Context
- timestamp time.Time
func (*OAuthTokenManager_Expecter) Stop ¶
func (_e *OAuthTokenManager_Expecter) Stop(ctxt interface{}) *OAuthTokenManager_Stop_Call
Stop is a helper method to define mock.On call
- ctxt context.Context
type OAuthTokenManager_GetToken_Call ¶
OAuthTokenManager_GetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetToken'
func (*OAuthTokenManager_GetToken_Call) Return ¶
func (_c *OAuthTokenManager_GetToken_Call) Return(s string, err error) *OAuthTokenManager_GetToken_Call
func (*OAuthTokenManager_GetToken_Call) Run ¶
func (_c *OAuthTokenManager_GetToken_Call) Run(run func(ctxt context.Context, timestamp time.Time)) *OAuthTokenManager_GetToken_Call
func (*OAuthTokenManager_GetToken_Call) RunAndReturn ¶
func (_c *OAuthTokenManager_GetToken_Call) RunAndReturn(run func(ctxt context.Context, timestamp time.Time) (string, error)) *OAuthTokenManager_GetToken_Call
type OAuthTokenManager_Stop_Call ¶
OAuthTokenManager_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*OAuthTokenManager_Stop_Call) Return ¶
func (_c *OAuthTokenManager_Stop_Call) Return(err error) *OAuthTokenManager_Stop_Call
func (*OAuthTokenManager_Stop_Call) Run ¶
func (_c *OAuthTokenManager_Stop_Call) Run(run func(ctxt context.Context)) *OAuthTokenManager_Stop_Call
func (*OAuthTokenManager_Stop_Call) RunAndReturn ¶
func (_c *OAuthTokenManager_Stop_Call) RunAndReturn(run func(ctxt context.Context) error) *OAuthTokenManager_Stop_Call
type OpenIDProviderClient ¶
OpenIDProviderClient is an autogenerated mock type for the OpenIDProviderClient type
func NewOpenIDProviderClient ¶
func NewOpenIDProviderClient(t interface {
mock.TestingT
Cleanup(func())
}) *OpenIDProviderClient
NewOpenIDProviderClient creates a new instance of OpenIDProviderClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OpenIDProviderClient) AssociatedPublicKey ¶
func (_mock *OpenIDProviderClient) AssociatedPublicKey(token *jwt.Token) (interface{}, error)
AssociatedPublicKey provides a mock function for the type OpenIDProviderClient
func (*OpenIDProviderClient) CanIntrospect ¶
func (_mock *OpenIDProviderClient) CanIntrospect() bool
CanIntrospect provides a mock function for the type OpenIDProviderClient
func (*OpenIDProviderClient) EXPECT ¶
func (_m *OpenIDProviderClient) EXPECT() *OpenIDProviderClient_Expecter
func (*OpenIDProviderClient) IntrospectToken ¶
func (_mock *OpenIDProviderClient) IntrospectToken(ctxt context.Context, token string) (bool, error)
IntrospectToken provides a mock function for the type OpenIDProviderClient
type OpenIDProviderClient_AssociatedPublicKey_Call ¶
OpenIDProviderClient_AssociatedPublicKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssociatedPublicKey'
func (*OpenIDProviderClient_AssociatedPublicKey_Call) Return ¶
func (_c *OpenIDProviderClient_AssociatedPublicKey_Call) Return(ifaceVal interface{}, err error) *OpenIDProviderClient_AssociatedPublicKey_Call
func (*OpenIDProviderClient_AssociatedPublicKey_Call) Run ¶
func (_c *OpenIDProviderClient_AssociatedPublicKey_Call) Run(run func(token *jwt.Token)) *OpenIDProviderClient_AssociatedPublicKey_Call
func (*OpenIDProviderClient_AssociatedPublicKey_Call) RunAndReturn ¶
func (_c *OpenIDProviderClient_AssociatedPublicKey_Call) RunAndReturn(run func(token *jwt.Token) (interface{}, error)) *OpenIDProviderClient_AssociatedPublicKey_Call
type OpenIDProviderClient_CanIntrospect_Call ¶
OpenIDProviderClient_CanIntrospect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanIntrospect'
func (*OpenIDProviderClient_CanIntrospect_Call) Return ¶
func (_c *OpenIDProviderClient_CanIntrospect_Call) Return(b bool) *OpenIDProviderClient_CanIntrospect_Call
func (*OpenIDProviderClient_CanIntrospect_Call) Run ¶
func (_c *OpenIDProviderClient_CanIntrospect_Call) Run(run func()) *OpenIDProviderClient_CanIntrospect_Call
func (*OpenIDProviderClient_CanIntrospect_Call) RunAndReturn ¶
func (_c *OpenIDProviderClient_CanIntrospect_Call) RunAndReturn(run func() bool) *OpenIDProviderClient_CanIntrospect_Call
type OpenIDProviderClient_Expecter ¶
type OpenIDProviderClient_Expecter struct {
// contains filtered or unexported fields
}
func (*OpenIDProviderClient_Expecter) AssociatedPublicKey ¶
func (_e *OpenIDProviderClient_Expecter) AssociatedPublicKey(token interface{}) *OpenIDProviderClient_AssociatedPublicKey_Call
AssociatedPublicKey is a helper method to define mock.On call
- token *jwt.Token
func (*OpenIDProviderClient_Expecter) CanIntrospect ¶
func (_e *OpenIDProviderClient_Expecter) CanIntrospect() *OpenIDProviderClient_CanIntrospect_Call
CanIntrospect is a helper method to define mock.On call
func (*OpenIDProviderClient_Expecter) IntrospectToken ¶
func (_e *OpenIDProviderClient_Expecter) IntrospectToken(ctxt interface{}, token interface{}) *OpenIDProviderClient_IntrospectToken_Call
IntrospectToken is a helper method to define mock.On call
- ctxt context.Context
- token string
func (*OpenIDProviderClient_Expecter) ParseJWT ¶
func (_e *OpenIDProviderClient_Expecter) ParseJWT(raw interface{}, claimStore interface{}) *OpenIDProviderClient_ParseJWT_Call
ParseJWT is a helper method to define mock.On call
- raw string
- claimStore jwt.Claims
type OpenIDProviderClient_IntrospectToken_Call ¶
OpenIDProviderClient_IntrospectToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IntrospectToken'
func (*OpenIDProviderClient_IntrospectToken_Call) Return ¶
func (_c *OpenIDProviderClient_IntrospectToken_Call) Return(b bool, err error) *OpenIDProviderClient_IntrospectToken_Call
func (*OpenIDProviderClient_IntrospectToken_Call) Run ¶
func (_c *OpenIDProviderClient_IntrospectToken_Call) Run(run func(ctxt context.Context, token string)) *OpenIDProviderClient_IntrospectToken_Call
func (*OpenIDProviderClient_IntrospectToken_Call) RunAndReturn ¶
func (_c *OpenIDProviderClient_IntrospectToken_Call) RunAndReturn(run func(ctxt context.Context, token string) (bool, error)) *OpenIDProviderClient_IntrospectToken_Call
type OpenIDProviderClient_ParseJWT_Call ¶
OpenIDProviderClient_ParseJWT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseJWT'
func (*OpenIDProviderClient_ParseJWT_Call) Return ¶
func (_c *OpenIDProviderClient_ParseJWT_Call) Return(token *jwt.Token, err error) *OpenIDProviderClient_ParseJWT_Call
func (*OpenIDProviderClient_ParseJWT_Call) Run ¶
func (_c *OpenIDProviderClient_ParseJWT_Call) Run(run func(raw string, claimStore jwt.Claims)) *OpenIDProviderClient_ParseJWT_Call
func (*OpenIDProviderClient_ParseJWT_Call) RunAndReturn ¶
func (_c *OpenIDProviderClient_ParseJWT_Call) RunAndReturn(run func(raw string, claimStore jwt.Claims) (*jwt.Token, error)) *OpenIDProviderClient_ParseJWT_Call
type PriorityQueueEntry ¶
PriorityQueueEntry is an autogenerated mock type for the PriorityQueueEntry type
func NewPriorityQueueEntry ¶
func NewPriorityQueueEntry(t interface {
mock.TestingT
Cleanup(func())
}) *PriorityQueueEntry
NewPriorityQueueEntry creates a new instance of PriorityQueueEntry. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PriorityQueueEntry) EXPECT ¶
func (_m *PriorityQueueEntry) EXPECT() *PriorityQueueEntry_Expecter
func (*PriorityQueueEntry) HigherPriorityThan ¶
func (_mock *PriorityQueueEntry) HigherPriorityThan(right goutils.PriorityQueueEntry) bool
HigherPriorityThan provides a mock function for the type PriorityQueueEntry
type PriorityQueueEntry_Expecter ¶
type PriorityQueueEntry_Expecter struct {
// contains filtered or unexported fields
}
func (*PriorityQueueEntry_Expecter) HigherPriorityThan ¶
func (_e *PriorityQueueEntry_Expecter) HigherPriorityThan(right interface{}) *PriorityQueueEntry_HigherPriorityThan_Call
HigherPriorityThan is a helper method to define mock.On call
- right goutils.PriorityQueueEntry
type PriorityQueueEntry_HigherPriorityThan_Call ¶
PriorityQueueEntry_HigherPriorityThan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HigherPriorityThan'
func (*PriorityQueueEntry_HigherPriorityThan_Call) Return ¶
func (_c *PriorityQueueEntry_HigherPriorityThan_Call) Return(b bool) *PriorityQueueEntry_HigherPriorityThan_Call
func (*PriorityQueueEntry_HigherPriorityThan_Call) Run ¶
func (_c *PriorityQueueEntry_HigherPriorityThan_Call) Run(run func(right goutils.PriorityQueueEntry)) *PriorityQueueEntry_HigherPriorityThan_Call
func (*PriorityQueueEntry_HigherPriorityThan_Call) RunAndReturn ¶
func (_c *PriorityQueueEntry_HigherPriorityThan_Call) RunAndReturn(run func(right goutils.PriorityQueueEntry) bool) *PriorityQueueEntry_HigherPriorityThan_Call
type PubSubClient ¶
PubSubClient is an autogenerated mock type for the PubSubClient type
func NewPubSubClient ¶
func NewPubSubClient(t interface {
mock.TestingT
Cleanup(func())
}) *PubSubClient
NewPubSubClient creates a new instance of PubSubClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PubSubClient) Close ¶
func (_mock *PubSubClient) Close(ctxt context.Context) error
Close provides a mock function for the type PubSubClient
func (*PubSubClient) CreateSubscription ¶
func (_mock *PubSubClient) CreateSubscription(ctxt context.Context, targetTopic string, subscription string, config pubsub.SubscriptionConfig) error
CreateSubscription provides a mock function for the type PubSubClient
func (*PubSubClient) CreateTopic ¶
func (_mock *PubSubClient) CreateTopic(ctxt context.Context, topic string, config *pubsub.TopicConfig) error
CreateTopic provides a mock function for the type PubSubClient
func (*PubSubClient) DeleteSubscription ¶
func (_mock *PubSubClient) DeleteSubscription(ctxt context.Context, subscription string) error
DeleteSubscription provides a mock function for the type PubSubClient
func (*PubSubClient) DeleteTopic ¶
func (_mock *PubSubClient) DeleteTopic(ctxt context.Context, topic string) error
DeleteTopic provides a mock function for the type PubSubClient
func (*PubSubClient) EXPECT ¶
func (_m *PubSubClient) EXPECT() *PubSubClient_Expecter
func (*PubSubClient) GetSubscription ¶
func (_mock *PubSubClient) GetSubscription(ctxt context.Context, subscription string) (pubsub.SubscriptionConfig, error)
GetSubscription provides a mock function for the type PubSubClient
func (*PubSubClient) GetTopic ¶
func (_mock *PubSubClient) GetTopic(ctxt context.Context, topic string) (pubsub.TopicConfig, error)
GetTopic provides a mock function for the type PubSubClient
func (*PubSubClient) Publish ¶
func (_mock *PubSubClient) Publish(ctxt context.Context, topic string, message []byte, metadata map[string]string, blocking bool) (*pubsub.PublishResult, error)
Publish provides a mock function for the type PubSubClient
func (*PubSubClient) Subscribe ¶
func (_mock *PubSubClient) Subscribe(ctxt context.Context, subscription string, handler goutils.PubSubMessageHandler) error
Subscribe provides a mock function for the type PubSubClient
func (*PubSubClient) UpdateLocalSubscriptionCache ¶
func (_mock *PubSubClient) UpdateLocalSubscriptionCache(ctxt context.Context) error
UpdateLocalSubscriptionCache provides a mock function for the type PubSubClient
func (*PubSubClient) UpdateLocalTopicCache ¶
func (_mock *PubSubClient) UpdateLocalTopicCache(ctxt context.Context) error
UpdateLocalTopicCache provides a mock function for the type PubSubClient
func (*PubSubClient) UpdateSubscription ¶
func (_mock *PubSubClient) UpdateSubscription(ctxt context.Context, subscription string, newConfig pubsub.SubscriptionConfigToUpdate) error
UpdateSubscription provides a mock function for the type PubSubClient
func (*PubSubClient) UpdateTopic ¶
func (_mock *PubSubClient) UpdateTopic(ctxt context.Context, topic string, newConfig pubsub.TopicConfigToUpdate) error
UpdateTopic provides a mock function for the type PubSubClient
type PubSubClient_Close_Call ¶
PubSubClient_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*PubSubClient_Close_Call) Return ¶
func (_c *PubSubClient_Close_Call) Return(err error) *PubSubClient_Close_Call
func (*PubSubClient_Close_Call) Run ¶
func (_c *PubSubClient_Close_Call) Run(run func(ctxt context.Context)) *PubSubClient_Close_Call
func (*PubSubClient_Close_Call) RunAndReturn ¶
func (_c *PubSubClient_Close_Call) RunAndReturn(run func(ctxt context.Context) error) *PubSubClient_Close_Call
type PubSubClient_CreateSubscription_Call ¶
PubSubClient_CreateSubscription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSubscription'
func (*PubSubClient_CreateSubscription_Call) Return ¶
func (_c *PubSubClient_CreateSubscription_Call) Return(err error) *PubSubClient_CreateSubscription_Call
func (*PubSubClient_CreateSubscription_Call) Run ¶
func (_c *PubSubClient_CreateSubscription_Call) Run(run func(ctxt context.Context, targetTopic string, subscription string, config pubsub.SubscriptionConfig)) *PubSubClient_CreateSubscription_Call
func (*PubSubClient_CreateSubscription_Call) RunAndReturn ¶
func (_c *PubSubClient_CreateSubscription_Call) RunAndReturn(run func(ctxt context.Context, targetTopic string, subscription string, config pubsub.SubscriptionConfig) error) *PubSubClient_CreateSubscription_Call
type PubSubClient_CreateTopic_Call ¶
PubSubClient_CreateTopic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateTopic'
func (*PubSubClient_CreateTopic_Call) Return ¶
func (_c *PubSubClient_CreateTopic_Call) Return(err error) *PubSubClient_CreateTopic_Call
func (*PubSubClient_CreateTopic_Call) Run ¶
func (_c *PubSubClient_CreateTopic_Call) Run(run func(ctxt context.Context, topic string, config *pubsub.TopicConfig)) *PubSubClient_CreateTopic_Call
func (*PubSubClient_CreateTopic_Call) RunAndReturn ¶
func (_c *PubSubClient_CreateTopic_Call) RunAndReturn(run func(ctxt context.Context, topic string, config *pubsub.TopicConfig) error) *PubSubClient_CreateTopic_Call
type PubSubClient_DeleteSubscription_Call ¶
PubSubClient_DeleteSubscription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSubscription'
func (*PubSubClient_DeleteSubscription_Call) Return ¶
func (_c *PubSubClient_DeleteSubscription_Call) Return(err error) *PubSubClient_DeleteSubscription_Call
func (*PubSubClient_DeleteSubscription_Call) Run ¶
func (_c *PubSubClient_DeleteSubscription_Call) Run(run func(ctxt context.Context, subscription string)) *PubSubClient_DeleteSubscription_Call
func (*PubSubClient_DeleteSubscription_Call) RunAndReturn ¶
func (_c *PubSubClient_DeleteSubscription_Call) RunAndReturn(run func(ctxt context.Context, subscription string) error) *PubSubClient_DeleteSubscription_Call
type PubSubClient_DeleteTopic_Call ¶
PubSubClient_DeleteTopic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTopic'
func (*PubSubClient_DeleteTopic_Call) Return ¶
func (_c *PubSubClient_DeleteTopic_Call) Return(err error) *PubSubClient_DeleteTopic_Call
func (*PubSubClient_DeleteTopic_Call) Run ¶
func (_c *PubSubClient_DeleteTopic_Call) Run(run func(ctxt context.Context, topic string)) *PubSubClient_DeleteTopic_Call
func (*PubSubClient_DeleteTopic_Call) RunAndReturn ¶
func (_c *PubSubClient_DeleteTopic_Call) RunAndReturn(run func(ctxt context.Context, topic string) error) *PubSubClient_DeleteTopic_Call
type PubSubClient_Expecter ¶
type PubSubClient_Expecter struct {
// contains filtered or unexported fields
}
func (*PubSubClient_Expecter) Close ¶
func (_e *PubSubClient_Expecter) Close(ctxt interface{}) *PubSubClient_Close_Call
Close is a helper method to define mock.On call
- ctxt context.Context
func (*PubSubClient_Expecter) CreateSubscription ¶
func (_e *PubSubClient_Expecter) CreateSubscription(ctxt interface{}, targetTopic interface{}, subscription interface{}, config interface{}) *PubSubClient_CreateSubscription_Call
CreateSubscription is a helper method to define mock.On call
- ctxt context.Context
- targetTopic string
- subscription string
- config pubsub.SubscriptionConfig
func (*PubSubClient_Expecter) CreateTopic ¶
func (_e *PubSubClient_Expecter) CreateTopic(ctxt interface{}, topic interface{}, config interface{}) *PubSubClient_CreateTopic_Call
CreateTopic is a helper method to define mock.On call
- ctxt context.Context
- topic string
- config *pubsub.TopicConfig
func (*PubSubClient_Expecter) DeleteSubscription ¶
func (_e *PubSubClient_Expecter) DeleteSubscription(ctxt interface{}, subscription interface{}) *PubSubClient_DeleteSubscription_Call
DeleteSubscription is a helper method to define mock.On call
- ctxt context.Context
- subscription string
func (*PubSubClient_Expecter) DeleteTopic ¶
func (_e *PubSubClient_Expecter) DeleteTopic(ctxt interface{}, topic interface{}) *PubSubClient_DeleteTopic_Call
DeleteTopic is a helper method to define mock.On call
- ctxt context.Context
- topic string
func (*PubSubClient_Expecter) GetSubscription ¶
func (_e *PubSubClient_Expecter) GetSubscription(ctxt interface{}, subscription interface{}) *PubSubClient_GetSubscription_Call
GetSubscription is a helper method to define mock.On call
- ctxt context.Context
- subscription string
func (*PubSubClient_Expecter) GetTopic ¶
func (_e *PubSubClient_Expecter) GetTopic(ctxt interface{}, topic interface{}) *PubSubClient_GetTopic_Call
GetTopic is a helper method to define mock.On call
- ctxt context.Context
- topic string
func (*PubSubClient_Expecter) Publish ¶
func (_e *PubSubClient_Expecter) Publish(ctxt interface{}, topic interface{}, message interface{}, metadata interface{}, blocking interface{}) *PubSubClient_Publish_Call
Publish is a helper method to define mock.On call
- ctxt context.Context
- topic string
- message []byte
- metadata map[string]string
- blocking bool
func (*PubSubClient_Expecter) Subscribe ¶
func (_e *PubSubClient_Expecter) Subscribe(ctxt interface{}, subscription interface{}, handler interface{}) *PubSubClient_Subscribe_Call
Subscribe is a helper method to define mock.On call
- ctxt context.Context
- subscription string
- handler goutils.PubSubMessageHandler
func (*PubSubClient_Expecter) UpdateLocalSubscriptionCache ¶
func (_e *PubSubClient_Expecter) UpdateLocalSubscriptionCache(ctxt interface{}) *PubSubClient_UpdateLocalSubscriptionCache_Call
UpdateLocalSubscriptionCache is a helper method to define mock.On call
- ctxt context.Context
func (*PubSubClient_Expecter) UpdateLocalTopicCache ¶
func (_e *PubSubClient_Expecter) UpdateLocalTopicCache(ctxt interface{}) *PubSubClient_UpdateLocalTopicCache_Call
UpdateLocalTopicCache is a helper method to define mock.On call
- ctxt context.Context
func (*PubSubClient_Expecter) UpdateSubscription ¶
func (_e *PubSubClient_Expecter) UpdateSubscription(ctxt interface{}, subscription interface{}, newConfig interface{}) *PubSubClient_UpdateSubscription_Call
UpdateSubscription is a helper method to define mock.On call
- ctxt context.Context
- subscription string
- newConfig pubsub.SubscriptionConfigToUpdate
func (*PubSubClient_Expecter) UpdateTopic ¶
func (_e *PubSubClient_Expecter) UpdateTopic(ctxt interface{}, topic interface{}, newConfig interface{}) *PubSubClient_UpdateTopic_Call
UpdateTopic is a helper method to define mock.On call
- ctxt context.Context
- topic string
- newConfig pubsub.TopicConfigToUpdate
type PubSubClient_GetSubscription_Call ¶
PubSubClient_GetSubscription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubscription'
func (*PubSubClient_GetSubscription_Call) Return ¶
func (_c *PubSubClient_GetSubscription_Call) Return(subscriptionConfig pubsub.SubscriptionConfig, err error) *PubSubClient_GetSubscription_Call
func (*PubSubClient_GetSubscription_Call) Run ¶
func (_c *PubSubClient_GetSubscription_Call) Run(run func(ctxt context.Context, subscription string)) *PubSubClient_GetSubscription_Call
func (*PubSubClient_GetSubscription_Call) RunAndReturn ¶
func (_c *PubSubClient_GetSubscription_Call) RunAndReturn(run func(ctxt context.Context, subscription string) (pubsub.SubscriptionConfig, error)) *PubSubClient_GetSubscription_Call
type PubSubClient_GetTopic_Call ¶
PubSubClient_GetTopic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTopic'
func (*PubSubClient_GetTopic_Call) Return ¶
func (_c *PubSubClient_GetTopic_Call) Return(topicConfig pubsub.TopicConfig, err error) *PubSubClient_GetTopic_Call
func (*PubSubClient_GetTopic_Call) Run ¶
func (_c *PubSubClient_GetTopic_Call) Run(run func(ctxt context.Context, topic string)) *PubSubClient_GetTopic_Call
func (*PubSubClient_GetTopic_Call) RunAndReturn ¶
func (_c *PubSubClient_GetTopic_Call) RunAndReturn(run func(ctxt context.Context, topic string) (pubsub.TopicConfig, error)) *PubSubClient_GetTopic_Call
type PubSubClient_Publish_Call ¶
PubSubClient_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'
func (*PubSubClient_Publish_Call) Return ¶
func (_c *PubSubClient_Publish_Call) Return(v *pubsub.PublishResult, err error) *PubSubClient_Publish_Call
func (*PubSubClient_Publish_Call) Run ¶
func (_c *PubSubClient_Publish_Call) Run(run func(ctxt context.Context, topic string, message []byte, metadata map[string]string, blocking bool)) *PubSubClient_Publish_Call
func (*PubSubClient_Publish_Call) RunAndReturn ¶
func (_c *PubSubClient_Publish_Call) RunAndReturn(run func(ctxt context.Context, topic string, message []byte, metadata map[string]string, blocking bool) (*pubsub.PublishResult, error)) *PubSubClient_Publish_Call
type PubSubClient_Subscribe_Call ¶
PubSubClient_Subscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Subscribe'
func (*PubSubClient_Subscribe_Call) Return ¶
func (_c *PubSubClient_Subscribe_Call) Return(err error) *PubSubClient_Subscribe_Call
func (*PubSubClient_Subscribe_Call) Run ¶
func (_c *PubSubClient_Subscribe_Call) Run(run func(ctxt context.Context, subscription string, handler goutils.PubSubMessageHandler)) *PubSubClient_Subscribe_Call
func (*PubSubClient_Subscribe_Call) RunAndReturn ¶
func (_c *PubSubClient_Subscribe_Call) RunAndReturn(run func(ctxt context.Context, subscription string, handler goutils.PubSubMessageHandler) error) *PubSubClient_Subscribe_Call
type PubSubClient_UpdateLocalSubscriptionCache_Call ¶
PubSubClient_UpdateLocalSubscriptionCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLocalSubscriptionCache'
func (*PubSubClient_UpdateLocalSubscriptionCache_Call) Return ¶
func (_c *PubSubClient_UpdateLocalSubscriptionCache_Call) Return(err error) *PubSubClient_UpdateLocalSubscriptionCache_Call
func (*PubSubClient_UpdateLocalSubscriptionCache_Call) Run ¶
func (_c *PubSubClient_UpdateLocalSubscriptionCache_Call) Run(run func(ctxt context.Context)) *PubSubClient_UpdateLocalSubscriptionCache_Call
func (*PubSubClient_UpdateLocalSubscriptionCache_Call) RunAndReturn ¶
func (_c *PubSubClient_UpdateLocalSubscriptionCache_Call) RunAndReturn(run func(ctxt context.Context) error) *PubSubClient_UpdateLocalSubscriptionCache_Call
type PubSubClient_UpdateLocalTopicCache_Call ¶
PubSubClient_UpdateLocalTopicCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLocalTopicCache'
func (*PubSubClient_UpdateLocalTopicCache_Call) Return ¶
func (_c *PubSubClient_UpdateLocalTopicCache_Call) Return(err error) *PubSubClient_UpdateLocalTopicCache_Call
func (*PubSubClient_UpdateLocalTopicCache_Call) Run ¶
func (_c *PubSubClient_UpdateLocalTopicCache_Call) Run(run func(ctxt context.Context)) *PubSubClient_UpdateLocalTopicCache_Call
func (*PubSubClient_UpdateLocalTopicCache_Call) RunAndReturn ¶
func (_c *PubSubClient_UpdateLocalTopicCache_Call) RunAndReturn(run func(ctxt context.Context) error) *PubSubClient_UpdateLocalTopicCache_Call
type PubSubClient_UpdateSubscription_Call ¶
PubSubClient_UpdateSubscription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSubscription'
func (*PubSubClient_UpdateSubscription_Call) Return ¶
func (_c *PubSubClient_UpdateSubscription_Call) Return(err error) *PubSubClient_UpdateSubscription_Call
func (*PubSubClient_UpdateSubscription_Call) Run ¶
func (_c *PubSubClient_UpdateSubscription_Call) Run(run func(ctxt context.Context, subscription string, newConfig pubsub.SubscriptionConfigToUpdate)) *PubSubClient_UpdateSubscription_Call
func (*PubSubClient_UpdateSubscription_Call) RunAndReturn ¶
func (_c *PubSubClient_UpdateSubscription_Call) RunAndReturn(run func(ctxt context.Context, subscription string, newConfig pubsub.SubscriptionConfigToUpdate) error) *PubSubClient_UpdateSubscription_Call
type PubSubClient_UpdateTopic_Call ¶
PubSubClient_UpdateTopic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateTopic'
func (*PubSubClient_UpdateTopic_Call) Return ¶
func (_c *PubSubClient_UpdateTopic_Call) Return(err error) *PubSubClient_UpdateTopic_Call
func (*PubSubClient_UpdateTopic_Call) Run ¶
func (_c *PubSubClient_UpdateTopic_Call) Run(run func(ctxt context.Context, topic string, newConfig pubsub.TopicConfigToUpdate)) *PubSubClient_UpdateTopic_Call
func (*PubSubClient_UpdateTopic_Call) RunAndReturn ¶
func (_c *PubSubClient_UpdateTopic_Call) RunAndReturn(run func(ctxt context.Context, topic string, newConfig pubsub.TopicConfigToUpdate) error) *PubSubClient_UpdateTopic_Call
type PubSubMetricHelper ¶
PubSubMetricHelper is an autogenerated mock type for the PubSubMetricHelper type
func NewPubSubMetricHelper ¶
func NewPubSubMetricHelper(t interface {
mock.TestingT
Cleanup(func())
}) *PubSubMetricHelper
NewPubSubMetricHelper creates a new instance of PubSubMetricHelper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PubSubMetricHelper) EXPECT ¶
func (_m *PubSubMetricHelper) EXPECT() *PubSubMetricHelper_Expecter
func (*PubSubMetricHelper) RecordPublish ¶
func (_mock *PubSubMetricHelper) RecordPublish(topic string, successful bool, payloadLen int64)
RecordPublish provides a mock function for the type PubSubMetricHelper
func (*PubSubMetricHelper) RecordReceive ¶
func (_mock *PubSubMetricHelper) RecordReceive(topic string, successful bool, payloadLen int64)
RecordReceive provides a mock function for the type PubSubMetricHelper
type PubSubMetricHelper_Expecter ¶
type PubSubMetricHelper_Expecter struct {
// contains filtered or unexported fields
}
func (*PubSubMetricHelper_Expecter) RecordPublish ¶
func (_e *PubSubMetricHelper_Expecter) RecordPublish(topic interface{}, successful interface{}, payloadLen interface{}) *PubSubMetricHelper_RecordPublish_Call
RecordPublish is a helper method to define mock.On call
- topic string
- successful bool
- payloadLen int64
func (*PubSubMetricHelper_Expecter) RecordReceive ¶
func (_e *PubSubMetricHelper_Expecter) RecordReceive(topic interface{}, successful interface{}, payloadLen interface{}) *PubSubMetricHelper_RecordReceive_Call
RecordReceive is a helper method to define mock.On call
- topic string
- successful bool
- payloadLen int64
type PubSubMetricHelper_RecordPublish_Call ¶
PubSubMetricHelper_RecordPublish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecordPublish'
func (*PubSubMetricHelper_RecordPublish_Call) Return ¶
func (_c *PubSubMetricHelper_RecordPublish_Call) Return() *PubSubMetricHelper_RecordPublish_Call
func (*PubSubMetricHelper_RecordPublish_Call) Run ¶
func (_c *PubSubMetricHelper_RecordPublish_Call) Run(run func(topic string, successful bool, payloadLen int64)) *PubSubMetricHelper_RecordPublish_Call
func (*PubSubMetricHelper_RecordPublish_Call) RunAndReturn ¶
func (_c *PubSubMetricHelper_RecordPublish_Call) RunAndReturn(run func(topic string, successful bool, payloadLen int64)) *PubSubMetricHelper_RecordPublish_Call
type PubSubMetricHelper_RecordReceive_Call ¶
PubSubMetricHelper_RecordReceive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecordReceive'
func (*PubSubMetricHelper_RecordReceive_Call) Return ¶
func (_c *PubSubMetricHelper_RecordReceive_Call) Return() *PubSubMetricHelper_RecordReceive_Call
func (*PubSubMetricHelper_RecordReceive_Call) Run ¶
func (_c *PubSubMetricHelper_RecordReceive_Call) Run(run func(topic string, successful bool, payloadLen int64)) *PubSubMetricHelper_RecordReceive_Call
func (*PubSubMetricHelper_RecordReceive_Call) RunAndReturn ¶
func (_c *PubSubMetricHelper_RecordReceive_Call) RunAndReturn(run func(topic string, successful bool, payloadLen int64)) *PubSubMetricHelper_RecordReceive_Call
type Queue ¶
Queue is an autogenerated mock type for the Queue type
func NewQueue ¶
NewQueue creates a new instance of Queue. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Queue[V]) EXPECT ¶
func (_m *Queue[V]) EXPECT() *Queue_Expecter[V]
type Queue_Expecter ¶
type Queue_Expecter[V any] struct { // contains filtered or unexported fields }
func (*Queue_Expecter[V]) Len ¶
func (_e *Queue_Expecter[V]) Len() *Queue_Len_Call[V]
Len is a helper method to define mock.On call
func (*Queue_Expecter[V]) Pop ¶
func (_e *Queue_Expecter[V]) Pop() *Queue_Pop_Call[V]
Pop is a helper method to define mock.On call
func (*Queue_Expecter[V]) Push ¶
func (_e *Queue_Expecter[V]) Push(data interface{}) *Queue_Push_Call[V]
Push is a helper method to define mock.On call
- data V
type Queue_Len_Call ¶
Queue_Len_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Len'
func (*Queue_Len_Call[V]) Return ¶
func (_c *Queue_Len_Call[V]) Return(n int) *Queue_Len_Call[V]
func (*Queue_Len_Call[V]) Run ¶
func (_c *Queue_Len_Call[V]) Run(run func()) *Queue_Len_Call[V]
func (*Queue_Len_Call[V]) RunAndReturn ¶
func (_c *Queue_Len_Call[V]) RunAndReturn(run func() int) *Queue_Len_Call[V]
type Queue_Pop_Call ¶
Queue_Pop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pop'
func (*Queue_Pop_Call[V]) Return ¶
func (_c *Queue_Pop_Call[V]) Return(v V, err error) *Queue_Pop_Call[V]
func (*Queue_Pop_Call[V]) Run ¶
func (_c *Queue_Pop_Call[V]) Run(run func()) *Queue_Pop_Call[V]
func (*Queue_Pop_Call[V]) RunAndReturn ¶
func (_c *Queue_Pop_Call[V]) RunAndReturn(run func() (V, error)) *Queue_Pop_Call[V]
type Queue_Push_Call ¶
Queue_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'
func (*Queue_Push_Call[V]) Return ¶
func (_c *Queue_Push_Call[V]) Return(err error) *Queue_Push_Call[V]
func (*Queue_Push_Call[V]) Run ¶
func (_c *Queue_Push_Call[V]) Run(run func(data V)) *Queue_Push_Call[V]
func (*Queue_Push_Call[V]) RunAndReturn ¶
func (_c *Queue_Push_Call[V]) RunAndReturn(run func(data V) error) *Queue_Push_Call[V]
type RequestResponseClient ¶
RequestResponseClient is an autogenerated mock type for the RequestResponseClient type
func NewRequestResponseClient ¶
func NewRequestResponseClient(t interface {
mock.TestingT
Cleanup(func())
}) *RequestResponseClient
NewRequestResponseClient creates a new instance of RequestResponseClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RequestResponseClient) EXPECT ¶
func (_m *RequestResponseClient) EXPECT() *RequestResponseClient_Expecter
func (*RequestResponseClient) Request ¶
func (_mock *RequestResponseClient) Request(ctxt context.Context, targetID string, message []byte, metadata map[string]string, callParam goutils.RequestCallParam) (string, error)
Request provides a mock function for the type RequestResponseClient
func (*RequestResponseClient) Respond ¶
func (_mock *RequestResponseClient) Respond(ctxt context.Context, originalReq goutils.ReqRespMessage, message []byte, metadata map[string]string, blocking bool) error
Respond provides a mock function for the type RequestResponseClient
func (*RequestResponseClient) SetInboundRequestHandler ¶
func (_mock *RequestResponseClient) SetInboundRequestHandler(ctxt context.Context, handler goutils.ReqRespMessageHandler) error
SetInboundRequestHandler provides a mock function for the type RequestResponseClient
type RequestResponseClient_Expecter ¶
type RequestResponseClient_Expecter struct {
// contains filtered or unexported fields
}
func (*RequestResponseClient_Expecter) Request ¶
func (_e *RequestResponseClient_Expecter) Request(ctxt interface{}, targetID interface{}, message interface{}, metadata interface{}, callParam interface{}) *RequestResponseClient_Request_Call
Request is a helper method to define mock.On call
- ctxt context.Context
- targetID string
- message []byte
- metadata map[string]string
- callParam goutils.RequestCallParam
func (*RequestResponseClient_Expecter) Respond ¶
func (_e *RequestResponseClient_Expecter) Respond(ctxt interface{}, originalReq interface{}, message interface{}, metadata interface{}, blocking interface{}) *RequestResponseClient_Respond_Call
Respond is a helper method to define mock.On call
- ctxt context.Context
- originalReq goutils.ReqRespMessage
- message []byte
- metadata map[string]string
- blocking bool
func (*RequestResponseClient_Expecter) SetInboundRequestHandler ¶
func (_e *RequestResponseClient_Expecter) SetInboundRequestHandler(ctxt interface{}, handler interface{}) *RequestResponseClient_SetInboundRequestHandler_Call
SetInboundRequestHandler is a helper method to define mock.On call
- ctxt context.Context
- handler goutils.ReqRespMessageHandler
func (*RequestResponseClient_Expecter) Stop ¶
func (_e *RequestResponseClient_Expecter) Stop(ctxt interface{}) *RequestResponseClient_Stop_Call
Stop is a helper method to define mock.On call
- ctxt context.Context
type RequestResponseClient_Request_Call ¶
RequestResponseClient_Request_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Request'
func (*RequestResponseClient_Request_Call) Return ¶
func (_c *RequestResponseClient_Request_Call) Return(s string, err error) *RequestResponseClient_Request_Call
func (*RequestResponseClient_Request_Call) Run ¶
func (_c *RequestResponseClient_Request_Call) Run(run func(ctxt context.Context, targetID string, message []byte, metadata map[string]string, callParam goutils.RequestCallParam)) *RequestResponseClient_Request_Call
func (*RequestResponseClient_Request_Call) RunAndReturn ¶
func (_c *RequestResponseClient_Request_Call) RunAndReturn(run func(ctxt context.Context, targetID string, message []byte, metadata map[string]string, callParam goutils.RequestCallParam) (string, error)) *RequestResponseClient_Request_Call
type RequestResponseClient_Respond_Call ¶
RequestResponseClient_Respond_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Respond'
func (*RequestResponseClient_Respond_Call) Return ¶
func (_c *RequestResponseClient_Respond_Call) Return(err error) *RequestResponseClient_Respond_Call
func (*RequestResponseClient_Respond_Call) Run ¶
func (_c *RequestResponseClient_Respond_Call) Run(run func(ctxt context.Context, originalReq goutils.ReqRespMessage, message []byte, metadata map[string]string, blocking bool)) *RequestResponseClient_Respond_Call
func (*RequestResponseClient_Respond_Call) RunAndReturn ¶
func (_c *RequestResponseClient_Respond_Call) RunAndReturn(run func(ctxt context.Context, originalReq goutils.ReqRespMessage, message []byte, metadata map[string]string, blocking bool) error) *RequestResponseClient_Respond_Call
type RequestResponseClient_SetInboundRequestHandler_Call ¶
RequestResponseClient_SetInboundRequestHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetInboundRequestHandler'
func (*RequestResponseClient_SetInboundRequestHandler_Call) Run ¶
func (_c *RequestResponseClient_SetInboundRequestHandler_Call) Run(run func(ctxt context.Context, handler goutils.ReqRespMessageHandler)) *RequestResponseClient_SetInboundRequestHandler_Call
func (*RequestResponseClient_SetInboundRequestHandler_Call) RunAndReturn ¶
func (_c *RequestResponseClient_SetInboundRequestHandler_Call) RunAndReturn(run func(ctxt context.Context, handler goutils.ReqRespMessageHandler) error) *RequestResponseClient_SetInboundRequestHandler_Call
type RequestResponseClient_Stop_Call ¶
RequestResponseClient_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*RequestResponseClient_Stop_Call) Return ¶
func (_c *RequestResponseClient_Stop_Call) Return(err error) *RequestResponseClient_Stop_Call
func (*RequestResponseClient_Stop_Call) Run ¶
func (_c *RequestResponseClient_Stop_Call) Run(run func(ctxt context.Context)) *RequestResponseClient_Stop_Call
func (*RequestResponseClient_Stop_Call) RunAndReturn ¶
func (_c *RequestResponseClient_Stop_Call) RunAndReturn(run func(ctxt context.Context) error) *RequestResponseClient_Stop_Call
type S3Client ¶ added in v0.12.1
S3Client is an autogenerated mock type for the S3Client type
func NewS3Client ¶ added in v0.12.1
NewS3Client creates a new instance of S3Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*S3Client) CopyObject ¶ added in v0.12.1
func (_mock *S3Client) CopyObject(ctx context.Context, srcBucket string, srcKey string, dstBucket string, dstKey string, newMIMEType *string) error
CopyObject provides a mock function for the type S3Client
func (*S3Client) CreateBucket ¶ added in v0.12.1
CreateBucket provides a mock function for the type S3Client
func (*S3Client) DeleteBucket ¶ added in v0.12.1
DeleteBucket provides a mock function for the type S3Client
func (*S3Client) DeleteObject ¶ added in v0.12.1
DeleteObject provides a mock function for the type S3Client
func (*S3Client) DeleteObjects ¶ added in v0.12.1
func (_mock *S3Client) DeleteObjects(ctx context.Context, bucketName string, objectKeys []string) (map[string]error, error)
DeleteObjects provides a mock function for the type S3Client
func (*S3Client) EXPECT ¶ added in v0.12.1
func (_m *S3Client) EXPECT() *S3Client_Expecter
func (*S3Client) GeneratePresignedGetURL ¶ added in v0.12.1
func (_mock *S3Client) GeneratePresignedGetURL(ctx context.Context, bucketName string, objectKey string, ttl time.Duration, contentDisposition *string) (*url.URL, error)
GeneratePresignedGetURL provides a mock function for the type S3Client
func (*S3Client) GeneratePresignedPutURL ¶ added in v0.12.1
func (_mock *S3Client) GeneratePresignedPutURL(ctx context.Context, bucketName string, objectKey string, objectSize int64, sha256Sum string, ttl time.Duration, contentType *string) (*url.URL, error)
GeneratePresignedPutURL provides a mock function for the type S3Client
func (*S3Client) GetObject ¶ added in v0.12.1
func (_mock *S3Client) GetObject(ctx context.Context, bucket string, objectKey string) (goutils.S3ObjectStat, goutils.S3ObjectReader, error)
GetObject provides a mock function for the type S3Client
func (*S3Client) GetObjectStat ¶ added in v0.12.1
func (_mock *S3Client) GetObjectStat(ctx context.Context, bucket string, objectKey string) (goutils.S3ObjectStat, error)
GetObjectStat provides a mock function for the type S3Client
func (*S3Client) ListBuckets ¶ added in v0.12.1
ListBuckets provides a mock function for the type S3Client
type S3ClientManager ¶ added in v0.12.3
S3ClientManager is an autogenerated mock type for the S3ClientManager type
func NewS3ClientManager ¶ added in v0.12.3
func NewS3ClientManager(t interface {
mock.TestingT
Cleanup(func())
}) *S3ClientManager
NewS3ClientManager creates a new instance of S3ClientManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*S3ClientManager) EXPECT ¶ added in v0.12.3
func (_m *S3ClientManager) EXPECT() *S3ClientManager_Expecter
type S3ClientManager_Expecter ¶ added in v0.12.3
type S3ClientManager_Expecter struct {
// contains filtered or unexported fields
}
func (*S3ClientManager_Expecter) GetClient ¶ added in v0.12.3
func (_e *S3ClientManager_Expecter) GetClient(ctxt interface{}, timestamp interface{}) *S3ClientManager_GetClient_Call
GetClient is a helper method to define mock.On call
- ctxt context.Context
- timestamp time.Time
type S3ClientManager_GetClient_Call ¶ added in v0.12.3
S3ClientManager_GetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClient'
func (*S3ClientManager_GetClient_Call) Return ¶ added in v0.12.3
func (_c *S3ClientManager_GetClient_Call) Return(s3Client goutils.S3Client, err error) *S3ClientManager_GetClient_Call
func (*S3ClientManager_GetClient_Call) Run ¶ added in v0.12.3
func (_c *S3ClientManager_GetClient_Call) Run(run func(ctxt context.Context, timestamp time.Time)) *S3ClientManager_GetClient_Call
func (*S3ClientManager_GetClient_Call) RunAndReturn ¶ added in v0.12.3
func (_c *S3ClientManager_GetClient_Call) RunAndReturn(run func(ctxt context.Context, timestamp time.Time) (goutils.S3Client, error)) *S3ClientManager_GetClient_Call
type S3Client_CopyObject_Call ¶ added in v0.12.1
S3Client_CopyObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CopyObject'
func (*S3Client_CopyObject_Call) Return ¶ added in v0.12.1
func (_c *S3Client_CopyObject_Call) Return(err error) *S3Client_CopyObject_Call
func (*S3Client_CopyObject_Call) Run ¶ added in v0.12.1
func (_c *S3Client_CopyObject_Call) Run(run func(ctx context.Context, srcBucket string, srcKey string, dstBucket string, dstKey string, newMIMEType *string)) *S3Client_CopyObject_Call
func (*S3Client_CopyObject_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3Client_CopyObject_Call) RunAndReturn(run func(ctx context.Context, srcBucket string, srcKey string, dstBucket string, dstKey string, newMIMEType *string) error) *S3Client_CopyObject_Call
type S3Client_CreateBucket_Call ¶ added in v0.12.1
S3Client_CreateBucket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBucket'
func (*S3Client_CreateBucket_Call) Return ¶ added in v0.12.1
func (_c *S3Client_CreateBucket_Call) Return(err error) *S3Client_CreateBucket_Call
func (*S3Client_CreateBucket_Call) Run ¶ added in v0.12.1
func (_c *S3Client_CreateBucket_Call) Run(run func(ctx context.Context, bucket string)) *S3Client_CreateBucket_Call
func (*S3Client_CreateBucket_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3Client_CreateBucket_Call) RunAndReturn(run func(ctx context.Context, bucket string) error) *S3Client_CreateBucket_Call
type S3Client_DeleteBucket_Call ¶ added in v0.12.1
S3Client_DeleteBucket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBucket'
func (*S3Client_DeleteBucket_Call) Return ¶ added in v0.12.1
func (_c *S3Client_DeleteBucket_Call) Return(err error) *S3Client_DeleteBucket_Call
func (*S3Client_DeleteBucket_Call) Run ¶ added in v0.12.1
func (_c *S3Client_DeleteBucket_Call) Run(run func(ctx context.Context, bucket string)) *S3Client_DeleteBucket_Call
func (*S3Client_DeleteBucket_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3Client_DeleteBucket_Call) RunAndReturn(run func(ctx context.Context, bucket string) error) *S3Client_DeleteBucket_Call
type S3Client_DeleteObject_Call ¶ added in v0.12.1
S3Client_DeleteObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteObject'
func (*S3Client_DeleteObject_Call) Return ¶ added in v0.12.1
func (_c *S3Client_DeleteObject_Call) Return(err error) *S3Client_DeleteObject_Call
func (*S3Client_DeleteObject_Call) Run ¶ added in v0.12.1
func (_c *S3Client_DeleteObject_Call) Run(run func(ctx context.Context, bucket string, objectKey string)) *S3Client_DeleteObject_Call
func (*S3Client_DeleteObject_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3Client_DeleteObject_Call) RunAndReturn(run func(ctx context.Context, bucket string, objectKey string) error) *S3Client_DeleteObject_Call
type S3Client_DeleteObjects_Call ¶ added in v0.12.1
S3Client_DeleteObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteObjects'
func (*S3Client_DeleteObjects_Call) Return ¶ added in v0.12.1
func (_c *S3Client_DeleteObjects_Call) Return(stringToErr map[string]error, err error) *S3Client_DeleteObjects_Call
func (*S3Client_DeleteObjects_Call) Run ¶ added in v0.12.1
func (_c *S3Client_DeleteObjects_Call) Run(run func(ctx context.Context, bucketName string, objectKeys []string)) *S3Client_DeleteObjects_Call
func (*S3Client_DeleteObjects_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3Client_DeleteObjects_Call) RunAndReturn(run func(ctx context.Context, bucketName string, objectKeys []string) (map[string]error, error)) *S3Client_DeleteObjects_Call
type S3Client_Expecter ¶ added in v0.12.1
type S3Client_Expecter struct {
// contains filtered or unexported fields
}
func (*S3Client_Expecter) CopyObject ¶ added in v0.12.1
func (_e *S3Client_Expecter) CopyObject(ctx interface{}, srcBucket interface{}, srcKey interface{}, dstBucket interface{}, dstKey interface{}, newMIMEType interface{}) *S3Client_CopyObject_Call
CopyObject is a helper method to define mock.On call
- ctx context.Context
- srcBucket string
- srcKey string
- dstBucket string
- dstKey string
- newMIMEType *string
func (*S3Client_Expecter) CreateBucket ¶ added in v0.12.1
func (_e *S3Client_Expecter) CreateBucket(ctx interface{}, bucket interface{}) *S3Client_CreateBucket_Call
CreateBucket is a helper method to define mock.On call
- ctx context.Context
- bucket string
func (*S3Client_Expecter) DeleteBucket ¶ added in v0.12.1
func (_e *S3Client_Expecter) DeleteBucket(ctx interface{}, bucket interface{}) *S3Client_DeleteBucket_Call
DeleteBucket is a helper method to define mock.On call
- ctx context.Context
- bucket string
func (*S3Client_Expecter) DeleteObject ¶ added in v0.12.1
func (_e *S3Client_Expecter) DeleteObject(ctx interface{}, bucket interface{}, objectKey interface{}) *S3Client_DeleteObject_Call
DeleteObject is a helper method to define mock.On call
- ctx context.Context
- bucket string
- objectKey string
func (*S3Client_Expecter) DeleteObjects ¶ added in v0.12.1
func (_e *S3Client_Expecter) DeleteObjects(ctx interface{}, bucketName interface{}, objectKeys interface{}) *S3Client_DeleteObjects_Call
DeleteObjects is a helper method to define mock.On call
- ctx context.Context
- bucketName string
- objectKeys []string
func (*S3Client_Expecter) GeneratePresignedGetURL ¶ added in v0.12.1
func (_e *S3Client_Expecter) GeneratePresignedGetURL(ctx interface{}, bucketName interface{}, objectKey interface{}, ttl interface{}, contentDisposition interface{}) *S3Client_GeneratePresignedGetURL_Call
GeneratePresignedGetURL is a helper method to define mock.On call
- ctx context.Context
- bucketName string
- objectKey string
- ttl time.Duration
- contentDisposition *string
func (*S3Client_Expecter) GeneratePresignedPutURL ¶ added in v0.12.1
func (_e *S3Client_Expecter) GeneratePresignedPutURL(ctx interface{}, bucketName interface{}, objectKey interface{}, objectSize interface{}, sha256Sum interface{}, ttl interface{}, contentType interface{}) *S3Client_GeneratePresignedPutURL_Call
GeneratePresignedPutURL is a helper method to define mock.On call
- ctx context.Context
- bucketName string
- objectKey string
- objectSize int64
- sha256Sum string
- ttl time.Duration
- contentType *string
func (*S3Client_Expecter) GetObject ¶ added in v0.12.1
func (_e *S3Client_Expecter) GetObject(ctx interface{}, bucket interface{}, objectKey interface{}) *S3Client_GetObject_Call
GetObject is a helper method to define mock.On call
- ctx context.Context
- bucket string
- objectKey string
func (*S3Client_Expecter) GetObjectStat ¶ added in v0.12.1
func (_e *S3Client_Expecter) GetObjectStat(ctx interface{}, bucket interface{}, objectKey interface{}) *S3Client_GetObjectStat_Call
GetObjectStat is a helper method to define mock.On call
- ctx context.Context
- bucket string
- objectKey string
func (*S3Client_Expecter) ListBuckets ¶ added in v0.12.1
func (_e *S3Client_Expecter) ListBuckets(ctx interface{}) *S3Client_ListBuckets_Call
ListBuckets is a helper method to define mock.On call
- ctx context.Context
func (*S3Client_Expecter) ListObjects ¶ added in v0.12.1
func (_e *S3Client_Expecter) ListObjects(ctx interface{}, bucket interface{}, prefix interface{}, startingKey interface{}, maxKeys interface{}) *S3Client_ListObjects_Call
ListObjects is a helper method to define mock.On call
- ctx context.Context
- bucket string
- prefix *string
- startingKey *string
- maxKeys *int
func (*S3Client_Expecter) PutObject ¶ added in v0.12.1
func (_e *S3Client_Expecter) PutObject(ctx interface{}, bucket interface{}, objectKey interface{}, data interface{}, expectedSize interface{}, contentType interface{}) *S3Client_PutObject_Call
PutObject is a helper method to define mock.On call
- ctx context.Context
- bucket string
- objectKey string
- data io.Reader
- expectedSize int64
- contentType *string
type S3Client_GeneratePresignedGetURL_Call ¶ added in v0.12.1
S3Client_GeneratePresignedGetURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GeneratePresignedGetURL'
func (*S3Client_GeneratePresignedGetURL_Call) Return ¶ added in v0.12.1
func (_c *S3Client_GeneratePresignedGetURL_Call) Return(uRL *url.URL, err error) *S3Client_GeneratePresignedGetURL_Call
func (*S3Client_GeneratePresignedGetURL_Call) Run ¶ added in v0.12.1
func (_c *S3Client_GeneratePresignedGetURL_Call) Run(run func(ctx context.Context, bucketName string, objectKey string, ttl time.Duration, contentDisposition *string)) *S3Client_GeneratePresignedGetURL_Call
func (*S3Client_GeneratePresignedGetURL_Call) RunAndReturn ¶ added in v0.12.1
type S3Client_GeneratePresignedPutURL_Call ¶ added in v0.12.1
S3Client_GeneratePresignedPutURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GeneratePresignedPutURL'
func (*S3Client_GeneratePresignedPutURL_Call) Return ¶ added in v0.12.1
func (_c *S3Client_GeneratePresignedPutURL_Call) Return(uRL *url.URL, err error) *S3Client_GeneratePresignedPutURL_Call
func (*S3Client_GeneratePresignedPutURL_Call) RunAndReturn ¶ added in v0.12.1
type S3Client_GetObjectStat_Call ¶ added in v0.12.1
S3Client_GetObjectStat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetObjectStat'
func (*S3Client_GetObjectStat_Call) Return ¶ added in v0.12.1
func (_c *S3Client_GetObjectStat_Call) Return(s3ObjectStat goutils.S3ObjectStat, err error) *S3Client_GetObjectStat_Call
func (*S3Client_GetObjectStat_Call) Run ¶ added in v0.12.1
func (_c *S3Client_GetObjectStat_Call) Run(run func(ctx context.Context, bucket string, objectKey string)) *S3Client_GetObjectStat_Call
func (*S3Client_GetObjectStat_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3Client_GetObjectStat_Call) RunAndReturn(run func(ctx context.Context, bucket string, objectKey string) (goutils.S3ObjectStat, error)) *S3Client_GetObjectStat_Call
type S3Client_GetObject_Call ¶ added in v0.12.1
S3Client_GetObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetObject'
func (*S3Client_GetObject_Call) Return ¶ added in v0.12.1
func (_c *S3Client_GetObject_Call) Return(s3ObjectStat goutils.S3ObjectStat, s3ObjectReader goutils.S3ObjectReader, err error) *S3Client_GetObject_Call
func (*S3Client_GetObject_Call) Run ¶ added in v0.12.1
func (_c *S3Client_GetObject_Call) Run(run func(ctx context.Context, bucket string, objectKey string)) *S3Client_GetObject_Call
func (*S3Client_GetObject_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3Client_GetObject_Call) RunAndReturn(run func(ctx context.Context, bucket string, objectKey string) (goutils.S3ObjectStat, goutils.S3ObjectReader, error)) *S3Client_GetObject_Call
type S3Client_ListBuckets_Call ¶ added in v0.12.1
S3Client_ListBuckets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBuckets'
func (*S3Client_ListBuckets_Call) Return ¶ added in v0.12.1
func (_c *S3Client_ListBuckets_Call) Return(strings []string, err error) *S3Client_ListBuckets_Call
func (*S3Client_ListBuckets_Call) Run ¶ added in v0.12.1
func (_c *S3Client_ListBuckets_Call) Run(run func(ctx context.Context)) *S3Client_ListBuckets_Call
func (*S3Client_ListBuckets_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3Client_ListBuckets_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *S3Client_ListBuckets_Call
type S3Client_ListObjects_Call ¶ added in v0.12.1
S3Client_ListObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListObjects'
func (*S3Client_ListObjects_Call) Return ¶ added in v0.12.1
func (_c *S3Client_ListObjects_Call) Return(s3ObjectStats []goutils.S3ObjectStat, err error) *S3Client_ListObjects_Call
func (*S3Client_ListObjects_Call) Run ¶ added in v0.12.1
func (_c *S3Client_ListObjects_Call) Run(run func(ctx context.Context, bucket string, prefix *string, startingKey *string, maxKeys *int)) *S3Client_ListObjects_Call
func (*S3Client_ListObjects_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3Client_ListObjects_Call) RunAndReturn(run func(ctx context.Context, bucket string, prefix *string, startingKey *string, maxKeys *int) ([]goutils.S3ObjectStat, error)) *S3Client_ListObjects_Call
type S3Client_PutObject_Call ¶ added in v0.12.1
S3Client_PutObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutObject'
func (*S3Client_PutObject_Call) Return ¶ added in v0.12.1
func (_c *S3Client_PutObject_Call) Return(err error) *S3Client_PutObject_Call
func (*S3Client_PutObject_Call) Run ¶ added in v0.12.1
func (_c *S3Client_PutObject_Call) Run(run func(ctx context.Context, bucket string, objectKey string, data io.Reader, expectedSize int64, contentType *string)) *S3Client_PutObject_Call
func (*S3Client_PutObject_Call) RunAndReturn ¶ added in v0.12.1
type S3ObjectReader ¶ added in v0.12.1
S3ObjectReader is an autogenerated mock type for the S3ObjectReader type
func NewS3ObjectReader ¶ added in v0.12.1
func NewS3ObjectReader(t interface {
mock.TestingT
Cleanup(func())
}) *S3ObjectReader
NewS3ObjectReader creates a new instance of S3ObjectReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*S3ObjectReader) Close ¶ added in v0.12.1
func (_mock *S3ObjectReader) Close() error
Close provides a mock function for the type S3ObjectReader
func (*S3ObjectReader) EXPECT ¶ added in v0.12.1
func (_m *S3ObjectReader) EXPECT() *S3ObjectReader_Expecter
func (*S3ObjectReader) Read ¶ added in v0.12.1
func (_mock *S3ObjectReader) Read(p []byte) (int, error)
Read provides a mock function for the type S3ObjectReader
type S3ObjectReader_Close_Call ¶ added in v0.12.1
S3ObjectReader_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*S3ObjectReader_Close_Call) Return ¶ added in v0.12.1
func (_c *S3ObjectReader_Close_Call) Return(err error) *S3ObjectReader_Close_Call
func (*S3ObjectReader_Close_Call) Run ¶ added in v0.12.1
func (_c *S3ObjectReader_Close_Call) Run(run func()) *S3ObjectReader_Close_Call
func (*S3ObjectReader_Close_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3ObjectReader_Close_Call) RunAndReturn(run func() error) *S3ObjectReader_Close_Call
type S3ObjectReader_Expecter ¶ added in v0.12.1
type S3ObjectReader_Expecter struct {
// contains filtered or unexported fields
}
func (*S3ObjectReader_Expecter) Close ¶ added in v0.12.1
func (_e *S3ObjectReader_Expecter) Close() *S3ObjectReader_Close_Call
Close is a helper method to define mock.On call
func (*S3ObjectReader_Expecter) Read ¶ added in v0.12.1
func (_e *S3ObjectReader_Expecter) Read(p interface{}) *S3ObjectReader_Read_Call
Read is a helper method to define mock.On call
- p []byte
func (*S3ObjectReader_Expecter) ReadAt ¶ added in v0.12.1
func (_e *S3ObjectReader_Expecter) ReadAt(p interface{}, off interface{}) *S3ObjectReader_ReadAt_Call
ReadAt is a helper method to define mock.On call
- p []byte
- off int64
func (*S3ObjectReader_Expecter) Seek ¶ added in v0.12.1
func (_e *S3ObjectReader_Expecter) Seek(offset interface{}, whence interface{}) *S3ObjectReader_Seek_Call
Seek is a helper method to define mock.On call
- offset int64
- whence int
type S3ObjectReader_ReadAt_Call ¶ added in v0.12.1
S3ObjectReader_ReadAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadAt'
func (*S3ObjectReader_ReadAt_Call) Return ¶ added in v0.12.1
func (_c *S3ObjectReader_ReadAt_Call) Return(n int, err error) *S3ObjectReader_ReadAt_Call
func (*S3ObjectReader_ReadAt_Call) Run ¶ added in v0.12.1
func (_c *S3ObjectReader_ReadAt_Call) Run(run func(p []byte, off int64)) *S3ObjectReader_ReadAt_Call
func (*S3ObjectReader_ReadAt_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3ObjectReader_ReadAt_Call) RunAndReturn(run func(p []byte, off int64) (int, error)) *S3ObjectReader_ReadAt_Call
type S3ObjectReader_Read_Call ¶ added in v0.12.1
S3ObjectReader_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*S3ObjectReader_Read_Call) Return ¶ added in v0.12.1
func (_c *S3ObjectReader_Read_Call) Return(n int, err error) *S3ObjectReader_Read_Call
func (*S3ObjectReader_Read_Call) Run ¶ added in v0.12.1
func (_c *S3ObjectReader_Read_Call) Run(run func(p []byte)) *S3ObjectReader_Read_Call
func (*S3ObjectReader_Read_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3ObjectReader_Read_Call) RunAndReturn(run func(p []byte) (int, error)) *S3ObjectReader_Read_Call
type S3ObjectReader_Seek_Call ¶ added in v0.12.1
S3ObjectReader_Seek_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Seek'
func (*S3ObjectReader_Seek_Call) Return ¶ added in v0.12.1
func (_c *S3ObjectReader_Seek_Call) Return(n int64, err error) *S3ObjectReader_Seek_Call
func (*S3ObjectReader_Seek_Call) Run ¶ added in v0.12.1
func (_c *S3ObjectReader_Seek_Call) Run(run func(offset int64, whence int)) *S3ObjectReader_Seek_Call
func (*S3ObjectReader_Seek_Call) RunAndReturn ¶ added in v0.12.1
func (_c *S3ObjectReader_Seek_Call) RunAndReturn(run func(offset int64, whence int) (int64, error)) *S3ObjectReader_Seek_Call
type Sequencer ¶
Sequencer is an autogenerated mock type for the Sequencer type
func NewSequencer ¶
NewSequencer creates a new instance of Sequencer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Sequencer) EXPECT ¶
func (_m *Sequencer) EXPECT() *Sequencer_Expecter
type Sequencer_Expecter ¶
type Sequencer_Expecter struct {
// contains filtered or unexported fields
}
func (*Sequencer_Expecter) NextValue ¶
func (_e *Sequencer_Expecter) NextValue() *Sequencer_NextValue_Call
NextValue is a helper method to define mock.On call
type Sequencer_NextValue_Call ¶
Sequencer_NextValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NextValue'
func (*Sequencer_NextValue_Call) Return ¶
func (_c *Sequencer_NextValue_Call) Return(f float64) *Sequencer_NextValue_Call
func (*Sequencer_NextValue_Call) Run ¶
func (_c *Sequencer_NextValue_Call) Run(run func()) *Sequencer_NextValue_Call
func (*Sequencer_NextValue_Call) RunAndReturn ¶
func (_c *Sequencer_NextValue_Call) RunAndReturn(run func() float64) *Sequencer_NextValue_Call
type TaskProcessor ¶
TaskProcessor is an autogenerated mock type for the TaskProcessor type
func NewTaskProcessor ¶
func NewTaskProcessor(t interface {
mock.TestingT
Cleanup(func())
}) *TaskProcessor
NewTaskProcessor creates a new instance of TaskProcessor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TaskProcessor) AddToTaskExecutionMap ¶
func (_mock *TaskProcessor) AddToTaskExecutionMap(parameterType reflect.Type, handler goutils.TaskProcessorSupportHandler) error
AddToTaskExecutionMap provides a mock function for the type TaskProcessor
func (*TaskProcessor) EXPECT ¶
func (_m *TaskProcessor) EXPECT() *TaskProcessor_Expecter
func (*TaskProcessor) SetTaskExecutionMap ¶
func (_mock *TaskProcessor) SetTaskExecutionMap(newMap map[reflect.Type]goutils.TaskProcessorSupportHandler) error
SetTaskExecutionMap provides a mock function for the type TaskProcessor
func (*TaskProcessor) StartEventLoop ¶
func (_mock *TaskProcessor) StartEventLoop(wg *sync.WaitGroup) error
StartEventLoop provides a mock function for the type TaskProcessor
func (*TaskProcessor) StopEventLoop ¶
func (_mock *TaskProcessor) StopEventLoop() error
StopEventLoop provides a mock function for the type TaskProcessor
type TaskProcessorMetricHelper ¶
TaskProcessorMetricHelper is an autogenerated mock type for the TaskProcessorMetricHelper type
func NewTaskProcessorMetricHelper ¶
func NewTaskProcessorMetricHelper(t interface {
mock.TestingT
Cleanup(func())
}) *TaskProcessorMetricHelper
NewTaskProcessorMetricHelper creates a new instance of TaskProcessorMetricHelper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TaskProcessorMetricHelper) EXPECT ¶
func (_m *TaskProcessorMetricHelper) EXPECT() *TaskProcessorMetricHelper_Expecter
func (*TaskProcessorMetricHelper) RecordProcessed ¶
func (_mock *TaskProcessorMetricHelper) RecordProcessed(instance string)
RecordProcessed provides a mock function for the type TaskProcessorMetricHelper
func (*TaskProcessorMetricHelper) RecordSubmit ¶
func (_mock *TaskProcessorMetricHelper) RecordSubmit(instance string, successful bool)
RecordSubmit provides a mock function for the type TaskProcessorMetricHelper
type TaskProcessorMetricHelper_Expecter ¶
type TaskProcessorMetricHelper_Expecter struct {
// contains filtered or unexported fields
}
func (*TaskProcessorMetricHelper_Expecter) RecordProcessed ¶
func (_e *TaskProcessorMetricHelper_Expecter) RecordProcessed(instance interface{}) *TaskProcessorMetricHelper_RecordProcessed_Call
RecordProcessed is a helper method to define mock.On call
- instance string
func (*TaskProcessorMetricHelper_Expecter) RecordSubmit ¶
func (_e *TaskProcessorMetricHelper_Expecter) RecordSubmit(instance interface{}, successful interface{}) *TaskProcessorMetricHelper_RecordSubmit_Call
RecordSubmit is a helper method to define mock.On call
- instance string
- successful bool
type TaskProcessorMetricHelper_RecordProcessed_Call ¶
TaskProcessorMetricHelper_RecordProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecordProcessed'
func (*TaskProcessorMetricHelper_RecordProcessed_Call) Run ¶
func (_c *TaskProcessorMetricHelper_RecordProcessed_Call) Run(run func(instance string)) *TaskProcessorMetricHelper_RecordProcessed_Call
func (*TaskProcessorMetricHelper_RecordProcessed_Call) RunAndReturn ¶
func (_c *TaskProcessorMetricHelper_RecordProcessed_Call) RunAndReturn(run func(instance string)) *TaskProcessorMetricHelper_RecordProcessed_Call
type TaskProcessorMetricHelper_RecordSubmit_Call ¶
TaskProcessorMetricHelper_RecordSubmit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecordSubmit'
func (*TaskProcessorMetricHelper_RecordSubmit_Call) Return ¶
func (_c *TaskProcessorMetricHelper_RecordSubmit_Call) Return() *TaskProcessorMetricHelper_RecordSubmit_Call
func (*TaskProcessorMetricHelper_RecordSubmit_Call) Run ¶
func (_c *TaskProcessorMetricHelper_RecordSubmit_Call) Run(run func(instance string, successful bool)) *TaskProcessorMetricHelper_RecordSubmit_Call
func (*TaskProcessorMetricHelper_RecordSubmit_Call) RunAndReturn ¶
func (_c *TaskProcessorMetricHelper_RecordSubmit_Call) RunAndReturn(run func(instance string, successful bool)) *TaskProcessorMetricHelper_RecordSubmit_Call
type TaskProcessor_AddToTaskExecutionMap_Call ¶
TaskProcessor_AddToTaskExecutionMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddToTaskExecutionMap'
func (*TaskProcessor_AddToTaskExecutionMap_Call) Return ¶
func (_c *TaskProcessor_AddToTaskExecutionMap_Call) Return(err error) *TaskProcessor_AddToTaskExecutionMap_Call
func (*TaskProcessor_AddToTaskExecutionMap_Call) Run ¶
func (_c *TaskProcessor_AddToTaskExecutionMap_Call) Run(run func(parameterType reflect.Type, handler goutils.TaskProcessorSupportHandler)) *TaskProcessor_AddToTaskExecutionMap_Call
func (*TaskProcessor_AddToTaskExecutionMap_Call) RunAndReturn ¶
func (_c *TaskProcessor_AddToTaskExecutionMap_Call) RunAndReturn(run func(parameterType reflect.Type, handler goutils.TaskProcessorSupportHandler) error) *TaskProcessor_AddToTaskExecutionMap_Call
type TaskProcessor_Expecter ¶
type TaskProcessor_Expecter struct {
// contains filtered or unexported fields
}
func (*TaskProcessor_Expecter) AddToTaskExecutionMap ¶
func (_e *TaskProcessor_Expecter) AddToTaskExecutionMap(parameterType interface{}, handler interface{}) *TaskProcessor_AddToTaskExecutionMap_Call
AddToTaskExecutionMap is a helper method to define mock.On call
- parameterType reflect.Type
- handler goutils.TaskProcessorSupportHandler
func (*TaskProcessor_Expecter) SetTaskExecutionMap ¶
func (_e *TaskProcessor_Expecter) SetTaskExecutionMap(newMap interface{}) *TaskProcessor_SetTaskExecutionMap_Call
SetTaskExecutionMap is a helper method to define mock.On call
- newMap map[reflect.Type]goutils.TaskProcessorSupportHandler
func (*TaskProcessor_Expecter) StartEventLoop ¶
func (_e *TaskProcessor_Expecter) StartEventLoop(wg interface{}) *TaskProcessor_StartEventLoop_Call
StartEventLoop is a helper method to define mock.On call
- wg *sync.WaitGroup
func (*TaskProcessor_Expecter) StopEventLoop ¶
func (_e *TaskProcessor_Expecter) StopEventLoop() *TaskProcessor_StopEventLoop_Call
StopEventLoop is a helper method to define mock.On call
func (*TaskProcessor_Expecter) Submit ¶
func (_e *TaskProcessor_Expecter) Submit(ctx interface{}, newTaskParam interface{}) *TaskProcessor_Submit_Call
Submit is a helper method to define mock.On call
- ctx context.Context
- newTaskParam interface{}
type TaskProcessor_SetTaskExecutionMap_Call ¶
TaskProcessor_SetTaskExecutionMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTaskExecutionMap'
func (*TaskProcessor_SetTaskExecutionMap_Call) Return ¶
func (_c *TaskProcessor_SetTaskExecutionMap_Call) Return(err error) *TaskProcessor_SetTaskExecutionMap_Call
func (*TaskProcessor_SetTaskExecutionMap_Call) Run ¶
func (_c *TaskProcessor_SetTaskExecutionMap_Call) Run(run func(newMap map[reflect.Type]goutils.TaskProcessorSupportHandler)) *TaskProcessor_SetTaskExecutionMap_Call
func (*TaskProcessor_SetTaskExecutionMap_Call) RunAndReturn ¶
func (_c *TaskProcessor_SetTaskExecutionMap_Call) RunAndReturn(run func(newMap map[reflect.Type]goutils.TaskProcessorSupportHandler) error) *TaskProcessor_SetTaskExecutionMap_Call
type TaskProcessor_StartEventLoop_Call ¶
TaskProcessor_StartEventLoop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartEventLoop'
func (*TaskProcessor_StartEventLoop_Call) Return ¶
func (_c *TaskProcessor_StartEventLoop_Call) Return(err error) *TaskProcessor_StartEventLoop_Call
func (*TaskProcessor_StartEventLoop_Call) Run ¶
func (_c *TaskProcessor_StartEventLoop_Call) Run(run func(wg *sync.WaitGroup)) *TaskProcessor_StartEventLoop_Call
func (*TaskProcessor_StartEventLoop_Call) RunAndReturn ¶
func (_c *TaskProcessor_StartEventLoop_Call) RunAndReturn(run func(wg *sync.WaitGroup) error) *TaskProcessor_StartEventLoop_Call
type TaskProcessor_StopEventLoop_Call ¶
TaskProcessor_StopEventLoop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopEventLoop'
func (*TaskProcessor_StopEventLoop_Call) Return ¶
func (_c *TaskProcessor_StopEventLoop_Call) Return(err error) *TaskProcessor_StopEventLoop_Call
func (*TaskProcessor_StopEventLoop_Call) Run ¶
func (_c *TaskProcessor_StopEventLoop_Call) Run(run func()) *TaskProcessor_StopEventLoop_Call
func (*TaskProcessor_StopEventLoop_Call) RunAndReturn ¶
func (_c *TaskProcessor_StopEventLoop_Call) RunAndReturn(run func() error) *TaskProcessor_StopEventLoop_Call
type TaskProcessor_Submit_Call ¶
TaskProcessor_Submit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Submit'
func (*TaskProcessor_Submit_Call) Return ¶
func (_c *TaskProcessor_Submit_Call) Return(err error) *TaskProcessor_Submit_Call
func (*TaskProcessor_Submit_Call) Run ¶
func (_c *TaskProcessor_Submit_Call) Run(run func(ctx context.Context, newTaskParam interface{})) *TaskProcessor_Submit_Call
func (*TaskProcessor_Submit_Call) RunAndReturn ¶
func (_c *TaskProcessor_Submit_Call) RunAndReturn(run func(ctx context.Context, newTaskParam interface{}) error) *TaskProcessor_Submit_Call
Source Files
¶
- AsyncQueue_mocks.go
- Condition_mocks.go
- HTTPRequestMetricHelper_mocks.go
- IntervalTimer_mocks.go
- MessageBus_mocks.go
- MessageTopic_mocks.go
- MetricsCollector_mocks.go
- OAuthTokenManager_mocks.go
- OpenIDProviderClient_mocks.go
- PriorityQueueEntry_mocks.go
- PubSubClient_mocks.go
- PubSubMetricHelper_mocks.go
- Queue_mocks.go
- RequestResponseClient_mocks.go
- S3ClientManager_mocks.go
- S3Client_mocks.go
- S3ObjectReader_mocks.go
- Sequencer_mocks.go
- TaskProcessorMetricHelper_mocks.go
- TaskProcessor_mocks.go
- stackCarrier_mocks.go