Skip to content

Commit

Permalink
feat: rename to lcp-2
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Jan 8, 2025
1 parent 96e733d commit 5d95f50
Show file tree
Hide file tree
Showing 19 changed files with 41 additions and 41 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
- uses: actions/checkout@v4
- run: |
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u gleich --password-stdin
docker build -t ghcr.io/gleich/lcp-v2 .
docker push ghcr.io/gleich/lcp-v2
docker build -t ghcr.io/gleich/lcp-2 .
docker push ghcr.io/gleich/lcp-2
- uses: caprover/[email protected]
with:
server: https://dev.mattglei.ch
app: lcp
token: '${{ secrets.CAPROVER_APP_TOKEN }}'
image: ghcr.io/gleich/lcp-v2
image: ghcr.io/gleich/lcp-2
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# [lcp-v2](https://mattglei.ch/lcp)
# [lcp-2](https://mattglei.ch/lcp)

[![build](https://github.com/gleich/lcp-v2/actions/workflows/build.yml/badge.svg)](https://github.com/gleich/lcp-v2/actions/workflows/build.yml)
[![deploy](https://github.com/gleich/lcp-v2/actions/workflows/deploy.yml/badge.svg)](https://github.com/gleich/lcp-v2/actions/workflows/deploy.yml)
[![lint](https://github.com/gleich/lcp-v2/actions/workflows/lint.yml/badge.svg)](https://github.com/gleich/lcp-v2/actions/workflows/lint.yml)
[![report card](https://goreportcard.com/badge/github.com/gleich/lcp-v2)](https://goreportcard.com/report/github.com/gleich/lcp-v2)
[![build](https://github.com/gleich/lcp-2/actions/workflows/build.yml/badge.svg)](https://github.com/gleich/lcp-2/actions/workflows/build.yml)
[![deploy](https://github.com/gleich/lcp-2/actions/workflows/deploy.yml/badge.svg)](https://github.com/gleich/lcp-2/actions/workflows/deploy.yml)
[![lint](https://github.com/gleich/lcp-2/actions/workflows/lint.yml/badge.svg)](https://github.com/gleich/lcp-2/actions/workflows/lint.yml)
[![report card](https://goreportcard.com/badge/github.com/gleich/lcp-2)](https://goreportcard.com/report/github.com/gleich/lcp-2)

Lightweight Cache Proxy Service. Powers [mattglei.ch](https://mattglei.ch). Checkout V1 written in rust: [gleich/lcp](https://github.com/gleich/lcp)
10 changes: 5 additions & 5 deletions cmd/lcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"time"

"github.com/gleich/lumber/v3"
"pkg.mattglei.ch/lcp-v2/internal/apis/applemusic"
"pkg.mattglei.ch/lcp-v2/internal/apis/github"
"pkg.mattglei.ch/lcp-v2/internal/apis/steam"
"pkg.mattglei.ch/lcp-v2/internal/apis/strava"
"pkg.mattglei.ch/lcp-v2/internal/secrets"
"pkg.mattglei.ch/lcp-2/internal/apis/applemusic"
"pkg.mattglei.ch/lcp-2/internal/apis/github"
"pkg.mattglei.ch/lcp-2/internal/apis/steam"
"pkg.mattglei.ch/lcp-2/internal/apis/strava"
"pkg.mattglei.ch/lcp-2/internal/secrets"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module pkg.mattglei.ch/lcp-v2
module pkg.mattglei.ch/lcp-2

go 1.23

Expand Down
4 changes: 2 additions & 2 deletions internal/apis/applemusic/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"

"github.com/gleich/lumber/v3"
"pkg.mattglei.ch/lcp-v2/internal/apis"
"pkg.mattglei.ch/lcp-v2/internal/secrets"
"pkg.mattglei.ch/lcp-2/internal/apis"
"pkg.mattglei.ch/lcp-2/internal/secrets"
)

func sendAppleMusicAPIRequest[T any](path string) (T, error) {
Expand Down
4 changes: 2 additions & 2 deletions internal/apis/applemusic/applemusic.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"time"

"github.com/gleich/lumber/v3"
"pkg.mattglei.ch/lcp-v2/internal/auth"
"pkg.mattglei.ch/lcp-v2/internal/cache"
"pkg.mattglei.ch/lcp-2/internal/auth"
"pkg.mattglei.ch/lcp-2/internal/cache"
)

const API_ENDPOINT = "https://api.music.apple.com/"
Expand Down
6 changes: 3 additions & 3 deletions internal/apis/applemusic/playlists.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"time"

"github.com/gleich/lumber/v3"
"pkg.mattglei.ch/lcp-v2/internal/apis"
"pkg.mattglei.ch/lcp-v2/internal/auth"
"pkg.mattglei.ch/lcp-v2/internal/cache"
"pkg.mattglei.ch/lcp-2/internal/apis"
"pkg.mattglei.ch/lcp-2/internal/auth"
"pkg.mattglei.ch/lcp-2/internal/cache"
)

type playlistSummary struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/apis/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/gleich/lumber/v3"
"github.com/shurcooL/githubv4"
"golang.org/x/oauth2"
"pkg.mattglei.ch/lcp-v2/internal/cache"
"pkg.mattglei.ch/lcp-v2/internal/secrets"
"pkg.mattglei.ch/lcp-2/internal/cache"
"pkg.mattglei.ch/lcp-2/internal/secrets"
)

func Setup(mux *http.ServeMux) {
Expand Down
4 changes: 2 additions & 2 deletions internal/apis/steam/achievements.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"time"

"github.com/gleich/lumber/v3"
"pkg.mattglei.ch/lcp-v2/internal/apis"
"pkg.mattglei.ch/lcp-v2/internal/secrets"
"pkg.mattglei.ch/lcp-2/internal/apis"
"pkg.mattglei.ch/lcp-2/internal/secrets"
)

type playerAchievementsResponse struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/apis/steam/games.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"time"

"github.com/gleich/lumber/v3"
"pkg.mattglei.ch/lcp-v2/internal/apis"
"pkg.mattglei.ch/lcp-v2/internal/secrets"
"pkg.mattglei.ch/lcp-2/internal/apis"
"pkg.mattglei.ch/lcp-2/internal/secrets"
)

type ownedGamesResponse struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/apis/steam/steam.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"

"github.com/gleich/lumber/v3"
"pkg.mattglei.ch/lcp-v2/internal/cache"
"pkg.mattglei.ch/lcp-2/internal/cache"
)

func Setup(mux *http.ServeMux) {
Expand Down
2 changes: 1 addition & 1 deletion internal/apis/strava/activities.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/gleich/lumber/v3"
"github.com/minio/minio-go/v7"
"pkg.mattglei.ch/lcp-v2/internal/images"
"pkg.mattglei.ch/lcp-2/internal/images"
)

type stravaActivity struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/apis/strava/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"

"github.com/gleich/lumber/v3"
"pkg.mattglei.ch/lcp-v2/internal/apis"
"pkg.mattglei.ch/lcp-2/internal/apis"
)

func sendStravaAPIRequest[T any](path string, tokens tokens) (T, error) {
Expand Down
4 changes: 2 additions & 2 deletions internal/apis/strava/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/gleich/lumber/v3"
"github.com/minio/minio-go/v7"
"pkg.mattglei.ch/lcp-v2/internal/cache"
"pkg.mattglei.ch/lcp-v2/internal/secrets"
"pkg.mattglei.ch/lcp-2/internal/cache"
"pkg.mattglei.ch/lcp-2/internal/secrets"
)

type event struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/apis/strava/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/gleich/lumber/v3"
"github.com/minio/minio-go/v7"
"pkg.mattglei.ch/lcp-v2/internal/secrets"
"pkg.mattglei.ch/lcp-2/internal/secrets"
)

const bucketName = "mapbox-maps"
Expand Down
4 changes: 2 additions & 2 deletions internal/apis/strava/strava.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/gleich/lumber/v3"
"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
"pkg.mattglei.ch/lcp-v2/internal/cache"
"pkg.mattglei.ch/lcp-v2/internal/secrets"
"pkg.mattglei.ch/lcp-2/internal/cache"
"pkg.mattglei.ch/lcp-2/internal/secrets"
)

func Setup(mux *http.ServeMux) {
Expand Down
4 changes: 2 additions & 2 deletions internal/apis/strava/tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"time"

"github.com/gleich/lumber/v3"
"pkg.mattglei.ch/lcp-v2/internal/apis"
"pkg.mattglei.ch/lcp-v2/internal/secrets"
"pkg.mattglei.ch/lcp-2/internal/apis"
"pkg.mattglei.ch/lcp-2/internal/secrets"
)

type tokens struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/auth/bearer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/http"

"pkg.mattglei.ch/lcp-v2/internal/secrets"
"pkg.mattglei.ch/lcp-2/internal/secrets"
)

func IsAuthorized(w http.ResponseWriter, r *http.Request) bool {
Expand Down
6 changes: 3 additions & 3 deletions internal/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"time"

"github.com/gleich/lumber/v3"
"pkg.mattglei.ch/lcp-v2/internal/apis"
"pkg.mattglei.ch/lcp-v2/internal/auth"
"pkg.mattglei.ch/lcp-v2/internal/secrets"
"pkg.mattglei.ch/lcp-2/internal/apis"
"pkg.mattglei.ch/lcp-2/internal/auth"
"pkg.mattglei.ch/lcp-2/internal/secrets"
)

type Cache[T any] struct {
Expand Down

0 comments on commit 5d95f50

Please sign in to comment.