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: 0

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 Auth0ClientProvider

type Auth0ClientProvider struct {
	mock.Mock
}

Auth0ClientProvider is an autogenerated mock type for the Auth0ClientProvider type

func (*Auth0ClientProvider) GetToken

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

GetToken provides a mock function with given fields:

type AuthClientProvider

type AuthClientProvider struct {
	mock.Mock
}

AuthClientProvider is an autogenerated mock type for the AuthClientProvider type

func (*AuthClientProvider) GetToken

func (_m *AuthClientProvider) GetToken(env string) (string, error)

GetToken provides a mock function with given fields: env

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

Jump to

Keyboard shortcuts

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