FrostFS HTTP Gateway
Find a file
Evgeniy Kulikov 2bebf38a18
update go.sum
2019-11-19 16:23:59 +03:00
.gitignore initial 2019-11-06 15:33:46 +03:00
Dockerfile initial 2019-11-06 15:33:46 +03:00
go.mod update proto / crypto / makefile 2019-11-18 19:59:59 +03:00
go.sum update go.sum 2019-11-19 16:23:59 +03:00
grace.go initial 2019-11-06 15:33:46 +03:00
LICENSE.md NSPCC-587 Add License and Readme 2019-11-07 20:29:29 +03:00
logger.go initial 2019-11-06 15:33:46 +03:00
main.go initial 2019-11-06 15:33:46 +03:00
Makefile update proto / crypto / makefile 2019-11-18 19:59:59 +03:00
misc.go NSPCC-587 Add License and Readme 2019-11-07 20:29:29 +03:00
README.md NSPCC-587 Add License and Readme 2019-11-07 20:29:29 +03:00

NeoFS HTTP Gateway

NeoFS HTTP Gateway is example of tool that provides basic interactions with NeoFS. You can download files from NeoFS Network using NeoFS Gateway.

Install

go get -u github.com/nspcc-dev/neofs-gw

Configuration

# Environments:

GW_REQUEST_TIMEOUT=Duration             - timeout for request
GW_CONNECT_TIMEOUT=Duration             - timeout for connection
GW_LISTEN_ADDRESS=host:port             - address to listen connections
GW_NEOFS_NODE_ADDR=host:port            - address of NeoFS Node
GW_KEEPALIVE_TIME=Duration              - аfter a duration of this time if the client doesn't see any activity
it pings the server to see if the transport is still alive. 
GW_KEEPALIVE_TIMEOUT=Duration           - after having pinged for keepalive check, the client waits for a duration
of Timeout and if no activity is seen even after that the connection is closed
GW_KEEPALIVE_PERMIT_WITHOUT_STREAM=Bool - if true, client sends keepalive pings even with no active RPCs.
If false, when there are no active RPCs, Time and Timeout will be ignored and no keepalive pings will be sent.