Documentation ¶
Overview ¶
Package store is a generated GoMock package.
Index ¶
- type BoosterStatus
- type ClaimStatus
- type Claimer
- type IStore
- type MockIStore
- func (m *MockIStore) AddClaimTransaction(testNetValAddr, txID string) error
- func (m *MockIStore) BoosterStatus() *BoosterStatus
- func (m *MockIStore) ClaimStatus() *ClaimStatus
- func (m *MockIStore) ClaimerInfo(testNetValAddr string) *Claimer
- func (m *MockIStore) EXPECT() *MockIStoreMockRecorder
- func (m *MockIStore) FindTwitterParty(twitterName string) *TwitterParty
- func (m *MockIStore) IsWhitelisted(twitterID string) bool
- func (m *MockIStore) SaveTwitterParty(party *TwitterParty) error
- func (m *MockIStore) WhitelistTwitterAccount(twitterID, twitterName, authorizedDiscordID string) error
- type MockIStoreMockRecorder
- func (mr *MockIStoreMockRecorder) AddClaimTransaction(testNetValAddr, txID any) *gomock.Call
- func (mr *MockIStoreMockRecorder) BoosterStatus() *gomock.Call
- func (mr *MockIStoreMockRecorder) ClaimStatus() *gomock.Call
- func (mr *MockIStoreMockRecorder) ClaimerInfo(testNetValAddr any) *gomock.Call
- func (mr *MockIStoreMockRecorder) FindTwitterParty(twitterName any) *gomock.Call
- func (mr *MockIStoreMockRecorder) IsWhitelisted(twitterID any) *gomock.Call
- func (mr *MockIStoreMockRecorder) SaveTwitterParty(party any) *gomock.Call
- func (mr *MockIStoreMockRecorder) WhitelistTwitterAccount(twitterID, twitterName, authorizedDiscordID any) *gomock.Call
- type Store
- func (s *Store) AddClaimTransaction(testnetAddr string, txID string) error
- func (s *Store) BoosterStatus() *BoosterStatus
- func (s *Store) ClaimStatus() *ClaimStatus
- func (s *Store) ClaimerInfo(testnetAddr string) *Claimer
- func (s *Store) FindTwitterParty(twitterName string) *TwitterParty
- func (s *Store) IsWhitelisted(twitterID string) bool
- func (s *Store) SaveTwitterParty(party *TwitterParty) error
- func (s *Store) WhitelistTwitterAccount(twitterID, twitterName, authorizedDiscordID string) error
- type TwitterParty
- type WhitelistInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoosterStatus ¶
type ClaimStatus ¶
type Claimer ¶
type IStore ¶
type IStore interface { ClaimerInfo(testNetValAddr string) *Claimer AddClaimTransaction(testNetValAddr string, txID string) error ClaimStatus() *ClaimStatus SaveTwitterParty(party *TwitterParty) error FindTwitterParty(twitterName string) *TwitterParty WhitelistTwitterAccount(twitterID, twitterName, authorizedDiscordID string) error IsWhitelisted(twitterID string) bool BoosterStatus() *BoosterStatus }
type MockIStore ¶
type MockIStore struct {
// contains filtered or unexported fields
}
MockIStore is a mock of IStore interface.
func NewMockIStore ¶
func NewMockIStore(ctrl *gomock.Controller) *MockIStore
NewMockIStore creates a new mock instance.
func (*MockIStore) AddClaimTransaction ¶
func (m *MockIStore) AddClaimTransaction(testNetValAddr, txID string) error
AddClaimTransaction mocks base method.
func (*MockIStore) BoosterStatus ¶
func (m *MockIStore) BoosterStatus() *BoosterStatus
BoosterStatus mocks base method.
func (*MockIStore) ClaimStatus ¶
func (m *MockIStore) ClaimStatus() *ClaimStatus
ClaimStatus mocks base method.
func (*MockIStore) ClaimerInfo ¶
func (m *MockIStore) ClaimerInfo(testNetValAddr string) *Claimer
ClaimerInfo mocks base method.
func (*MockIStore) EXPECT ¶
func (m *MockIStore) EXPECT() *MockIStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIStore) FindTwitterParty ¶
func (m *MockIStore) FindTwitterParty(twitterName string) *TwitterParty
FindTwitterParty mocks base method.
func (*MockIStore) IsWhitelisted ¶
func (m *MockIStore) IsWhitelisted(twitterID string) bool
IsWhitelisted mocks base method.
func (*MockIStore) SaveTwitterParty ¶
func (m *MockIStore) SaveTwitterParty(party *TwitterParty) error
SaveTwitterParty mocks base method.
func (*MockIStore) WhitelistTwitterAccount ¶
func (m *MockIStore) WhitelistTwitterAccount(twitterID, twitterName, authorizedDiscordID string) error
WhitelistTwitterAccount mocks base method.
type MockIStoreMockRecorder ¶
type MockIStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockIStoreMockRecorder is the mock recorder for MockIStore.
func (*MockIStoreMockRecorder) AddClaimTransaction ¶
func (mr *MockIStoreMockRecorder) AddClaimTransaction(testNetValAddr, txID any) *gomock.Call
AddClaimTransaction indicates an expected call of AddClaimTransaction.
func (*MockIStoreMockRecorder) BoosterStatus ¶
func (mr *MockIStoreMockRecorder) BoosterStatus() *gomock.Call
BoosterStatus indicates an expected call of BoosterStatus.
func (*MockIStoreMockRecorder) ClaimStatus ¶
func (mr *MockIStoreMockRecorder) ClaimStatus() *gomock.Call
ClaimStatus indicates an expected call of ClaimStatus.
func (*MockIStoreMockRecorder) ClaimerInfo ¶
func (mr *MockIStoreMockRecorder) ClaimerInfo(testNetValAddr any) *gomock.Call
ClaimerInfo indicates an expected call of ClaimerInfo.
func (*MockIStoreMockRecorder) FindTwitterParty ¶
func (mr *MockIStoreMockRecorder) FindTwitterParty(twitterName any) *gomock.Call
FindTwitterParty indicates an expected call of FindTwitterParty.
func (*MockIStoreMockRecorder) IsWhitelisted ¶
func (mr *MockIStoreMockRecorder) IsWhitelisted(twitterID any) *gomock.Call
IsWhitelisted indicates an expected call of IsWhitelisted.
func (*MockIStoreMockRecorder) SaveTwitterParty ¶
func (mr *MockIStoreMockRecorder) SaveTwitterParty(party any) *gomock.Call
SaveTwitterParty indicates an expected call of SaveTwitterParty.
func (*MockIStoreMockRecorder) WhitelistTwitterAccount ¶
func (mr *MockIStoreMockRecorder) WhitelistTwitterAccount(twitterID, twitterName, authorizedDiscordID any) *gomock.Call
WhitelistTwitterAccount indicates an expected call of WhitelistTwitterAccount.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a thread-safe cache.
func (*Store) AddClaimTransaction ¶
func (*Store) BoosterStatus ¶
func (s *Store) BoosterStatus() *BoosterStatus
func (*Store) ClaimStatus ¶
func (s *Store) ClaimStatus() *ClaimStatus
func (*Store) ClaimerInfo ¶
func (*Store) FindTwitterParty ¶
func (s *Store) FindTwitterParty(twitterName string) *TwitterParty
func (*Store) IsWhitelisted ¶
func (*Store) SaveTwitterParty ¶
func (s *Store) SaveTwitterParty(party *TwitterParty) error
func (*Store) WhitelistTwitterAccount ¶
type TwitterParty ¶
type TwitterParty struct { TwitterID string `json:"twitter_id"` TwitterName string `json:"twitter_name"` RetweetID string `json:"retweet_id"` ValAddr string `json:"val_addr"` ValPubKey string `json:"val_pub"` DiscordID string `json:"discord_id"` DiscountCode string `json:"discount_code"` TotalPrice int `json:"total_price"` AmountInPAC int64 `json:"amount_in_pac"` CreatedAt int64 `json:"created_at"` NowPaymentsInvoiceID string `json:"nowpayments_id"` NowPaymentsFinished bool `json:"nowpayments_finished"` TransactionID string `json:"tx_id"` }