Documentation ¶
Overview ¶
Package store defines the interface for seer data backends and provides implementations of them
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchData ¶
type MatchData struct {
Details *riot.MatchDetails `json:"details"`
}
MatchData is a container for details about a match
type Matches ¶
type Matches []MatchData
Matches is a collection of MatchData. It can be sorted so that the most recent games come first.
func (Matches) Len ¶
Less reports whether the element with index i should sort before the element with index j.
type Store ¶
type Store interface { Create(ctx context.Context, teamID string, team *Team) error Get(ctx context.Context, teamID string) (*Team, Matches, error) Add(ctx context.Context, teamID string, matches Matches) error }
Store defines the contract different storage backends for Seer should have
func NewGitHubStore ¶
func NewGitHubStore(ctx context.Context, l *zap.Logger, auth oauth2.TokenSource, repo config.GitHubStoreRepo) (Store, error)
NewGitHubStore instantiates a new Store backed by GitHub issues
Click to show internal directories.
Click to hide internal directories.