mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
High performance, minimalist Go web framework
https://echo.labstack.com/
echogohttp2httpslabstack-echoletsencryptmicro-frameworkmicroservicemiddlewaresslwebweb-frameworkwebsocket
7c9a0b6489
Signed-off-by: Vishal Rana <vr@labstack.com> |
||
---|---|---|
example | ||
middleware | ||
bolt_test.go | ||
bolt.go | ||
client_test.go | ||
client.go | ||
context.go | ||
LICENSE | ||
README.md | ||
response.go | ||
router_test.go | ||
router.go | ||
socket.go | ||
utils.go |
Bolt
Multi transport, multi format REST style network library
Socket Specification
Trasport
- WebSocket
- TCP
Command (1-byte)
- INIT (1)
- AUTH (2)
- HTTP (3)
- PUB (4)
- MPUB (5)
- SUB (6)
- USUB (7)
INIT
Request
1 # Command (1-byte)
99 # Correlation ID (4-byte)
8 # Config length (2-byte)
{} # Config as JSON (n-byte)
Config
{
"Format":
}
Response
99 # Correlation ID (4-byte)
200 # Status code (2-byte)
AUTH
Request
2 # Command (1-byte)
99 # Correlation ID (4-byte)
30 # Token length (2-byte)
1g42*jMG!a?D3eF>Xwt!dI05]Y9egP # Token (n-byte)
Response
99 # Correlation ID (4-byte)
200 # Status code (2-byte)
HTTP
Request
3 # Command (1-byte)
99 # Correlation ID (4-byte)
GET\n # Method (n-byte)
/users\n # Path (n-byte)
- # Headers
64 # Body length (8-byte)
- # Body (n-byte)
Response
3 # Command (1-byte)
200 # Status code (2-byte)
# For POST, PUT & PATCH
64 # Body length (8-byte)
- # Body (n-byte)