Documentation ¶
Index ¶
- type Conn
- func (_m *Conn) CheckClaimKeyBan(_a0 string) (int, time.Duration, error)
- func (_m *Conn) ClaimKey(_a0 string, _a1 []byte, _a2 context.Context) ([]byte, error)
- func (_m *Conn) ClaimKeyFailure(_a0 string) (int, time.Duration, error)
- func (_m *Conn) ClaimKeySuccess(_a0 string) error
- func (_m *Conn) ClearDiagnosisKeys(_a0 context.Context) error
- func (_m *Conn) Close() error
- func (_m *Conn) CountClaimedOneTimeCodes() (int64, error)
- func (_m *Conn) CountDiagnosisKeys() (int64, error)
- func (_m *Conn) CountEncryptionKeys() (int64, error)
- func (_m *Conn) CountEvents() (int64, error)
- func (_m *Conn) CountExhaustedEncryptionKeysByOriginator() ([]persistence.CountByOriginator, error)
- func (_m *Conn) CountExpiredClaimedEncryptionKeysByOriginator() ([]persistence.CountByOriginator, error)
- func (_m *Conn) CountExpiredClaimedEncryptionKeysWithNoUploadsByOriginator() ([]persistence.CountByOriginator, error)
- func (_m *Conn) CountFailedKeyClaimAttempts() (int64, error)
- func (_m *Conn) CountTekUploadCount() (int64, error)
- func (_m *Conn) CountUnclaimedEncryptionKeysByOriginator() ([]persistence.CountByOriginator, error)
- func (_m *Conn) CountUnclaimedOneTimeCodes() (int64, error)
- func (_m *Conn) DeleteOldDiagnosisKeys() (int64, error)
- func (_m *Conn) DeleteOldEncryptionKeys() (int64, error)
- func (_m *Conn) DeleteOldFailedClaimKeyAttempts() (int64, error)
- func (_m *Conn) FetchKeysForHours(_a0 string, _a1 uint32, _a2 uint32, _a3 int32) ([]*covidshield.TemporaryExposureKey, error)
- func (_m *Conn) GetServerEvents(startDate string) ([]persistence.Events, error)
- func (_m *Conn) GetTEKUploads(startDate string) ([]persistence.Uploads, error)
- func (_m *Conn) NewKeyClaim(_a0 context.Context, _a1 string, _a2 string, _a3 string) (string, error)
- func (_m *Conn) PrivForPub(_a0 []byte) ([]byte, error)
- func (_m *Conn) SaveEvent(event persistence.Event) error
- func (_m *Conn) StoreKeys(_a0 *[32]byte, _a1 []*covidshield.TemporaryExposureKey, _a2 context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn is an autogenerated mock type for the Conn type
func (*Conn) CheckClaimKeyBan ¶
CheckClaimKeyBan provides a mock function with given fields: _a0
func (*Conn) ClaimKeyFailure ¶
ClaimKeyFailure provides a mock function with given fields: _a0
func (*Conn) ClaimKeySuccess ¶
ClaimKeySuccess provides a mock function with given fields: _a0
func (*Conn) ClearDiagnosisKeys ¶
ClearDiagnosisKeys provides a mock function with given fields: _a0
func (*Conn) CountClaimedOneTimeCodes ¶
CountClaimedOneTimeCodes provides a mock function with given fields:
func (*Conn) CountDiagnosisKeys ¶
CountDiagnosisKeys provides a mock function with given fields:
func (*Conn) CountEncryptionKeys ¶
func (*Conn) CountEvents ¶
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 (*Conn) CountTekUploadCount ¶
func (*Conn) CountUnclaimedEncryptionKeysByOriginator ¶
func (_m *Conn) CountUnclaimedEncryptionKeysByOriginator() ([]persistence.CountByOriginator, error)
CountUnclaimedEncryptionKeysByOriginator provides a mock function with given fields:
func (*Conn) CountUnclaimedOneTimeCodes ¶
CountUnclaimedOneTimeCodes provides a mock function with given fields:
func (*Conn) DeleteOldDiagnosisKeys ¶
DeleteOldDiagnosisKeys provides a mock function with given fields:
func (*Conn) DeleteOldEncryptionKeys ¶
DeleteOldEncryptionKeys provides a mock function with given fields:
func (*Conn) DeleteOldFailedClaimKeyAttempts ¶
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 ¶
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