Skip to content

Commit

Permalink
replace github.com/ProtonMail/go-proton-api with github.com/henrybear…
Browse files Browse the repository at this point in the history
…327/go-proton-api
  • Loading branch information
henrybear327 committed Jan 27, 2025
1 parent 34a951a commit 9ee38cb
Show file tree
Hide file tree
Showing 58 changed files with 75 additions and 77 deletions.
4 changes: 2 additions & 2 deletions address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

"github.com/ProtonMail/go-proton-api"
"github.com/ProtonMail/go-proton-api/server"
"github.com/henrybear327/go-proton-api"
"github.com/henrybear327/go-proton-api/server"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions attachment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"sync"
"testing"

"github.com/ProtonMail/go-proton-api"
"github.com/ProtonMail/go-proton-api/server"
"github.com/henrybear327/go-proton-api"
"github.com/henrybear327/go-proton-api/server"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"time"

"github.com/bradenaw/juniper/parallel"
"github.com/ProtonMail/go-proton-api"
"github.com/ProtonMail/go-proton-api/server"
"github.com/henrybear327/go-proton-api"
"github.com/henrybear327/go-proton-api/server"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion contact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/ProtonMail/gluon/rfc822"
"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/emersion/go-vcard"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"time"

"github.com/google/uuid"
"github.com/ProtonMail/go-proton-api"
"github.com/ProtonMail/go-proton-api/server"
"github.com/henrybear327/go-proton-api"
"github.com/henrybear327/go-proton-api/server"
"github.com/stretchr/testify/require"
)

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

"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

func ExampleManager_NewClient() {
Expand Down
2 changes: 1 addition & 1 deletion future_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/ProtonMail/gluon/async"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ProtonMail/go-proton-api
module github.com/henrybear327/go-proton-api

go 1.22.0

Expand Down Expand Up @@ -71,5 +71,3 @@ require (
)

replace github.com/go-resty/resty/v2 => github.com/LBeernaertProton/resty/v2 v2.0.0-20231129100320-dddf8030d93a

replace github.com/ProtonMail/go-proton-api => github.com/henrybear327/go-proton-api v0.0.0-20250127182155-ab0ad0b85cddd6757b087c8ebf8e67d7bb490e6a
2 changes: 1 addition & 1 deletion helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/bradenaw/juniper/iterator"
"github.com/bradenaw/juniper/stream"
"github.com/google/uuid"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"github.com/stretchr/testify/require"
)

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

"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/ProtonMail/gopenpgp/v2/helper"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion link_file_type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package proton_test
import (
"testing"

"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

func Test_HMAC(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions manager_report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"mime/multipart"
"testing"

"github.com/ProtonMail/go-proton-api"
"github.com/ProtonMail/go-proton-api/server"
"github.com/henrybear327/go-proton-api"
"github.com/henrybear327/go-proton-api/server"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions manager_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"
"time"

"github.com/ProtonMail/go-proton-api"
"github.com/ProtonMail/go-proton-api/server"
"github.com/henrybear327/go-proton-api"
"github.com/henrybear327/go-proton-api/server"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"testing"
"time"

"github.com/ProtonMail/go-proton-api"
"github.com/ProtonMail/go-proton-api/server"
"github.com/henrybear327/go-proton-api"
"github.com/henrybear327/go-proton-api/server"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion message_encrypt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/ProtonMail/gluon/rfc822"
"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions message_import_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/ProtonMail/gluon/rfc822"
"github.com/bradenaw/juniper/stream"
"github.com/ProtonMail/go-proton-api"
"github.com/ProtonMail/go-proton-api/server"
"github.com/henrybear327/go-proton-api"
"github.com/henrybear327/go-proton-api/server"
"github.com/stretchr/testify/require"
)

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

"github.com/ProtonMail/gluon/rfc822"
"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion message_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion netctl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

func TestNetCtl_ReadLimit(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/ProtonMail/gluon/async"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"net/url"
"testing"

"github.com/ProtonMail/go-proton-api"
"github.com/ProtonMail/go-proton-api/server"
"github.com/henrybear327/go-proton-api"
"github.com/henrybear327/go-proton-api/server"
"github.com/stretchr/testify/require"
)

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

"github.com/gin-gonic/gin"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"golang.org/x/exp/slices"
)

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

"github.com/ProtonMail/gluon/rfc822"
"github.com/gin-gonic/gin"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

func (s *Server) handlePostMailAttachments() gin.HandlerFunc {
Expand Down
2 changes: 1 addition & 1 deletion server/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"

"github.com/gin-gonic/gin"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion server/backend/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/bradenaw/juniper/xslices"
"github.com/google/uuid"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

type account struct {
Expand Down
2 changes: 1 addition & 1 deletion server/backend/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package backend
import (
"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/bradenaw/juniper/xslices"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

type address struct {
Expand Down
2 changes: 1 addition & 1 deletion server/backend/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/ProtonMail/gluon/rfc822"
"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/bradenaw/juniper/xslices"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
)
Expand Down
2 changes: 1 addition & 1 deletion server/backend/api_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/ProtonMail/go-srp"
"github.com/google/uuid"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

func (b *Backend) NewAuthInfo(username string) (proton.AuthInfo, error) {
Expand Down
2 changes: 1 addition & 1 deletion server/backend/attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/ProtonMail/gluon/rfc822"
"github.com/google/uuid"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

func (b *unsafeBackend) createAttData(dataPacket []byte) string {
Expand Down
2 changes: 1 addition & 1 deletion server/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/bradenaw/juniper/xslices"
"github.com/google/uuid"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"github.com/sirupsen/logrus"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
Expand Down
2 changes: 1 addition & 1 deletion server/backend/contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/bradenaw/juniper/xslices"
"github.com/emersion/go-vcard"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

var globalContactID int32
Expand Down
2 changes: 1 addition & 1 deletion server/backend/core_settings.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package backend

import (
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

func newUserSettings() proton.UserSettings {
Expand Down
2 changes: 1 addition & 1 deletion server/backend/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package backend

import (
"github.com/google/uuid"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

type label struct {
Expand Down
2 changes: 1 addition & 1 deletion server/backend/mail_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package backend

import (
"github.com/ProtonMail/gluon/rfc822"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

type mailSettings struct {
Expand Down
2 changes: 1 addition & 1 deletion server/backend/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/ProtonMail/gluon/rfc822"
"github.com/bradenaw/juniper/xslices"
"github.com/google/uuid"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
"golang.org/x/exp/slices"
)

Expand Down
2 changes: 1 addition & 1 deletion server/backend/observability.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package backend
import (
"time"

"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

type ObservabilityStatistics struct {
Expand Down
2 changes: 1 addition & 1 deletion server/backend/quark.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

func (s *Backend) RunQuarkCommand(command string, args ...string) (any, error) {
Expand Down
2 changes: 1 addition & 1 deletion server/backend/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/ProtonMail/gopenpgp/v2/crypto"
"github.com/google/uuid"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

type ID uint64
Expand Down
2 changes: 1 addition & 1 deletion server/backend/updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package backend

import (
"github.com/bradenaw/juniper/xslices"
"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

func merge(updates []update) []update {
Expand Down
2 changes: 1 addition & 1 deletion server/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package server
import (
"sync"

"github.com/ProtonMail/go-proton-api"
"github.com/henrybear327/go-proton-api"
)

func NewAuthCache() AuthCacher {
Expand Down
2 changes: 1 addition & 1 deletion server/cmd/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net"
"os"

"github.com/ProtonMail/go-proton-api/server/proto"
"github.com/henrybear327/go-proton-api/server/proto"
"github.com/urfave/cli/v2"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
Expand Down
Loading

0 comments on commit 9ee38cb

Please sign in to comment.