Skip to content

Commit

Permalink
Update dependencies and switch to using Uber's Go mock library
Browse files Browse the repository at this point in the history
This commit updates all dependencies to their latest stable versions, in order to incorporate any recent bug fixes or improvements. It also switches from using golang's mock library to Uber's gomock library in service test files. Finally, minor changes in README.md are made to improve the structure and readability.
  • Loading branch information
rayyildiz committed Feb 1, 2024
1 parent ad81278 commit 3c19ee2
Show file tree
Hide file tree
Showing 25 changed files with 165 additions and 120 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# CaptureTweet

![Build status](https://github.com/rayyildiz/capture-tweet/workflows/build/badge.svg)
![Build status](https://github.com/rayyildiz/capture-tweet/workflows/pull-request/badge.svg)
[![build](https://github.com/rayyildiz/capture-tweet/actions/workflows/ci.yml/badge.svg)](https://github.com/rayyildiz/capture-tweet/actions/workflows/ci.yml)
[![pull-request](https://github.com/rayyildiz/capture-tweet/actions/workflows/pr.yml/badge.svg)](https://github.com/rayyildiz/capture-tweet/actions/workflows/pr.yml)
[![Security Scan](https://github.com/rayyildiz/capture-tweet/actions/workflows/security_scan.yml/badge.svg)](https://github.com/rayyildiz/capture-tweet/actions/workflows/security_scan.yml)

I am going to close capturetweet on 31.12.2023, which I started at Starbucks to try [cloud run](https://cloud.google.com/run) features,
in accordance with [Twitter's pricing policy](https://www.engadget.com/twitter-announces-new-api-pricing-including-a-limited-free-tier-for-bots-005251253.html).
Expand Down Expand Up @@ -35,14 +36,14 @@ ALGOLIA_INDEX=tweets-LOCAL

## RoadMap

- [x] Create skeleton project
- [x] Create a skeleton project
- [x] Add graphql support.
- [x] Tweet Service
- [x] CRUD for tweet service
- [x] Use algolia for search
- [x] Store user additional data in a different collection.
- [x] Async capture
- [x] Pubsub support
- [x] PubSub support
- [x] Capture and update collection
- [x] New UI design
- [x] Apollo client support
Expand Down
2 changes: 1 addition & 1 deletion api/service.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:generate go run github.com/golang/mock/mockgen -package=api -self_package=capturetweet.com/api -destination=service_mock.go . UserService,TweetService,SearchService,BrowserService,ContentService
//go:generate go run go.uber.org/mock/mockgen@latest -package=api -self_package=capturetweet.com/api -destination=service_mock.go . UserService,TweetService,SearchService,BrowserService,ContentService
package api

import (
Expand Down
35 changes: 20 additions & 15 deletions api/service_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 17 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ module capturetweet.com
go 1.21

require (
github.com/99designs/gqlgen v0.17.40
github.com/99designs/gqlgen v0.17.43
github.com/ChimeraCoder/anaconda v2.0.0+incompatible
github.com/TheZeroSlave/zapsentry v1.19.0
github.com/TheZeroSlave/zapsentry v1.20.2
github.com/algolia/algoliasearch-client-go/v3 v3.31.0
github.com/chromedp/cdproto v0.0.0-20231011050154-1d073bb38998
github.com/chromedp/cdproto v0.0.0-20240127002248-bd7a66284627
github.com/chromedp/chromedp v0.9.3
github.com/docker/go-connections v0.4.0
github.com/getsentry/sentry-go v0.25.0
github.com/golang/mock v1.6.0
github.com/getsentry/sentry-go v0.26.0
github.com/google/uuid v1.6.0
github.com/google/wire v0.5.0
github.com/joho/godotenv v1.5.1
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
github.com/rs/cors v1.10.1
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/vektah/gqlparser/v2 v2.5.10
github.com/vektah/gqlparser/v2 v2.5.11
go.uber.org/goleak v1.3.0
go.uber.org/mock v0.4.0
go.uber.org/zap v1.26.0
gocloud.dev v0.36.0
)
Expand Down Expand Up @@ -58,7 +58,7 @@ require (
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/gobwas/httphead v0.1.0 // indirect
github.com/gobwas/pool v0.2.1 // indirect
github.com/gobwas/ws v1.3.0 // indirect
github.com/gobwas/ws v1.3.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
Expand Down Expand Up @@ -89,23 +89,24 @@ require (
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/sosodev/duration v1.2.0 // indirect
github.com/stretchr/objx v0.5.1 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/urfave/cli/v2 v2.25.7 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/urfave/cli/v2 v2.27.1 // indirect
github.com/xrash/smetrics v0.0.0-20231213231151-1d8dd44e695e // indirect
github.com/yusufpapurcu/wmi v1.2.3 // indirect
go.opencensus.io v0.24.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/exp v0.0.0-20231108232855-2478ac86f678 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/oauth2 v0.14.0 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.4.0 // indirect
golang.org/x/tools v0.15.0 // indirect
golang.org/x/tools v0.17.0 // indirect
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
google.golang.org/api v0.151.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
Expand All @@ -116,3 +117,5 @@ require (
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

// toolchain go1.21.4
Loading

0 comments on commit 3c19ee2

Please sign in to comment.