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: 0

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