Documentation ¶
Index ¶
- type MemoryStore
- func (s *MemoryStore) GetReviewers() ([]types.PullRequestReviewer, error)
- func (s *MemoryStore) IncrementPullRequestApproved(author string) error
- func (s *MemoryStore) IncrementPullRequestClosed(author string) error
- func (s *MemoryStore) IncrementPullRequestComment(author string) error
- func (s *MemoryStore) IncrementPullRequestOpened(author string) error
- func (s *MemoryStore) ResetCounters() error
- type RedisStore
- func (s *RedisStore) GetReviewers() ([]types.PullRequestReviewer, error)
- func (s *RedisStore) IncrementPullRequestApproved(author string) error
- func (s *RedisStore) IncrementPullRequestClosed(author string) error
- func (s *RedisStore) IncrementPullRequestComment(author string) error
- func (s *RedisStore) IncrementPullRequestOpened(author string) error
- func (s *RedisStore) ResetCounters() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
MemoryStore stores data in memory
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
NewMemoryStore creates a new memory store instance
func (*MemoryStore) GetReviewers ¶
func (s *MemoryStore) GetReviewers() ([]types.PullRequestReviewer, error)
func (*MemoryStore) IncrementPullRequestApproved ¶
func (s *MemoryStore) IncrementPullRequestApproved(author string) error
func (*MemoryStore) IncrementPullRequestClosed ¶
func (s *MemoryStore) IncrementPullRequestClosed(author string) error
func (*MemoryStore) IncrementPullRequestComment ¶
func (s *MemoryStore) IncrementPullRequestComment(author string) error
func (*MemoryStore) IncrementPullRequestOpened ¶
func (s *MemoryStore) IncrementPullRequestOpened(author string) error
func (*MemoryStore) ResetCounters ¶
func (s *MemoryStore) ResetCounters() error
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func NewRedisStore ¶
func NewRedisStore(addr, password string) (*RedisStore, error)
func (*RedisStore) GetReviewers ¶
func (s *RedisStore) GetReviewers() ([]types.PullRequestReviewer, error)
func (*RedisStore) IncrementPullRequestApproved ¶
func (s *RedisStore) IncrementPullRequestApproved(author string) error
func (*RedisStore) IncrementPullRequestClosed ¶
func (s *RedisStore) IncrementPullRequestClosed(author string) error
func (*RedisStore) IncrementPullRequestComment ¶
func (s *RedisStore) IncrementPullRequestComment(author string) error
func (*RedisStore) IncrementPullRequestOpened ¶
func (s *RedisStore) IncrementPullRequestOpened(author string) error
func (*RedisStore) ResetCounters ¶
func (s *RedisStore) ResetCounters() error
Click to show internal directories.
Click to hide internal directories.