store

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store is handling the data we fetch from the providers APIs in order to not overwhelm them and also reduce the risk to get rate-limited TODO: Convert it to an interface in order to other storage providers than in-memory

func (*Store) GetRepositories

func (s *Store) GetRepositories() providers.Repositories

GetRepositories ..

func (*Store) GetRepositoriesLastUpdate

func (s *Store) GetRepositoriesLastUpdate() time.Time

GetRepositoriesLastUpdate ..

func (*Store) GetRepository

func (s *Store) GetRepository(rk providers.RepositoryKey) (r providers.Repository, found bool)

GetRepository ..

func (*Store) GetSlackUsersEmails

func (s *Store) GetSlackUsersEmails() map[string]string

GetSlackUsersEmails ..

func (*Store) GetSlackUsersEmailsLastUpdate

func (s *Store) GetSlackUsersEmailsLastUpdate() time.Time

GetSlackUsersEmailsLastUpdate ..

func (*Store) UpdateRepositories

func (s *Store) UpdateRepositories(repos providers.Repositories)

UpdateRepositories ..

func (*Store) UpdateRepository

func (s *Store) UpdateRepository(r providers.Repository)

UpdateRepository ..

func (*Store) UpdateSlackUsersEmails

func (s *Store) UpdateSlackUsersEmails(sue map[string]string)

UpdateSlackUsersEmails ..

Jump to

Keyboard shortcuts

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