diff --git a/CHANGELOG.md b/CHANGELOG.md index 5262bb3..fc12fa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,5 +33,5 @@ Bugs fixed: ## Older versions Please refer to [Github -releases](https://github.com/nspcc-dev/neofs-http-gate/releases/) for older +releases](https://github.com/nspcc-dev/neofs-http-gw/releases/) for older releases. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a1d0c71..130a6e3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,8 +3,8 @@ First, thank you for contributing! We love and encourage pull requests from everyone. Please follow the guidelines: -- Check the open [issues](https://github.com/nspcc-dev/neofs-http-gate/issues) and - [pull requests](https://github.com/nspcc-dev/neofs-http-gate/pulls) for existing +- Check the open [issues](https://github.com/nspcc-dev/neofs-http-gw/issues) and + [pull requests](https://github.com/nspcc-dev/neofs-http-gw/pulls) for existing discussions. - Open an issue first, to discuss a new feature or enhancement. @@ -23,24 +23,24 @@ everyone. Please follow the guidelines: ## Development Workflow -Start by forking the `neofs-http-gate` repository, make changes in a branch and then +Start by forking the `neofs-http-gw` repository, make changes in a branch and then send a pull request. We encourage pull requests to discuss code changes. Here are the steps in details: ### Set up your GitHub Repository Fork [NeoFS HTTP Protocol Gateway -upstream](https://github.com/nspcc-dev/neofs-http-gate/fork) source repository +upstream](https://github.com/nspcc-dev/neofs-http-gw/fork) source repository to your own personal repository. Copy the URL of your fork (you will need it for the `git clone` command below). ```sh -$ git clone https://github.com/nspcc-dev/neofs-http-gate +$ git clone https://github.com/nspcc-dev/neofs-http-gw ``` ### Set up git remote as ``upstream`` ```sh -$ cd neofs-http-gate -$ git remote add upstream https://github.com/nspcc-dev/neofs-http-gate +$ cd neofs-http-gw +$ git remote add upstream https://github.com/nspcc-dev/neofs-http-gw $ git fetch upstream $ git merge upstream/master ... diff --git a/README.md b/README.md index abe4298..ccbba33 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@

