Skip to content

Commit

Permalink
fix: naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
saimanoj committed Jul 24, 2023
1 parent 0215e11 commit 8c19f72
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 25 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@

.DS_Store

cq-ticketing
cq-source-ticketing

.cq

dist
*.log
*.log
config.yml
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ builds:
- CGO_ENABLED=0
- GO111MODULE=on
ldflags:
- -s -w -X github.com/poozlehq/cq-ticketing/plugin.Version={{.Version}}
- -s -w -X github.com/poozlehq/cq-source-ticketing/plugin.Version={{.Version}}
goos:
- windows
- linux
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CloudQuery ticketing Source Plugin

[![test](https://github.com/poozlehq/cq-ticketing/actions/workflows/test.yaml/badge.svg)](https://github.com/poozlehq/cq-ticketing/actions/workflows/test.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/poozlehq/cq-ticketing)](https://goreportcard.com/report/github.com/poozlehq/cq-ticketing)
[![test](https://github.com/poozlehq/cq-source-ticketing/actions/workflows/test.yaml/badge.svg)](https://github.com/poozlehq/cq-source-ticketing/actions/workflows/test.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/poozlehq/cq-source-ticketing)](https://goreportcard.com/report/github.com/poozlehq/cq-source-ticketing)

A ticketing source plugin for CloudQuery that loads data from ticketing to any database, data warehouse or data lake supported by [CloudQuery](https://www.cloudquery.io/), such as PostgreSQL, BigQuery, Athena, and many more.

Expand Down
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"github.com/cloudquery/plugin-sdk/v4/state"
"github.com/poozlehq/cq-ticketing/internal/ticketing"
"github.com/poozlehq/cq-source-ticketing/internal/ticketing"
"github.com/rs/zerolog"
)

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 github.com/poozlehq/cq-ticketing
module github.com/poozlehq/cq-source-ticketing

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion internal/ticketing/ticketing.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"time"

"github.com/poozlehq/cq-ticketing/internal/httperror"
"github.com/poozlehq/cq-source-ticketing/internal/httperror"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"golang.org/x/time/rate"
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"

"github.com/cloudquery/plugin-sdk/v4/serve"
"github.com/poozlehq/cq-ticketing/resources/plugin"
"github.com/poozlehq/cq-source-ticketing/resources/plugin"
)

const sentryDSN = "https://99f66f1a627f48deb66e49a25d6028a6@o1396617.ingest.sentry.io/6747628"
Expand Down
6 changes: 3 additions & 3 deletions resources/plugin/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/cloudquery/plugin-sdk/v4/scheduler"
"github.com/cloudquery/plugin-sdk/v4/schema"
"github.com/cloudquery/plugin-sdk/v4/state"
"github.com/poozlehq/cq-ticketing/client"
"github.com/poozlehq/cq-ticketing/internal/ticketing"
"github.com/poozlehq/cq-source-ticketing/client"
"github.com/poozlehq/cq-source-ticketing/internal/ticketing"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

Expand Down Expand Up @@ -102,7 +102,7 @@ func Configure(_ context.Context, logger zerolog.Logger, specBytes []byte, opts
}

services, err := ticketing.New(ticketing.ClientOptions{
Log: logger.With().Str("source", "cq-ticketing").Logger(),
Log: logger.With().Str("source", "cq-source-ticketing").Logger(),
HC: &http.Client{
Timeout: time.Duration(config.Timeout) * time.Second,
},
Expand Down
2 changes: 1 addition & 1 deletion resources/plugin/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package plugin
import (
"github.com/cloudquery/plugin-sdk/v4/schema"
"github.com/cloudquery/plugin-sdk/v4/transformers"
resources "github.com/poozlehq/cq-ticketing/resources/services"
resources "github.com/poozlehq/cq-source-ticketing/resources/services"
)

func getTables() []*schema.Table {
Expand Down
4 changes: 2 additions & 2 deletions resources/services/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/apache/arrow/go/v13/arrow"
"github.com/cloudquery/plugin-sdk/v4/schema"
"github.com/cloudquery/plugin-sdk/v4/transformers"
"github.com/poozlehq/cq-ticketing/client"
"github.com/poozlehq/cq-ticketing/internal/ticketing"
"github.com/poozlehq/cq-source-ticketing/client"
"github.com/poozlehq/cq-source-ticketing/internal/ticketing"
)

func Collection() *schema.Table {
Expand Down
4 changes: 2 additions & 2 deletions resources/services/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/apache/arrow/go/v13/arrow"
"github.com/cloudquery/plugin-sdk/v4/schema"
"github.com/cloudquery/plugin-sdk/v4/transformers"
"github.com/poozlehq/cq-ticketing/client"
"github.com/poozlehq/cq-ticketing/internal/ticketing"
"github.com/poozlehq/cq-source-ticketing/client"
"github.com/poozlehq/cq-source-ticketing/internal/ticketing"
)

func Comment() *schema.Table {
Expand Down
4 changes: 2 additions & 2 deletions resources/services/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/apache/arrow/go/v13/arrow"
"github.com/cloudquery/plugin-sdk/v4/schema"
"github.com/cloudquery/plugin-sdk/v4/transformers"
"github.com/poozlehq/cq-ticketing/client"
"github.com/poozlehq/cq-ticketing/internal/ticketing"
"github.com/poozlehq/cq-source-ticketing/client"
"github.com/poozlehq/cq-source-ticketing/internal/ticketing"
)

func Tag() *schema.Table {
Expand Down
4 changes: 2 additions & 2 deletions resources/services/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/apache/arrow/go/v13/arrow"
"github.com/cloudquery/plugin-sdk/v4/schema"
"github.com/cloudquery/plugin-sdk/v4/transformers"
"github.com/poozlehq/cq-ticketing/client"
"github.com/poozlehq/cq-ticketing/internal/ticketing"
"github.com/poozlehq/cq-source-ticketing/client"
"github.com/poozlehq/cq-source-ticketing/internal/ticketing"
)

func Team() *schema.Table {
Expand Down
4 changes: 2 additions & 2 deletions resources/services/ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/apache/arrow/go/v13/arrow"
"github.com/cloudquery/plugin-sdk/v4/schema"
"github.com/cloudquery/plugin-sdk/v4/transformers"
"github.com/poozlehq/cq-ticketing/client"
"github.com/poozlehq/cq-ticketing/internal/ticketing"
"github.com/poozlehq/cq-source-ticketing/client"
"github.com/poozlehq/cq-source-ticketing/internal/ticketing"
)

func Ticket() *schema.Table {
Expand Down
4 changes: 2 additions & 2 deletions resources/services/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/apache/arrow/go/v13/arrow"
"github.com/cloudquery/plugin-sdk/v4/schema"
"github.com/cloudquery/plugin-sdk/v4/transformers"
"github.com/poozlehq/cq-ticketing/client"
"github.com/poozlehq/cq-ticketing/internal/ticketing"
"github.com/poozlehq/cq-source-ticketing/client"
"github.com/poozlehq/cq-source-ticketing/internal/ticketing"
)

func User() *schema.Table {
Expand Down

0 comments on commit 8c19f72

Please sign in to comment.