Skip to content

Commit

Permalink
context option for revalidating cache, running betteralign again
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyagara committed May 7, 2024
1 parent f70825d commit 0fc4841
Show file tree
Hide file tree
Showing 6 changed files with 524 additions and 515 deletions.
8 changes: 8 additions & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ const (
RIOT_API_BASE_URL_FORMAT = ".api.riotgames.com"
)

// Options to be used when executing requests.
type ExecuteOptions bool

const (
// Skips checking the cache then updates the cache with new data.
Revalidate ExecuteOptions = true
)

// Contains the *http.Request to the Riot API and all necessary information about it.
type EquinoxRequest struct {
Logger zerolog.Logger
Expand Down
686 changes: 343 additions & 343 deletions clients/lol/models.go

Large diffs are not rendered by default.

Loading

0 comments on commit 0fc4841

Please sign in to comment.