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://[email protected]/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.