Skip to content

Commit

Permalink
simplify get and docker
Browse files Browse the repository at this point in the history
  • Loading branch information
icco committed Sep 14, 2024
1 parent adf7409 commit 3e8c7a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ ENV GOPROXY="https://proxy.golang.org"
ENV GO111MODULE="on"
ENV NAT_ENV="production"

ENV PROJECT_ID="icco-cloud"
ENV DATASET="reportd"

ENV ANALYTICS_TABLE="analytics"
ENV REPORTS_TABLE="reports"

EXPOSE 8080

Expand Down
4 changes: 2 additions & 2 deletions lib/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ func WriteAnalyticsToBigQuery(ctx context.Context, project, dataset, table strin
return nil
}

func GetAnalytics(ctx context.Context, project, dataset, table string) error {
return fmt.Errorf("not implemented")
func GetAnalytics(ctx context.Context, project, dataset, table string) ([]*WebVital, error) {
return nil, fmt.Errorf("not implemented")
}
4 changes: 2 additions & 2 deletions lib/reports.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,6 @@ func WriteReportToBigQuery(ctx context.Context, project, dataset, table string,
return nil
}

func GetReports(ctx context.Context, project, dataset, table string) error {
return fmt.Errorf("not implemented")
func GetReports(ctx context.Context, project, dataset, table string) ([]*Report, error) {
return nil, fmt.Errorf("not implemented")
}

0 comments on commit 3e8c7a0

Please sign in to comment.