From aa75acca73d93642a26ba4e88f3b062c1c108ef5 Mon Sep 17 00:00:00 2001 From: ringsaturn Date: Mon, 18 Nov 2024 22:12:52 +0800 Subject: [PATCH] transfer to caiyunapp --- README.md | 14 +++++++------- _example/basic/main.go | 4 ++-- _example/channel/main.go | 6 +++--- _example/proxy/main.go | 4 ++-- _example/token/token.go | 4 ++-- apns2/main.go | 4 ++-- certificate/certificate_test.go | 2 +- client.go | 2 +- client_manager_test.go | 4 ++-- client_test.go | 4 ++-- go.mod | 2 +- notification_test.go | 2 +- payload/builder_test.go | 2 +- response_test.go | 2 +- token/token_test.go | 2 +- 15 files changed, 29 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index f16794af..98b27364 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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() { @@ -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 @@ -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: diff --git a/_example/basic/main.go b/_example/basic/main.go index b268e397..2b030149 100644 --- a/_example/basic/main.go +++ b/_example/basic/main.go @@ -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() { diff --git a/_example/channel/main.go b/_example/channel/main.go index cb0dcde4..4289770f 100644 --- a/_example/channel/main.go +++ b/_example/channel/main.go @@ -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() { diff --git a/_example/proxy/main.go b/_example/proxy/main.go index 765ad5e2..b13b565b 100644 --- a/_example/proxy/main.go +++ b/_example/proxy/main.go @@ -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" ) diff --git a/_example/token/token.go b/_example/token/token.go index 7c323359..846c97f8 100644 --- a/_example/token/token.go +++ b/_example/token/token.go @@ -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() { diff --git a/apns2/main.go b/apns2/main.go index b8abf206..264fcb93 100644 --- a/apns2/main.go +++ b/apns2/main.go @@ -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 ( diff --git a/certificate/certificate_test.go b/certificate/certificate_test.go index b618bc22..efc86fb0 100644 --- a/certificate/certificate_test.go +++ b/certificate/certificate_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/ringsaturn/apns2/certificate" + "github.com/caiyunapp/apns2/certificate" "github.com/stretchr/testify/assert" ) diff --git a/client.go b/client.go index 0211b7e9..3e1c1dd8 100644 --- a/client.go +++ b/client.go @@ -13,7 +13,7 @@ import ( "strconv" "time" - "github.com/ringsaturn/apns2/token" + "github.com/caiyunapp/apns2/token" ) // Apple HTTP/2 Development & Production urls diff --git a/client_manager_test.go b/client_manager_test.go index b9a149af..c863bd15 100644 --- a/client_manager_test.go +++ b/client_manager_test.go @@ -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" ) diff --git a/client_test.go b/client_test.go index 92c87a11..a3095847 100644 --- a/client_test.go +++ b/client_test.go @@ -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" ) diff --git a/go.mod b/go.mod index e80da719..58f319d4 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ringsaturn/apns2 +module github.com/caiyunapp/apns2 go 1.22 diff --git a/notification_test.go b/notification_test.go index 63218439..f0419201 100644 --- a/notification_test.go +++ b/notification_test.go @@ -3,7 +3,7 @@ package apns2_test import ( "testing" - "github.com/ringsaturn/apns2" + "github.com/caiyunapp/apns2" "github.com/stretchr/testify/assert" ) diff --git a/payload/builder_test.go b/payload/builder_test.go index ce46f835..8e2f2f11 100644 --- a/payload/builder_test.go +++ b/payload/builder_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - . "github.com/ringsaturn/apns2/payload" + . "github.com/caiyunapp/apns2/payload" "github.com/stretchr/testify/assert" ) diff --git a/response_test.go b/response_test.go index 7fa68f60..d04f088e 100644 --- a/response_test.go +++ b/response_test.go @@ -5,7 +5,7 @@ import ( "net/http" "testing" - apns "github.com/ringsaturn/apns2" + apns "github.com/caiyunapp/apns2" "github.com/stretchr/testify/assert" ) diff --git a/token/token_test.go b/token/token_test.go index 612c1af2..30a41ea8 100644 --- a/token/token_test.go +++ b/token/token_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/ringsaturn/apns2/token" + "github.com/caiyunapp/apns2/token" "github.com/stretchr/testify/assert" )