Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
feat: moves httpclient as separated package (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
wregulski authored Aug 16, 2023
1 parent 32f2135 commit bba9d78
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion broadcast/broadcast-client/client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
broadcast_api "github.com/bitcoin-sv/go-broadcast-client/broadcast"
"github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/arc"
"github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/composite"
"github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/httpclient"
"github.com/bitcoin-sv/go-broadcast-client/httpclient"
)

type builder struct {
Expand Down
2 changes: 1 addition & 1 deletion broadcast/internal/arc/arc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package arc

import (
broadcast_api "github.com/bitcoin-sv/go-broadcast-client/broadcast"
"github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/httpclient"
"github.com/bitcoin-sv/go-broadcast-client/httpclient"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion broadcast/internal/arc/arc_mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"net/http"

"github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/httpclient"
"github.com/bitcoin-sv/go-broadcast-client/httpclient"
"github.com/stretchr/testify/mock"
)

Expand Down
2 changes: 1 addition & 1 deletion broadcast/internal/arc/arc_policy_quote.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/bitcoin-sv/go-broadcast-client/broadcast"
arc_utils "github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/arc/utils"
"github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/httpclient"
"github.com/bitcoin-sv/go-broadcast-client/httpclient"
)

func (a *ArcClient) GetPolicyQuote(ctx context.Context) ([]*broadcast.PolicyQuoteResponse, error) {
Expand Down
2 changes: 1 addition & 1 deletion broadcast/internal/arc/arc_query_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/bitcoin-sv/go-broadcast-client/broadcast"
arcutils "github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/arc/utils"
"github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/httpclient"
"github.com/bitcoin-sv/go-broadcast-client/httpclient"
)

var ErrMissingTxID = errors.New("missing tx id")
Expand Down
2 changes: 1 addition & 1 deletion broadcast/internal/arc/arc_submit_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/bitcoin-sv/go-broadcast-client/broadcast"
arc_utils "github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/arc/utils"
"github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/httpclient"
"github.com/bitcoin-sv/go-broadcast-client/httpclient"
)

type SubmitTxRequest struct {
Expand Down
2 changes: 1 addition & 1 deletion broadcast/internal/arc/arc_submit_tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/bitcoin-sv/go-broadcast-client/broadcast"
"github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/httpclient"
"github.com/bitcoin-sv/go-broadcast-client/httpclient"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion broadcast/internal/arc/utils/arc_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"

"github.com/bitcoin-sv/go-broadcast-client/broadcast"
"github.com/bitcoin-sv/go-broadcast-client/broadcast/internal/httpclient"
"github.com/bitcoin-sv/go-broadcast-client/httpclient"
)

var ErrUnableToDecodeArcError = errors.New("unable to decode arc error")
Expand Down
File renamed without changes.

0 comments on commit bba9d78

Please sign in to comment.