--- -[![Report](https://goreportcard.com/badge/github.com/nspcc-dev/neofs-http-gate)](https://goreportcard.com/report/github.com/nspcc-dev/neofs-http-gate) -![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/nspcc-dev/neofs-http-gate?sort=semver) -![License](https://img.shields.io/github/license/nspcc-dev/neofs-http-gate.svg?style=popout) +[![Report](https://goreportcard.com/badge/github.com/nspcc-dev/neofs-http-gw)](https://goreportcard.com/report/github.com/nspcc-dev/neofs-http-gw) +![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/nspcc-dev/neofs-http-gw?sort=semver) +![License](https://img.shields.io/github/license/nspcc-dev/neofs-http-gw.svg?style=popout) # NeoFS HTTP Protocol Gateway @@ -18,7 +18,7 @@ NeoFS HTTP Protocol Gateway bridges NeoFS internal protocol and HTTP standard. ## Installation -```go get -u github.com/nspcc-dev/neofs-http-gate``` +```go get -u github.com/nspcc-dev/neofs-http-gw``` Or you can call `make` to build it from the cloned repository (the binary will end up in `bin/neofs-http-gw`). diff --git a/app.go b/app.go index bff85be..841b305 100644 --- a/app.go +++ b/app.go @@ -6,11 +6,11 @@ import ( "strconv" "github.com/fasthttp/router" - "github.com/nspcc-dev/neofs-http-gate/connections" - "github.com/nspcc-dev/neofs-http-gate/downloader" - "github.com/nspcc-dev/neofs-http-gate/logger" - "github.com/nspcc-dev/neofs-http-gate/neofs" - "github.com/nspcc-dev/neofs-http-gate/uploader" + "github.com/nspcc-dev/neofs-http-gw/connections" + "github.com/nspcc-dev/neofs-http-gw/downloader" + "github.com/nspcc-dev/neofs-http-gw/logger" + "github.com/nspcc-dev/neofs-http-gw/neofs" + "github.com/nspcc-dev/neofs-http-gw/uploader" "github.com/spf13/viper" "github.com/valyala/fasthttp" "go.uber.org/zap" @@ -77,7 +77,7 @@ func newApp(ctx context.Context, opt ...Option) App { grpclog.SetLoggerV2(a.auxiliaryLog) } // -- setup FastHTTP server -- - a.webServer.Name = "neofs-http-gate" + a.webServer.Name = "neofs-http-gw" a.webServer.ReadBufferSize = a.cfg.GetInt(cfgWebReadBufferSize) a.webServer.WriteBufferSize = a.cfg.GetInt(cfgWebWriteBufferSize) a.webServer.ReadTimeout = a.cfg.GetDuration(cfgWebReadTimeout) diff --git a/downloader/download.go b/downloader/download.go index acaa7c9..39ff41b 100644 --- a/downloader/download.go +++ b/downloader/download.go @@ -14,8 +14,8 @@ import ( "github.com/nspcc-dev/neofs-api-go/pkg/container" "github.com/nspcc-dev/neofs-api-go/pkg/object" - "github.com/nspcc-dev/neofs-http-gate/neofs" - "github.com/nspcc-dev/neofs-http-gate/tokens" + "github.com/nspcc-dev/neofs-http-gw/neofs" + "github.com/nspcc-dev/neofs-http-gw/tokens" "github.com/valyala/fasthttp" "go.uber.org/zap" "google.golang.org/grpc/codes" diff --git a/go.mod b/go.mod index 49c8739..3cc7669 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/nspcc-dev/neofs-http-gate +module github.com/nspcc-dev/neofs-http-gw go 1.16 diff --git a/main.go b/main.go index 66f3f95..467f081 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/nspcc-dev/neofs-http-gate/global" - "github.com/nspcc-dev/neofs-http-gate/logger" + "github.com/nspcc-dev/neofs-http-gw/global" + "github.com/nspcc-dev/neofs-http-gw/logger" "github.com/spf13/viper" "go.uber.org/zap" ) diff --git a/neofs/client-plant.go b/neofs/client-plant.go index 30a671b..e13f29d 100644 --- a/neofs/client-plant.go +++ b/neofs/client-plant.go @@ -10,7 +10,7 @@ import ( "github.com/nspcc-dev/neofs-api-go/pkg/object" "github.com/nspcc-dev/neofs-api-go/pkg/owner" "github.com/nspcc-dev/neofs-api-go/pkg/token" - "github.com/nspcc-dev/neofs-http-gate/connections" + "github.com/nspcc-dev/neofs-http-gw/connections" ) // BaseOptions represents basic NeoFS request options. diff --git a/settings.go b/settings.go index 1239e65..1e5555c 100644 --- a/settings.go +++ b/settings.go @@ -119,7 +119,7 @@ func settings() *viper.Viper { peers := flags.StringArrayP(cfgPeers, "p", nil, "NeoFS nodes") // set prefers: - v.Set(cfgApplicationName, "neofs-http-gate") + v.Set(cfgApplicationName, "neofs-http-gw") v.Set(cfgApplicationVersion, Version) // set defaults: diff --git a/uploader/upload.go b/uploader/upload.go index 719bee8..a9c874f 100644 --- a/uploader/upload.go +++ b/uploader/upload.go @@ -12,8 +12,8 @@ import ( "github.com/nspcc-dev/neofs-api-go/pkg/object" "github.com/nspcc-dev/neofs-api-go/pkg/owner" "github.com/nspcc-dev/neofs-api-go/pkg/token" - "github.com/nspcc-dev/neofs-http-gate/neofs" - "github.com/nspcc-dev/neofs-http-gate/tokens" + "github.com/nspcc-dev/neofs-http-gw/neofs" + "github.com/nspcc-dev/neofs-http-gw/tokens" "github.com/valyala/fasthttp" "go.uber.org/zap" )