Skip to content

Commit

Permalink
🔥 Removed the legacy HTTP client interface and mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreminiom committed Jul 30, 2023
1 parent 017d0d8 commit b1a660f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 158 deletions.
9 changes: 0 additions & 9 deletions service/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ package service
import (
"context"
"github.com/ctreminiom/go-atlassian/pkg/infra/models"
"io"
"net/http"
)

type Client interface {
NewRequest(ctx context.Context, method, apiEndpoint string, payload io.Reader) (*http.Request, error)
NewFormRequest(ctx context.Context, method, apiEndpoint, contentType string, payload io.Reader) (*http.Request, error)
Call(request *http.Request, structure interface{}) (*models.ResponseScheme, error)
TransformTheHTTPResponse(response *http.Response, structure interface{}) (*models.ResponseScheme, error)
TransformStructToReader(structure interface{}) (io.Reader, error)
}

type Connector interface {
NewRequest(ctx context.Context, method, urlStr, type_ string, body interface{}) (*http.Request, error)
Call(request *http.Request, structure interface{}) (*models.ResponseScheme, error)
Expand Down
149 changes: 0 additions & 149 deletions service/mocks/Client.go

This file was deleted.

0 comments on commit b1a660f

Please sign in to comment.