Documentation ¶
Index ¶
- type AddressActivityMarker
- type Manager
- func (s *Manager) ActivelyModerating() []auth.User
- func (s *Manager) IsActivelyModerating(staffMember auth.User) bool
- func (s *Manager) MarkAsActive(ctx context.Context, staffMember auth.User)
- func (s *Manager) MarkAsActivityChallenged(ctx context.Context, staffMember auth.User, tolerance time.Duration)
- func (s *Manager) MarkAsInactive(ctx context.Context, staffMember auth.User)
- func (s *Manager) MarkAsStillActive(staffMember auth.User)
- func (s *Manager) SetAddressActivityMarker(r AddressActivityMarker)
- func (s *Manager) StatsWorker(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressActivityMarker ¶
type AddressActivityMarker interface {
MarkAddressAsActiveEvenIfChallenged(ctx context.Context, address string) error
}
AddressActivityMarker represents a component that can mark addresses as actively participating
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager keeps track of what staff members are presently active in order to inform the rest of the staff
func (*Manager) ActivelyModerating ¶
ActivelyModerating returns the list of actively moderating staff members
func (*Manager) IsActivelyModerating ¶
IsActivelyModerating returns whether the specified staff member is currently active
func (*Manager) MarkAsActive ¶
MarkAsActive marks the specified staff member as active
func (*Manager) MarkAsActivityChallenged ¶
func (s *Manager) MarkAsActivityChallenged(ctx context.Context, staffMember auth.User, tolerance time.Duration)
MarkAsActivityChallenged marks the specified staff member as having been challenged for activity with the specified challenge response timeout
func (*Manager) MarkAsInactive ¶
MarkAsActive marks the specified staff member as inactive
func (*Manager) MarkAsStillActive ¶
MarkAsStillActive clears the activity challenged status of the specified staff member, if they are actively moderating
func (*Manager) SetAddressActivityMarker ¶
func (s *Manager) SetAddressActivityMarker(r AddressActivityMarker)