Documentation ¶
Index ¶
- type RedisCache
- func (cache *RedisCache) CreateContributions(ctx context.Context, login domain.Login, item domain.Contributions) error
- func (cache *RedisCache) CreateContributors(ctx context.Context, owner domain.Owner, repo domain.Repo, ...) error
- func (cache *RedisCache) CreateInfo(ctx context.Context, owner domain.Owner, repo domain.Repo, ...) error
- func (cache *RedisCache) CreateReadMe(ctx context.Context, owner domain.Owner, repo domain.Repo, ...) error
- func (cache *RedisCache) ListContributions(ctx context.Context) (items []domain.Contributions, err error)
- func (cache *RedisCache) ListContributors(ctx context.Context) (items []domain.RepoContributors, err error)
- func (cache *RedisCache) ListInfo(ctx context.Context) (items []domain.Contribution, err error)
- func (cache *RedisCache) ListReadMe(ctx context.Context) (items []domain.ReadMe, err error)
- func (cache *RedisCache) ReadContributions(ctx context.Context, login domain.Login, numContributions int32) (item domain.Contributions, err error)
- func (cache *RedisCache) ReadContributors(ctx context.Context, owner domain.Owner, repo domain.Repo, topN int32) (item domain.RepoContributors, err error)
- func (cache *RedisCache) ReadInfo(ctx context.Context, owner domain.Owner, repo domain.Repo) (item domain.Contribution, err error)
- func (cache *RedisCache) ReadReadMe(ctx context.Context, owner domain.Owner, repo domain.Repo, ...) (item domain.ReadMe, err error)
- func (cache *RedisCache) UpdateContributions(ctx context.Context, login domain.Login, item domain.Contributions) error
- func (cache *RedisCache) UpdateContributors(ctx context.Context, owner domain.Owner, repo domain.Repo, ...) error
- func (cache *RedisCache) UpdateInfo(ctx context.Context, owner domain.Owner, repo domain.Repo, ...) error
- func (cache *RedisCache) UpdateReadMe(ctx context.Context, owner domain.Owner, repo domain.Repo, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisCache ¶
type RedisCache struct { Client *redis.Client // contains filtered or unexported fields }
func NewRedisCache ¶
func NewRedisCache(addr string, user string, pass string, DB int) *RedisCache
func (*RedisCache) CreateContributions ¶
func (cache *RedisCache) CreateContributions(ctx context.Context, login domain.Login, item domain.Contributions) error
func (*RedisCache) CreateContributors ¶
func (cache *RedisCache) CreateContributors(ctx context.Context, owner domain.Owner, repo domain.Repo, item domain.RepoContributors) error
func (*RedisCache) CreateInfo ¶
func (cache *RedisCache) CreateInfo(ctx context.Context, owner domain.Owner, repo domain.Repo, item domain.Contribution) error
func (*RedisCache) CreateReadMe ¶
func (*RedisCache) ListContributions ¶
func (cache *RedisCache) ListContributions(ctx context.Context) (items []domain.Contributions, err error)
func (*RedisCache) ListContributors ¶
func (cache *RedisCache) ListContributors(ctx context.Context) (items []domain.RepoContributors, err error)
func (*RedisCache) ListInfo ¶
func (cache *RedisCache) ListInfo(ctx context.Context) (items []domain.Contribution, err error)
func (*RedisCache) ListReadMe ¶
func (*RedisCache) ReadContributions ¶
func (cache *RedisCache) ReadContributions(ctx context.Context, login domain.Login, numContributions int32) (item domain.Contributions, err error)
func (*RedisCache) ReadContributors ¶
func (*RedisCache) ReadInfo ¶
func (cache *RedisCache) ReadInfo(ctx context.Context, owner domain.Owner, repo domain.Repo) (item domain.Contribution, err error)
func (*RedisCache) ReadReadMe ¶
func (*RedisCache) UpdateContributions ¶
func (cache *RedisCache) UpdateContributions(ctx context.Context, login domain.Login, item domain.Contributions) error
func (*RedisCache) UpdateContributors ¶
func (cache *RedisCache) UpdateContributors(ctx context.Context, owner domain.Owner, repo domain.Repo, item domain.RepoContributors) error
func (*RedisCache) UpdateInfo ¶
func (cache *RedisCache) UpdateInfo(ctx context.Context, owner domain.Owner, repo domain.Repo, item domain.Contribution) error
Click to show internal directories.
Click to hide internal directories.