Documentation ¶
Index ¶
- type Store
- type StoreDatabase
- func (s *StoreDatabase) BlockUser(ctxCtx context.Context, userToBlock, blockedBy auth.User) error
- func (s *StoreDatabase) LoadUsersBlockedBy(ctxCtx context.Context, user auth.User) ([]string, error)
- func (s *StoreDatabase) UnblockUser(ctxCtx context.Context, blockID string, blockedBy auth.User) (auth.User, error)
- func (s *StoreDatabase) UnblockUserByAddress(ctxCtx context.Context, address string, blockedBy auth.User) (auth.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { LoadUsersBlockedBy(context.Context, auth.User) ([]string, error) BlockUser(ctx context.Context, userToBlock, blockedBy auth.User) error UnblockUser(ctx context.Context, blockID string, blockedBy auth.User) (auth.User, error) UnblockUserByAddress(ctx context.Context, address string, blockedBy auth.User) (auth.User, error) }
type StoreDatabase ¶
type StoreDatabase struct{}
StoreDatabase stores blocked users in the database
func NewStoreDatabase ¶
func NewStoreDatabase() *StoreDatabase
NewStoreDatabase initializes and returns a new StoreDatabase
func (*StoreDatabase) LoadUsersBlockedBy ¶
func (*StoreDatabase) UnblockUser ¶
Click to show internal directories.
Click to hide internal directories.