db

package
v0.0.0-...-37718a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL