Skip to content

Commit

Permalink
transfer to caiyunapp
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Nov 18, 2024
1 parent b1e3d91 commit aa75acc
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 29 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
APNS/2 is a go package designed for simple, flexible and fast Apple Push
Notifications on iOS, OSX and Safari using the new HTTP/2 Push provider API.

[![Build Status](https://github.com/ringsaturn/apns2/actions/workflows/tests.yml/badge.svg)](https://github.com/ringsaturn/apns2/actions/workflows/tests.yml)
[![Build Status](https://github.com/caiyunapp/apns2/actions/workflows/tests.yml/badge.svg)](https://github.com/caiyunapp/apns2/actions/workflows/tests.yml)
[![Coverage Status](https://coveralls.io/repos/ringsaturn/apns2/badge.svg?branch=master&service=github)](https://coveralls.io/github/ringsaturn/apns2?branch=master)
[![GoDoc](https://godoc.org/github.com/ringsaturn/apns2?status.svg)](https://godoc.org/github.com/ringsaturn/apns2)
[![GoDoc](https://godoc.org/github.com/caiyunapp/apns2?status.svg)](https://godoc.org/github.com/caiyunapp/apns2)

## Features

Expand All @@ -28,7 +28,7 @@ Notifications on iOS, OSX and Safari using the new HTTP/2 Push provider API.
your [GOPATH](https://golang.org/doc/code.html#GOPATH).
- Install apns2
```bash
go install github.com/ringsaturn/apns2
go install github.com/caiyunapp/apns2
```

## Example
Expand All @@ -40,8 +40,8 @@ import (
"log"
"fmt"

"github.com/ringsaturn/apns2"
"github.com/ringsaturn/apns2/certificate"
"github.com/caiyunapp/apns2"
"github.com/caiyunapp/apns2/certificate"
)

func main() {
Expand Down Expand Up @@ -136,7 +136,7 @@ notification.Payload = payload
client.Push(notification)
```

Refer to the [payload](https://godoc.org/github.com/ringsaturn/apns2/payload) docs
Refer to the [payload](https://godoc.org/github.com/caiyunapp/apns2/payload) docs
for more info.

## Response, Error handling
Expand Down Expand Up @@ -209,7 +209,7 @@ good server located in AWS, you should be able to get
## Command line tool

APNS/2 has a command line tool that can be installed with
`go install github.com/ringsaturn/apns2/apns2`. Usage:
`go install github.com/caiyunapp/apns2/apns2`. Usage:

```
Usage of apns2:
Expand Down
4 changes: 2 additions & 2 deletions _example/basic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"log"
"os"

"github.com/ringsaturn/apns2"
"github.com/ringsaturn/apns2/certificate"
"github.com/caiyunapp/apns2"
"github.com/caiyunapp/apns2/certificate"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions _example/channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"flag"

"github.com/ringsaturn/apns2"
"github.com/ringsaturn/apns2/certificate"
"github.com/ringsaturn/apns2/payload"
"github.com/caiyunapp/apns2"
"github.com/caiyunapp/apns2/certificate"
"github.com/caiyunapp/apns2/payload"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"os"
"time"

"github.com/ringsaturn/apns2"
"github.com/ringsaturn/apns2/certificate"
"github.com/caiyunapp/apns2"
"github.com/caiyunapp/apns2/certificate"
"golang.org/x/net/http2"
)

Expand Down
4 changes: 2 additions & 2 deletions _example/token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"log"
"os"

"github.com/ringsaturn/apns2"
"github.com/ringsaturn/apns2/token"
"github.com/caiyunapp/apns2"
"github.com/caiyunapp/apns2/token"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions apns2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"os"
"strings"

"github.com/ringsaturn/apns2"
"github.com/ringsaturn/apns2/certificate"
"github.com/caiyunapp/apns2"
"github.com/caiyunapp/apns2/certificate"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion certificate/certificate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/ringsaturn/apns2/certificate"
"github.com/caiyunapp/apns2/certificate"
"github.com/stretchr/testify/assert"
)

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

"github.com/ringsaturn/apns2/token"
"github.com/caiyunapp/apns2/token"
)

// Apple HTTP/2 Development & Production urls
Expand Down
4 changes: 2 additions & 2 deletions client_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"
"time"

"github.com/ringsaturn/apns2"
"github.com/ringsaturn/apns2/certificate"
"github.com/caiyunapp/apns2"
"github.com/caiyunapp/apns2/certificate"
"github.com/stretchr/testify/assert"
)

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

"golang.org/x/net/http2"

apns "github.com/ringsaturn/apns2"
"github.com/ringsaturn/apns2/token"
apns "github.com/caiyunapp/apns2"
"github.com/caiyunapp/apns2/token"
"github.com/stretchr/testify/assert"
)

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/ringsaturn/apns2
module github.com/caiyunapp/apns2

go 1.22

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

"github.com/ringsaturn/apns2"
"github.com/caiyunapp/apns2"
"github.com/stretchr/testify/assert"
)

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

. "github.com/ringsaturn/apns2/payload"
. "github.com/caiyunapp/apns2/payload"
"github.com/stretchr/testify/assert"
)

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

apns "github.com/ringsaturn/apns2"
apns "github.com/caiyunapp/apns2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion token/token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/ringsaturn/apns2/token"
"github.com/caiyunapp/apns2/token"
"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit aa75acc

Please sign in to comment.