├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .mailmap ├── AUTHORS ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── README.md ├── cmd └── sse-consume │ └── main.go ├── go.mod ├── go.sum ├── internal ├── scanlines.go ├── scanlines_test.go └── testutils │ ├── helpers.go │ └── server │ └── handler.go ├── pkg ├── base │ └── message_event.go ├── decoder │ ├── decoder.go │ └── decoder_test.go ├── encoder │ ├── encoder.go │ └── encoder_test.go └── eventsource │ ├── doc.go │ ├── eventsource.go │ ├── eventsource_test.go │ ├── readystate.go │ ├── readystate_string.go │ ├── readystate_test.go │ ├── request_modifier.go │ ├── request_modifier_test.go │ └── status.go └── scripts └── generate-authors.sh /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /sse-consume 2 | coverage.out 3 | -------------------------------------------------------------------------------- /.mailmap: -------------------------------------------------------------------------------- 1 | Alexandre Vinyals Valdepeñas 2 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/AUTHORS -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/README.md -------------------------------------------------------------------------------- /cmd/sse-consume/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/cmd/sse-consume/main.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/go.sum -------------------------------------------------------------------------------- /internal/scanlines.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/internal/scanlines.go -------------------------------------------------------------------------------- /internal/scanlines_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/internal/scanlines_test.go -------------------------------------------------------------------------------- /internal/testutils/helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/internal/testutils/helpers.go -------------------------------------------------------------------------------- /internal/testutils/server/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/internal/testutils/server/handler.go -------------------------------------------------------------------------------- /pkg/base/message_event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/base/message_event.go -------------------------------------------------------------------------------- /pkg/decoder/decoder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/decoder/decoder.go -------------------------------------------------------------------------------- /pkg/decoder/decoder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/decoder/decoder_test.go -------------------------------------------------------------------------------- /pkg/encoder/encoder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/encoder/encoder.go -------------------------------------------------------------------------------- /pkg/encoder/encoder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/encoder/encoder_test.go -------------------------------------------------------------------------------- /pkg/eventsource/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/eventsource/doc.go -------------------------------------------------------------------------------- /pkg/eventsource/eventsource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/eventsource/eventsource.go -------------------------------------------------------------------------------- /pkg/eventsource/eventsource_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/eventsource/eventsource_test.go -------------------------------------------------------------------------------- /pkg/eventsource/readystate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/eventsource/readystate.go -------------------------------------------------------------------------------- /pkg/eventsource/readystate_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/eventsource/readystate_string.go -------------------------------------------------------------------------------- /pkg/eventsource/readystate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/eventsource/readystate_test.go -------------------------------------------------------------------------------- /pkg/eventsource/request_modifier.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/eventsource/request_modifier.go -------------------------------------------------------------------------------- /pkg/eventsource/request_modifier_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/eventsource/request_modifier_test.go -------------------------------------------------------------------------------- /pkg/eventsource/status.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/pkg/eventsource/status.go -------------------------------------------------------------------------------- /scripts/generate-authors.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alevinval/sse/HEAD/scripts/generate-authors.sh --------------------------------------------------------------------------------