mocks

package
v0.0.0-...-d0495e5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	mock.Mock
}

Conn is an autogenerated mock type for the Conn type

func (*Conn) CheckClaimKeyBan

func (_m *Conn) CheckClaimKeyBan(_a0 string) (int, time.Duration, error)

CheckClaimKeyBan provides a mock function with given fields: _a0

func (*Conn) ClaimKey

func (_m *Conn) ClaimKey(_a0 string, _a1 []byte, _a2 context.Context) ([]byte, error)

ClaimKey provides a mock function with given fields: _a0, _a1, _a2

func (*Conn) ClaimKeyFailure

func (_m *Conn) ClaimKeyFailure(_a0 string) (int, time.Duration, error)

ClaimKeyFailure provides a mock function with given fields: _a0

func (*Conn) ClaimKeySuccess

func (_m *Conn) ClaimKeySuccess(_a0 string) error

ClaimKeySuccess provides a mock function with given fields: _a0

func (*Conn) ClearDiagnosisKeys

func (_m *Conn) ClearDiagnosisKeys(_a0 context.Context) error

ClearDiagnosisKeys provides a mock function with given fields: _a0

func (*Conn) Close

func (_m *Conn) Close() error

Close provides a mock function with given fields:

func (*Conn) CountClaimedOneTimeCodes

func (_m *Conn) CountClaimedOneTimeCodes() (int64, error)

CountClaimedOneTimeCodes provides a mock function with given fields:

func (*Conn) CountDiagnosisKeys

func (_m *Conn) CountDiagnosisKeys() (int64, error)

CountDiagnosisKeys provides a mock function with given fields:

func (*Conn) CountEncryptionKeys

func (_m *Conn) CountEncryptionKeys() (int64, error)

func (*Conn) CountEvents

func (_m *Conn) CountEvents() (int64, error)

func (*Conn) CountExhaustedEncryptionKeysByOriginator

func (_m *Conn) CountExhaustedEncryptionKeysByOriginator() ([]persistence.CountByOriginator, error)

CountExhaustedEncryptionKeysByOriginator provides a mock function with given fields:

func (*Conn) CountExpiredClaimedEncryptionKeysByOriginator

func (_m *Conn) CountExpiredClaimedEncryptionKeysByOriginator() ([]persistence.CountByOriginator, error)

CountExpiredClaimedEncryptionKeysByOriginator provides a mock function with given fields:

func (*Conn) CountExpiredClaimedEncryptionKeysWithNoUploadsByOriginator

func (_m *Conn) CountExpiredClaimedEncryptionKeysWithNoUploadsByOriginator() ([]persistence.CountByOriginator, error)

CountExpiredClaimedEncryptionKeysWithNoUploadsByOriginator provides a mock function with given fields:

func (*Conn) CountFailedKeyClaimAttempts

func (_m *Conn) CountFailedKeyClaimAttempts() (int64, error)

func (*Conn) CountTekUploadCount

func (_m *Conn) CountTekUploadCount() (int64, error)

func (*Conn) CountUnclaimedEncryptionKeysByOriginator

func (_m *Conn) CountUnclaimedEncryptionKeysByOriginator() ([]persistence.CountByOriginator, error)

CountUnclaimedEncryptionKeysByOriginator provides a mock function with given fields:

func (*Conn) CountUnclaimedOneTimeCodes

func (_m *Conn) CountUnclaimedOneTimeCodes() (int64, error)

CountUnclaimedOneTimeCodes provides a mock function with given fields:

func (*Conn) DeleteOldDiagnosisKeys

func (_m *Conn) DeleteOldDiagnosisKeys() (int64, error)

DeleteOldDiagnosisKeys provides a mock function with given fields:

func (*Conn) DeleteOldEncryptionKeys

func (_m *Conn) DeleteOldEncryptionKeys() (int64, error)

DeleteOldEncryptionKeys provides a mock function with given fields:

func (*Conn) DeleteOldFailedClaimKeyAttempts

func (_m *Conn) DeleteOldFailedClaimKeyAttempts() (int64, error)

DeleteOldFailedClaimKeyAttempts provides a mock function with given fields:

func (*Conn) FetchKeysForHours

func (_m *Conn) FetchKeysForHours(_a0 string, _a1 uint32, _a2 uint32, _a3 int32) ([]*covidshield.TemporaryExposureKey, error)

FetchKeysForHours provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Conn) GetServerEvents

func (_m *Conn) GetServerEvents(startDate string) ([]persistence.Events, error)

GetServerEvents provides a mock function with given fields: startDate

func (*Conn) GetTEKUploads

func (_m *Conn) GetTEKUploads(startDate string) ([]persistence.Uploads, error)

GetTEKUploads provides a mock function with given fields: startDate

func (*Conn) NewKeyClaim

func (_m *Conn) NewKeyClaim(_a0 context.Context, _a1 string, _a2 string, _a3 string) (string, error)

NewKeyClaim provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Conn) PrivForPub

func (_m *Conn) PrivForPub(_a0 []byte) ([]byte, error)

PrivForPub provides a mock function with given fields: _a0

func (*Conn) SaveEvent

func (_m *Conn) SaveEvent(event persistence.Event) error

SaveEvent provides a mock function with given fields: event

func (*Conn) StoreKeys

func (_m *Conn) StoreKeys(_a0 *[32]byte, _a1 []*covidshield.TemporaryExposureKey, _a2 context.Context) error

StoreKeys provides a mock function with given fields: _a0, _a1, _a2

Jump to

Keyboard shortcuts

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