mocks

package
v0.0.0-...-b175f30 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AffiliationClient

type AffiliationClient struct {
	mock.Mock
}

AffiliationClient is an autogenerated mock type for the AffiliationClient type

func (*AffiliationClient) AddIdentity

func (_m *AffiliationClient) AddIdentity(identity *affiliation.Identity) bool

AddIdentity provides a mock function with given fields: identity

func (*AffiliationClient) GetIdentityByUser

func (_m *AffiliationClient) GetIdentityByUser(key string, value string) (*affiliation.AffIdentity, error)

GetIdentityByUser provides a mock function with given fields: key, value

type Auth0Client

type Auth0Client struct {
	mock.Mock
}

Auth0Client is an autogenerated mock type for the Auth0Client type

func (*Auth0Client) GetToken

func (_m *Auth0Client) GetToken() (string, error)

GetToken provides a mock function with given fields:

type ESClientProvider

type ESClientProvider struct {
	mock.Mock
}

ESClientProvider is an autogenerated mock type for the ESClientProvider type

func (*ESClientProvider) Add

func (_m *ESClientProvider) Add(index string, documentID string, body []byte) ([]byte, error)

Add provides a mock function with given fields: index, documentID, body

func (*ESClientProvider) Bulk

func (_m *ESClientProvider) Bulk(body []byte) ([]byte, error)

Bulk provides a mock function with given fields: body

func (*ESClientProvider) BulkInsert

func (_m *ESClientProvider) BulkInsert(data []elastic.BulkData) ([]byte, error)

BulkInsert provides a mock function with given fields: data

func (*ESClientProvider) CreateIndex

func (_m *ESClientProvider) CreateIndex(index string, body []byte) ([]byte, error)

CreateIndex provides a mock function with given fields: index, body

func (*ESClientProvider) DelayOfCreateIndex

func (_m *ESClientProvider) DelayOfCreateIndex(ex func(string, []byte) ([]byte, error), uin uint, du time.Duration, index string, data []byte) error

DelayOfCreateIndex provides a mock function with given fields: ex, uin, du, index, data

func (*ESClientProvider) Get

func (_m *ESClientProvider) Get(index string, query map[string]interface{}, result interface{}) error

Get provides a mock function with given fields: index, query, result

func (*ESClientProvider) GetStat

func (_m *ESClientProvider) GetStat(index string, field string, aggType string, mustConditions []map[string]interface{}, mustNotConditions []map[string]interface{}) (time.Time, error)

GetStat provides a mock function with given fields: index, field, aggType, mustConditions, mustNotConditions

type HTTPClientProvider

type HTTPClientProvider struct {
	mock.Mock
}

HTTPClientProvider is an autogenerated mock type for the HTTPClientProvider type

func (*HTTPClientProvider) Request

func (_m *HTTPClientProvider) Request(url string, method string, header map[string]string, body []byte, params map[string]string) (int, []byte, error)

Request provides a mock function with given fields: url, method, header, body, params

func (*HTTPClientProvider) RequestCSV

func (_m *HTTPClientProvider) RequestCSV(url string) ([][]string, error)

RequestCSV provides a mock function with given fields: url

type SlackProvider

type SlackProvider struct {
	mock.Mock
}

SlackProvider is an autogenerated mock type for the SlackProvider type

func (*SlackProvider) SendText

func (_m *SlackProvider) SendText(text string) error

SendText provides a mock function with given fields: text

Jump to

Keyboard shortcuts

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